Benutzer-Werkzeuge

Webseiten-Werkzeuge


fail2ban

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige ÜberarbeitungVorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
fail2ban [2025/11/04 21:38] varnholtfail2ban [2025/11/04 22:06] (aktuell) varnholt
Zeile 20: Zeile 20:
 #logpath  = /var/log/apache2/access_log #logpath  = /var/log/apache2/access_log
 logpath = /usr/local/var/log/httpd/access_log logpath = /usr/local/var/log/httpd/access_log
 +
 +Man darf fail2ban nicht den selben Namen für die zu bannenden ip's geben, wie sshblack.pl
 +
 +21:41 > sudo fail2ban-client status
 +Status
 +|- Number of jail: 1
 +`- Jail list: apache-block-scan-bots
 +
 +22:02 > sudo fail2ban-client status apache-block-scan-bots
 +Status for the jail: apache-block-scan-bots
 +|- Filter
 +|  |- Currently failed: 1
 +|  |- Total failed: 29
 +|  `- File list: /usr/local/var/log/httpd/access_log
 +`- Actions
 +   |- Currently banned: 1
 +   |- Total banned: 1
 +   `- Banned IP list: 204.76.203.30
 +
 +sudo tail -f /var/log/fail2ban.log
 +
 +sudo pfctl -t f2b-apache-block-scan-bots -T show
 +
 +
 </code> </code>
 +
 +siehe auch [[sshblack|sshblack]]
 +
 +Stand November 2025
fail2ban.1762288705.txt.gz · Zuletzt geändert: 2025/11/04 21:38 von varnholt