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

· 10년 전 · 1129

@ 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 

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

자유게시판

+
제목 글쓴이 날짜 조회
10년 전 조회 1,220
10년 전 조회 1,299
10년 전 조회 1,168
10년 전 조회 2,363
10년 전 조회 1,654
10년 전 조회 1,171
10년 전 조회 1,161
10년 전 조회 1,251
10년 전 조회 1,293
10년 전 조회 1,092
10년 전 조회 1,338
10년 전 조회 1,312
10년 전 조회 1,166
10년 전 조회 1,197
10년 전 조회 1,130
10년 전 조회 2,134
10년 전 조회 1,249
10년 전 조회 1,187
10년 전 조회 1,175
10년 전 조회 1,126
10년 전 조회 1,735
10년 전 조회 1,280
10년 전 조회 1,823
10년 전 조회 1,700
10년 전 조회 1,350
10년 전 조회 1,973
10년 전 조회 1,280
10년 전 조회 1,801
10년 전 조회 1,407
10년 전 조회 2,821
🐛 버그신고