OVH Community, votre nouvel espace communautaire.

Mod evasive avec plesk


quentinheb
18/05/2009, 09h21
yum install httpd-devel
wget http://www.zdziarski.com/projects/mo..._1.10.1.tar.gz
tar xvf mod_evasive_1.10.1.tar.gz
which apxs (on cherche ou il est)
cd mod_evasive
"chez moi : /usr/sbin/apxs"
/usr/sbin/apxs -cia mod_evasive20.c

vi /etc/httpd/conf/httpd.conf

DOSHashTableSize 3097
DOSPageCount 2
DOSSiteCount 50
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 300
DOSLogDir "/var/log/evasive/"
mkdir /var/log/evasive
DOSBlockingPeriod 300 => on bloque la personne 300sec = 5min

service httpd restart

On test le tout :
cd /usr/src/mod_evasive/
chmod a+x test.pl
./test.pl