<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Protezione_di_un_server_Apache_con_mod_evasive</id>
	<title>Protezione di un server Apache con mod evasive - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Protezione_di_un_server_Apache_con_mod_evasive"/>
	<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Protezione_di_un_server_Apache_con_mod_evasive&amp;action=history"/>
	<updated>2026-05-06T17:26:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://kb.rvmgroup.it/index.php?title=Protezione_di_un_server_Apache_con_mod_evasive&amp;diff=9346&amp;oldid=prev</id>
		<title>Gabriele.vivinetto: Created page with &quot;=Installazione=  * mod_evasive permette di bloccare degli host che acceddono in maniera troppo agressiva rispondendo con un 403/forbidden  * Installare il pacchetto:  sudo apt...&quot;</title>
		<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Protezione_di_un_server_Apache_con_mod_evasive&amp;diff=9346&amp;oldid=prev"/>
		<updated>2015-07-06T13:31:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=Installazione=  * mod_evasive permette di bloccare degli host che acceddono in maniera troppo agressiva rispondendo con un 403/forbidden  * Installare il pacchetto:  sudo apt...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Installazione=&lt;br /&gt;
&lt;br /&gt;
* mod_evasive permette di bloccare degli host che acceddono in maniera troppo agressiva rispondendo con un 403/forbidden&lt;br /&gt;
&lt;br /&gt;
* Installare il pacchetto:&lt;br /&gt;
 sudo apt-get install libapache2-mod-evasive&lt;br /&gt;
&lt;br /&gt;
* Se si intende notificare i blocchi via mail, occorre creare un symlink per mail (eventualmente installarlo):&lt;br /&gt;
 sudo ln -s /usr/bin/mail /bin/mail&lt;br /&gt;
&lt;br /&gt;
* Abilitare il modulo:&lt;br /&gt;
 sudo a2enmod mod-evasive&lt;br /&gt;
&lt;br /&gt;
=Configurazione=&lt;br /&gt;
&lt;br /&gt;
* Creare il file di configurazione globale per il web server&lt;br /&gt;
 sudoedit /etc/apache2/conf.d/mod-evasive&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;IfModule  mod_evasive20.c&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Size of the hash table used to store the IPs.&lt;br /&gt;
   DOSHashTableSize 3097&lt;br /&gt;
&lt;br /&gt;
# Number of pages allowed per DOSPageInterval.&lt;br /&gt;
   DOSPageCount 5&lt;br /&gt;
&lt;br /&gt;
# Time in seconds used by DOSPageCount.&lt;br /&gt;
   DOSPageInterval 1&lt;br /&gt;
&lt;br /&gt;
# Number of objects allowed per DOSSiteInterval.&lt;br /&gt;
   DOSSiteCount 100&lt;br /&gt;
&lt;br /&gt;
# Time in seconds used by DOSSiteCount.&lt;br /&gt;
   DOSSiteInterval 1&lt;br /&gt;
&lt;br /&gt;
# Time in seconds that IPs will be banned. If an IP tries to access the &lt;br /&gt;
# server within this period, the count will be restarted.&lt;br /&gt;
   DOSBlockingPeriod 10&lt;br /&gt;
&lt;br /&gt;
# Directory to store the logs. If not specified, /tmp will be used. Optional&lt;br /&gt;
   DOSLogDir &amp;quot;/var/lock/mod_evasive&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Mail where notifications will be sent. Uses /bin/mail. Optional&lt;br /&gt;
   DOSEmailNotify mailbox@example.com&lt;br /&gt;
&lt;br /&gt;
# List of IPs which won’t be blocked. Optional&lt;br /&gt;
#   DOSWhitelist&lt;br /&gt;
&lt;br /&gt;
# Command to execute if an IP is blocked. Optional For example:&lt;br /&gt;
#   DOSSystemCommand &amp;quot;/sbin/iptables -I INPUT -p tcp --dport 80 -s %s -j DROP&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Riavviare apache&lt;br /&gt;
 sudo /etc/init.d/apache2 restart&lt;br /&gt;
&lt;br /&gt;
=Test=&lt;br /&gt;
* Esiste uno script apposito:&lt;br /&gt;
 perl /usr/share/doc/libapache2-mod-evasive/examples/test.pl&lt;br /&gt;
&lt;br /&gt;
=Riferimenti=&lt;br /&gt;
*[https://www.linode.com/docs/websites/apache-tips-and-tricks/modevasive-on-apache mod_evasive on Apache - Linode Guides &amp;amp; Tutorials]&lt;br /&gt;
*[https://acidborg.wordpress.com/2009/06/25/installation-configuration-of-mod_evasive-in-ubuntu-server-9-04/ Installation &amp;amp; configuration of mod_evasive in Ubuntu Server 9.04 | Jaime Frutos Morales&amp;#039;s blog]&lt;br /&gt;
*[http://www.webhostingtalk.com/showthread.php?t=937724 mod_evasive neither does send mail nore write to log file | Web Hosting Talk]&lt;br /&gt;
*[http://serverfault.com/questions/620734/modevasive-not-sending-email-alerts linux - ModEvasive Not Sending Email Alerts - Server Fault]&lt;br /&gt;
*[http://www.debian-tutorials.com/apache2-prevent-ddos-attack-with-mod_evasive-in-debian-squeeze Debian copy/paste Tutorials - Linux Tutorials - Apache2 Prevent DDoS Attack With mod_evasive in Debian Squeeze]&lt;/div&gt;</summary>
		<author><name>Gabriele.vivinetto</name></author>
	</entry>
</feed>