Mod Security 설치가이드
1. PCRE 설치 ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz
1 2 3 |
./configure --prefix=/usr/local/pcre make make install |
2. APR library 설치 http://apr.apache.org/download.cgi
1 2 3 |
./configure make make install |
3. APU
1 |
yum install apr-util-devel |
4. unique_ud 설정 아파치 소스파일내 있다.
1 2 |
cd /usr/local/httpd-2.2.21/modules/metadata /usr/local/apache2/bin/apxs -cia mod_unique_id.c |
5. Modsecurity 설치
1 |
./configure --with-apxs=/usr/local/apache2/bin/apxs |
httpd.conf 에 모듈추가
1 2 3 |
LoadModule unique_id_module modules/mod_unique_id.so LoadModule security2_module modules/mod_security2.so LoadFile /usr/lib/libxml2.so |
6. KRCERT의 차단룰 다운로드 http://toolbox.krcert.or.kr/ modsecurity.conf 로 작성하여 /apache2/conf 안에 넣는다. httpds.conf에 Include conf/modsecury.conf 로 […]