Mudanças entre as edições de "Mod evasive"
De MochilaWiki
Ir para navegaçãoIr para pesquisar (Nova página: Bloqueando ataques DDos no apache com mod_evasive apt-get install apache2-prefork-dev cd /usr/local/src wget -c http://pub.nkosi.org/apache2/mod_evasive_1.10.1.tar.gz wget http://pub....) |
|||
Linha 1: | Linha 1: | ||
Bloqueando ataques DDos no apache com mod_evasive | Bloqueando ataques DDos no apache com mod_evasive | ||
− | apt-get install apache2-prefork-dev | + | apt-get install apache2-prefork-dev |
− | cd /usr/local/src | + | cd /usr/local/src |
− | wget -c http://pub.nkosi.org/apache2/mod_evasive_1.10.1.tar.gz | + | wget -c http://pub.nkosi.org/apache2/mod_evasive_1.10.1.tar.gz |
− | wget http://pub.nkosi.org/apache2/evasive | + | wget http://pub.nkosi.org/apache2/evasive |
− | wget http://pub.nkosi.org/apache2/evasive.load | + | wget http://pub.nkosi.org/apache2/evasive.load |
− | mv evasive /etc/apache2/conf.d | + | mv evasive /etc/apache2/conf.d |
− | mv evasive.load /etc/apache2/mods-available | + | mv evasive.load /etc/apache2/mods-available |
− | tar zxvf mod_evasive_1.10.1.tar.gz | + | tar zxvf mod_evasive_1.10.1.tar.gz |
− | cd mod_evasive | + | cd mod_evasive |
− | sed -i "s/bin\/mail/usr\/bin\/mail/g" mod_evasive20.c | + | sed -i "s/bin\/mail/usr\/bin\/mail/g" mod_evasive20.c |
− | /usr/bin/apxs2 -i -c mod_evasive20.c | + | /usr/bin/apxs2 -i -c mod_evasive20.c |
− | a2enmod evasive | + | a2enmod evasive |
− | /etc/init.d/apache2 force-reload | + | /etc/init.d/apache2 force-reload |
− | |||
opt: para receber notificação por email, acrescente em /etc/apache2/conf.d/evasive: | opt: para receber notificação por email, acrescente em /etc/apache2/conf.d/evasive: | ||
− | DOSEmailNotify seu@examplomail.com | + | DOSEmailNotify seu@examplomail.com |
ou para guarda log: | ou para guarda log: | ||
− | DOSLogDir "/var/lock/mod_evasive" | + | DOSLogDir "/var/lock/mod_evasive" |
referências: | referências: | ||
− | http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz | + | * http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz |
− | http://advosys.ca/viewpoints/2006/08/installing-mod_evasive-in-ubuntu/ | + | * http://advosys.ca/viewpoints/2006/08/installing-mod_evasive-in-ubuntu/ |
− | http://www.gforum.tv/board/1124/270275/instalar-o-mod_evasive.html | + | * http://www.gforum.tv/board/1124/270275/instalar-o-mod_evasive.html |
− | http://www.megawebservice.com.br/cliente/knowledgebase.php?action=displayarticle&catid=2&id=14 | + | * http://www.megawebservice.com.br/cliente/knowledgebase.php?action=displayarticle&catid=2&id=14 |
Edição das 13h39min de 20 de julho de 2009
Bloqueando ataques DDos no apache com mod_evasive
apt-get install apache2-prefork-dev cd /usr/local/src wget -c http://pub.nkosi.org/apache2/mod_evasive_1.10.1.tar.gz wget http://pub.nkosi.org/apache2/evasive wget http://pub.nkosi.org/apache2/evasive.load mv evasive /etc/apache2/conf.d mv evasive.load /etc/apache2/mods-available tar zxvf mod_evasive_1.10.1.tar.gz cd mod_evasive sed -i "s/bin\/mail/usr\/bin\/mail/g" mod_evasive20.c /usr/bin/apxs2 -i -c mod_evasive20.c a2enmod evasive /etc/init.d/apache2 force-reload
opt: para receber notificação por email, acrescente em /etc/apache2/conf.d/evasive:
DOSEmailNotify seu@examplomail.com
ou para guarda log:
DOSLogDir "/var/lock/mod_evasive"
referências:
- http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz
- http://advosys.ca/viewpoints/2006/08/installing-mod_evasive-in-ubuntu/
- http://www.gforum.tv/board/1124/270275/instalar-o-mod_evasive.html
- http://www.megawebservice.com.br/cliente/knowledgebase.php?action=displayarticle&catid=2&id=14