Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Dialog
- textfield
- viewmodel
- appbar
- 안드로이드
- tabbar
- Compose
- textview
- Flutter
- scroll
- 계측
- 테스트
- Navigation
- LifeCycle
- android
- CustomScrollView
- drift
- intent
- ScrollView
- Kotlin
- DART
- TEST
- binding
- livedata
- data
- 앱바
- Coroutines
- 앱
- Button
- activity
Archives
- Today
- Total
Study Record
[리눅스 서버보안] WAF - ModSecurity install 본문
728x90
※ ModSecurity는 Ivan Ristic에 의해 개발한 툴로서 아파치 웹서버에서 동작하는 오픈소스 웹방화벽이다.
1. ModSecurity 설치 - Centos 7
㉮ EPEL repository 설정
# yum -y install epel-release
# yum clean all
# yum repolist
㉯ mod_security 설치
# yum -y install mod_security mod_security_crs
# rpm -qa | grep mod_security
㉰ 패키지 목록 확인
# rpm -ql mod_security
2. ModSecurity 기본 설정
구분 | ModSecurity 1.X | ModSecurity 2.X |
Apache 버전 | Apache 1.x, 2.x 지원 | Apache 2.x Only |
처리단계 | Inbound(Request body) Outbound(Response body) |
phase:1 (Request header) phase:2 (Request body) phase:3 (Response header) phase:4 (Response body) phase:5 (Logging) |
설정방법 | (Apache 1.X) <IfModule mod_security.c> (Apache 2.X) <IfModule security_module> |
<IfModule security2_module> |
룰 활성화 | SecFilterEngine | SecRuleEngine |
기본동작 | SecFilterDefaultAction | SecDefaultAction |
지시자 | SecFilter, SecFilterSelective | SecRule |
Request Body 접근 | SecFilterScanPost | SecRequestBodyAccess(phase:2) |
Response Body 접근 | SecFilterScanOutput | SecResponseBodyAccess(phase:4) |
2-1. 새롭게 추가된 파일/디렉토리 - modsecurity.d 디렉토리
2-2. 설정 파일 - /etc/httpd/mod_security.conf
2-3. 기본 rule 파일들 - /etc/httpd/modsecurity.d/acivated_rules
2-4. 로그 파일 - /var/log/httpd/modsec_*.log
2-5. WAF 방화벽 On / Off
# vi /etc/httpd/mod_security.conf
SecRuleEngine Off # 방화벽 Off
SecRuleEngine On # 방화벽 On
728x90
'서버보안 > 리눅스 서버보안' 카테고리의 다른 글
[파이썬] 알고리즘 라이브러리 (0) | 2022.03.02 |
---|---|
[리눅스 서버보안] WAF - ModSecurity Rule (0) | 2022.01.06 |
[리눅스 서버보안] DVWA 설치하기 - Centos 7 (0) | 2022.01.05 |
[리눅스 서버보안] LOIC(Low Orbit Ion Cannon) 설치 (0) | 2021.12.29 |
[리눅스 서버보안] Dos / DDos 와 공격 방식 - hping3 (0) | 2021.12.28 |