亞波治

공개 웹 방화벽을 설치 해 보자

· 2015-11-07 (토) 09:26:26 · 2749

@ mod_security 모듈 설치


# cd /usr/local/src
# wget http://www.modsecurity.org/download/ModSecurity-2.7.6.tar.gz
# tar xvfz ModSecurity-2.7.6.tar.gz
# cd ModSecurity-2.7.6
# ./autogen.sh
# ./configure --with-apxs=/usr/local/apache/bin/apxs --with-apr=/usr/local/apr/bin/apr-1-config --with-apu=/usr/local/apr-util/bin/apu-1-config --with-lua --with-pcre=/usr/local/bin/pcre-config
# make && make install
cp /usr/local/src/ModSecurity-2.7.6/modsecurity.conf-recommended /usr/local/apache/conf/modsecurity.conf  

 

아파치 환경파일 (http.conf)에 추가   

아파치 환경파일을 열어 위에서 설치한 모듈을 불러드립니다.
LoadModule security2_module modules/mod_security2.so  

 

그리고, 파일 하단에 다음 문을 추가합니다. 차후 다운로드 받을 룰셋 파일을 불러드리기 위함입니다.  

 Include conf/modsecurity.conf

# service httpd restart 

|
댓글을 작성하시려면 로그인이 필요합니다.

서버관리자

658건

서버관리자 모임 게시판 입니다.

+
제목 글쓴이 날짜 조회
15-11-11 조회 2,787
15-11-10 조회 6,614
15-11-10 조회 2,972
15-11-09 조회 3,107
15-11-09 조회 2,322
15-11-07 조회 2,750
15-11-07 조회 2,297
15-11-06 조회 3,392
15-11-05 조회 1,938
15-11-05 조회 2,458
15-11-04 조회 4,328
15-11-03 조회 3,075
15-11-03 조회 2,069
15-11-03 조회 2,640
15-11-02 조회 2,650
15-11-02 조회 1,796
15-11-02 조회 2,109
15-11-02 조회 1,697
15-11-01 조회 1,968
15-11-01 조회 1,794
15-11-01 조회 2,346
15-10-31 조회 3,212
15-10-31 조회 2,102
15-10-30 조회 2,437
15-10-30 조회 2,473
15-10-30 조회 2,498
15-10-30 조회 4,714
15-10-30 조회 4,459
15-10-30 조회 2,207
15-10-30 조회 2,145