How to install mod_evasive

 

How to install mod_evasive

How to install mod_evasive on a Directadmin server

by admin on Aug.14, 2010, under How to install mod_evasive, Linux

Install mod_evasive :

mod_evasive is one of the main module which is used to protect the Directadmin from low end ddos attacks.

Instructions :

  • Login to the root shell
  • cd /usr/local/src – move the src directory
  • wget http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz
  • tar zxvf mod_evasive_1.10.1.tar.gz - untar the downloaded module.
  • cd mod_evasive – move to the directory
  • /usr/sbin/apxs -i -a -c mod_evasive20.c – to add a module in apache.
  • vi /etc/httpd/conf/extra/httpd-evasive.conf – edit the module conf file, add the folloeing line

<IfModule mod_evasive20.c>
DOSHashTableSize 3097
DOSPageCount 2
DOSSiteCount 50
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 3600
DOSEmailNotify root
</IfModule>

  • vi /etc/httpd/conf/httpd.conf – edit the http.conf file, add the line mentioned below

Include conf/extra/httpd-evasive.conf

  • /etc/init.d/httpd restart – restart the apache service

Thats it !…… We have installed mod_evasive on a Directadmin server.

Was this answer helpful?

 Print this Article

Also Read

Add multiple IPs to a server

For example if you want to add a few IPs from the 111.123.123.1 class: [root@box ~]# cd...

Easy ruTorrent installer + Web server, FTP, Webmin (Ubuntu/Debian/Fedora/More)

All credit goes to Author brock from forums.rutorrent.org  original post here for reference also...

How to install IonCube Loaders

How to install ionCube loader: ionCube produces leading tools for PHP source code protection...

How to login SSH

Login using putty : 1)Download the putty from the following link...

How to change mysql root password

MySQL Change root Password: Setting up mysql password is one of the essential tasks. By default...