10월 22일 서버 점검 안내 (00:00~06:00)
亞波治

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

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

@ 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 

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

자유게시판

203,162건
+
제목 글쓴이 날짜 조회
15-11-07 조회 1,447
15-11-07 조회 1,341
15-11-07 조회 2,534
15-11-07 조회 1,843
15-11-07 조회 1,304
15-11-07 조회 1,319
15-11-07 조회 1,391
15-11-07 조회 1,441
15-11-07 조회 1,238
15-11-07 조회 1,483
15-11-07 조회 1,459
15-11-07 조회 1,323
15-11-07 조회 1,359
15-11-07 조회 1,269
15-11-07 조회 2,310
15-11-07 조회 1,394
15-11-07 조회 1,324
15-11-07 조회 1,324
15-11-07 조회 1,265
15-11-07 조회 1,891