Changes

Jump to navigation Jump to search
623 bytes added ,  06:48, 20 December 2016
no edit summary
Line 1: Line 1:  +
{{Languages|AddExtraHardDisk}}
 +
{{Level|Advanced}}
 +
{{usefulnote}}
 
How to install and configure mod_evasive on SME8
 
How to install and configure mod_evasive on SME8
   −
first add EPEL repo
+
=== About ===
 +
What is mod_evasive?
 +
mod_evasive is an evasive maneuvers module for Apache to provide evasive action in the event of an HTTP DoS or DDoS attack or brute force attack. It is also designed to be a detection and network management tool, and can be easily configured to talk to ipchains, firewalls, routers, and etcetera. mod_evasive presently reports abuses via email and syslog facilities.
 +
=== Installation===
 +
first add the '''[[epel]]''' reposiotry.
    
then
 
then
Line 11: Line 18:     
then edit the file in /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/ with your favorite editor mcedit, nano, pico, vi, vim ...
 
then edit the file in /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/ with your favorite editor mcedit, nano, pico, vi, vim ...
  vim etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/20mod_evasive
+
  vim /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/20mod_evasive
    
Then change according to your need the followings
 
Then change according to your need the followings
Line 30: Line 37:     
then create the directory
 
then create the directory
  mkdir /var/log/mod_evasiv
+
  mkdir /var/log/mod_evasive
  chown www:www /var/log/mod_evasiv
+
  chown www:www /var/log/mod_evasive
    
  You could then easily set a jail with fail2ban that is checking theses logs...
 
  You could then easily set a jail with fail2ban that is checking theses logs...
   −
expand template and restart apache
+
expand template and restart apache
 
  expand-template /etc/httpd/conf/httpd.conf
 
  expand-template /etc/httpd/conf/httpd.conf
 
  /etc/init.d/httpd-e-smith restart
 
  /etc/init.d/httpd-e-smith restart
Line 45: Line 52:  
source
 
source
 
http://www.aru2l.org/index.php/forum/les-howtos/5958-mod_evasive-sur-sme8
 
http://www.aru2l.org/index.php/forum/les-howtos/5958-mod_evasive-sur-sme8
 +
 +
=== Resources ===
 +
http://www.zdziarski.com/blog/?page_id=442
 +
 +
[[Category:Howto]]
 +
[[Category:Administration]]
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,250

edits

Navigation menu