mod_security on Apache > 리눅스 Tip

본문 바로가기
 

mod_security on Apache

페이지 정보

작성자 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 20,508회 작성일 12-10-21 14:47

본문

mod_security on Apache

Published: Thursday, November 10th, 2011 by Chris Ciufo
ModSecurity is a web application firewall for the Apache web server. In addition to providing logging capabilities, ModSecurity can monitor the HTTP traffic in real time in order to detect attacks. ModSecurity also operates as a web intrusion detection tool, allowing you to react to suspicious events that take place at your web systems.

Installing ModSecurity

Before you install ModSecurity, you'll want to have a LAMP stack set up on your Linode. For instructions, see the LAMP Guides.

Ubuntu / Debian

To install ModSecurity on a Linode running Ubuntu or Debian, enter the following commands, one by one:
sudo apt-get install libxml2 libxml2-dev libxml2-utils
sudo apt-get install libaprutil1 libaprutil1-dev
sudo apt-get install libapache-mod-security
ModSecurity is now installed on your Linode.

CentOS / Fedora

To install ModSecurity on a Linode running CentOS or Fedora, perform the following steps:
  1. Install the GCC compiler and the dependancies by entering the following commands, one by one:
    sudo yum install gcc make
    sudo yum install libxml2 libxml2-devel httpd-devel pcre-devel curl-devel
    
  2. You'll need to install mod_security from source as there is no maintained package CentOS or Fedora yet. Grab the mod_security package and install it by entering the following commands, one by one:
    cd /usr/src
    wget http://www.modsecurity.org/download/modsecurity-apache_2.6.2.tar.gz
    tar xzf modsecurity-apache_2.6.2.tar.gz
    cd modsecurity-apache_2.6.2
    ./configure
    make install
    cp modsecurity.conf-recommended /etc/httpd/conf.d/modsecurity.conf
    
  3. Now you'll need to modify your Apache configuration to load the ModSecurity module. Find the LoadModule section in httpd.conf and add this line to the end:
    File:/etc/httpd/conf/httpd.conf
    LoadModule security2_module modules/mod_security2.so
    
  4. Restart Apache by entering the following command:
    sudo /etc/init.d/httpd restart
    
ModSecurity is now installed on your Linode.

댓글목록

등록된 댓글이 없습니다.

Total 138건 1 페이지
리눅스 Tip 목록
번호 제목 글쓴이 조회 날짜
138 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 21585 02-03
137 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 21542 12-24
136 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 21082 11-07
135 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 20885 04-10
134 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 20821 09-07
133 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 20806 01-13
132 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 20765 04-11
열람중 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 20509 10-21
130 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 20441 06-21
129 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 19886 06-12
128 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 19754 08-05
127 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 19730 01-13
126 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 19501 06-23
125 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 19498 06-05
124 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 19323 05-08
123 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 19274 09-02
122 no_profile 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 19182 11-15
121 no_profile 차동박 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 19016 05-29
게시물 검색