Outils pour utilisateurs

Outils du site


linux:fail2ban-apache-antibot

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
linux:fail2ban-apache-antibot [2016/08/05 13:39] gdureuillinux:fail2ban-apache-antibot [2020/07/24 22:03] (Version actuelle) – modification externe 127.0.0.1
Ligne 28: Ligne 28:
 filter = apache-antibot filter = apache-antibot
 port = http,https port = http,https
-#Fichier ou dossier de logs à surveiller +#Fichier ou dossier de logs à surveiller (prends en compte logrotate) 
-logpath = /home/www-data/logs/apache2/*.log+logpath = /home/www-data/logs/apache2/*.log*
 # Nombre de match dans les logs avant de bannir # Nombre de match dans les logs avant de bannir
-maxretry = 2+maxretry = 3
 # Période max surveillée # Période max surveillée
 findtime = 432000 findtime = 432000
Ligne 39: Ligne 39:
 #mta = mail #mta = mail
 #destemail = user@email.com #destemail = user@email.com
 +#Ban, mail avec whois et log
 #action = %(action_mwl)s #action = %(action_mwl)s
 +#Ban
 +action = %(action_)s  
 </sxh> </sxh>
  
Ligne 51: Ligne 54:
 #Modifier 'badurls' selon votre besoin #Modifier 'badurls' selon votre besoin
 [Definition] [Definition]
-badurls = stat|phpmyadmin|myadmin|mysql|phpadmin|sql|msd|mysqldumper|msd1.24.4|msd1.24.4stable|sqlite|sqlitemanager|webdb|soapCaller|manager|setup\.php|shell.\php|pma|status|jmx-console|HNAP1+badurls = stat|phpmyadmin|myadmin|mysql|phpadmin|sql|msd|mysqldumper|msd1.24.4|msd1.24.4stable|sqlite|sqlitemanager|webdb|soapCaller|manager|setup\.php|shell.\php|pma|status|jmx-console|HNAP1|wp-config\.txt|wp-config\.orig|wp-config\.php\.orig|wp-config\.old|wp-config\.php\.old|wp-config\.bak|wp-config\.php\.bak|wp-config\.php\.save|wp-config\.php_bak
  
 failregex = ^(?i)<HOST> .* "(GET|POST|HEAD) .*(%(badurls)s).* HTTP.*" (403|404) .*$ failregex = ^(?i)<HOST> .* "(GET|POST|HEAD) .*(%(badurls)s).* HTTP.*" (403|404) .*$
Ligne 125: Ligne 128:
 ===== Sources ===== ===== Sources =====
  
-[[http://fips.at/how-to-get-rid-of-http-bots-with-fail2ban.html|Source 1]] - [[http://www.fail2ban.org/wiki/index.php/Commands|Source 2]]+[[http://fips.at/how-to-get-rid-of-http-bots-with-fail2ban.html|fips.at]] - [[http://www.fail2ban.org/wiki/index.php/Commands|fail2ban.org]]
linux/fail2ban-apache-antibot.1470404356.txt.gz · Dernière modification : 2020/07/24 22:03 (modification externe)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki