Salut,
[quote=“ricardo”]
Est-ce que Fail2ban sait soigner ces “malades” ?
Lol, tu sais ???[/quote]
Oui:
Dans /etc/fail2ban/jail.local
# Règle anti-boulets...
[apache-404]
enabled = true
port = http
filter = apache-404
logpath = /var/log/ispconfig/httpd/*/error*
maxretry = 10
Puis dans /etc/fail2ban/filter.d/apache-404.conf
[code]
Fail2Ban configuration file
Author: Cyril Jaquier
$Revision: 471 $
[Definition]
Option: failregex
Notes.: regex to match the password failure messages in the logfile. The
host must be matched by a group named “host”. The tag “” can
be used for standard IP/hostname matching.
Values: TEXT
[client x.x.x.x] File does not exist: /home/www/admin/admin,
failregex = [[]client []] File does not exist: .*
Option: ignoreregex
Notes.: regex to ignore. If this regex matches, the line is ignored.
Values: TEXT
ignoreregex =[/code]

Edit: Attention ligne logs dans /etc/fail2ban/jail.local prévue pour un serveur IspConfig. Pour toi ce sera: /var/log/apache2/error.log
Fait attention à avoir un favicon dans ton site, c’est une erreur qui revient souvent, tout le monde va se faire bannir…
[quote][Wed Jan 11 13:56:12 2012] [error] [client xxx.xxx.xxx.xxx] File does not exist: /var/www/favicon.ico[/quote] 
Ou mettre une exception “ignoreregex =” dans /etc/fail2ban/filter.d/apache-404.conf