亞波治

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

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

@ 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 

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

서버관리자

663건

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

+
제목 글쓴이 날짜 조회
15-11-13 조회 4,531
15-11-13 조회 2,229
15-11-12 조회 2,292
15-11-11 조회 2,032
15-11-11 조회 4,147
15-11-11 조회 2,814
15-11-10 조회 6,638
15-11-10 조회 2,995
15-11-09 조회 3,135
15-11-09 조회 2,350
15-11-07 조회 2,780
15-11-07 조회 2,319
15-11-06 조회 3,415
15-11-05 조회 1,961
15-11-05 조회 2,482
15-11-04 조회 4,353
15-11-03 조회 3,100
15-11-03 조회 2,096
15-11-03 조회 2,667
15-11-02 조회 2,677
15-11-02 조회 1,822
15-11-02 조회 2,134
15-11-02 조회 1,721
15-11-01 조회 1,988
15-11-01 조회 1,815
15-11-01 조회 2,373
15-10-31 조회 3,239
15-10-31 조회 2,127
15-10-30 조회 2,462
15-10-30 조회 2,499