How To: Mod_evasive
Publicado: 09 Jul 2006, 00:41
Para Apache 1.3.x:
Quote:
cd /usr/local/src
wget http://www.nuclearelephant.com/proje..._1.10.1.tar.gz tar -zxf mod_evasive_1.10.1.tar.gz
cd mod_evasive
/etc/httpd/bin/apxs -cia mod_evasive.c
Para Apache 2.x.x:
Quote:
up2date -i httpd-devel
cd /usr/local/src
wget http://www.nuclearelephant.com/proje..._1.10.1.tar.gz
tar -zxf mod_evasive_1.10.1.tar.gz
cd mod_evasive
/usr/sbin/apxs -cia mod_evasive20.c
En Apache 1.3.xx debes agregar en el archivo httpd.conf, debajo de la sección de Addmodule:
Quote:
<IfModule mod_evasive.c>
DOSHashTableSize 3097
DOSPageCount 5
DOSSiteCount 100
DOSPageInterval 2
DOSSiteInterval 2
DOSBlockingPeriod 600
</IfModule>
En Apache 2.0.xx debes agregar en el archivo httpd.conf, debajo de la sección de Load Module:
Quote:
<IfModule mod_evasive20.c>
DOSHashTableSize 3097
DOSPageCount 5
DOSSiteCount 100
DOSPageInterval 2
DOSSiteInterval 2
DOSBlockingPeriod 10
DOSBlockingPeriod 600
</IfModule>
Cierra el archivo httpd.conf y guardalo.
Ahora reinicia Apache:
Quote:
service httpd restart
Fuente: http://www.eth0.us/mod_evasive
Traducción por SilveraR
Quote:
cd /usr/local/src
wget http://www.nuclearelephant.com/proje..._1.10.1.tar.gz tar -zxf mod_evasive_1.10.1.tar.gz
cd mod_evasive
/etc/httpd/bin/apxs -cia mod_evasive.c
Para Apache 2.x.x:
Quote:
up2date -i httpd-devel
cd /usr/local/src
wget http://www.nuclearelephant.com/proje..._1.10.1.tar.gz
tar -zxf mod_evasive_1.10.1.tar.gz
cd mod_evasive
/usr/sbin/apxs -cia mod_evasive20.c
En Apache 1.3.xx debes agregar en el archivo httpd.conf, debajo de la sección de Addmodule:
Quote:
<IfModule mod_evasive.c>
DOSHashTableSize 3097
DOSPageCount 5
DOSSiteCount 100
DOSPageInterval 2
DOSSiteInterval 2
DOSBlockingPeriod 600
</IfModule>
En Apache 2.0.xx debes agregar en el archivo httpd.conf, debajo de la sección de Load Module:
Quote:
<IfModule mod_evasive20.c>
DOSHashTableSize 3097
DOSPageCount 5
DOSSiteCount 100
DOSPageInterval 2
DOSSiteInterval 2
DOSBlockingPeriod 10
DOSBlockingPeriod 600
</IfModule>
Cierra el archivo httpd.conf y guardalo.
Ahora reinicia Apache:
Quote:
service httpd restart
Fuente: http://www.eth0.us/mod_evasive
Traducción por SilveraR