User Tools

Site Tools


docs:tips_n_tricks:fail2ban.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

docs:tips_n_tricks:fail2ban.html [13.08.2022 02:24 CEST] – created peterdocs:tips_n_tricks:fail2ban.html [21.04.2024 23:55 CEST] (current) peter
Line 19: Line 19:
   TMPDIR=/scratch/tmp/ sqlite3 $PWD/fail2ban.sqlite3 "VACUUM ;" && systemctl start fail2ban   TMPDIR=/scratch/tmp/ sqlite3 $PWD/fail2ban.sqlite3 "VACUUM ;" && systemctl start fail2ban
   ls -lah fail2ban.sqlite3   ls -lah fail2ban.sqlite3
 +
 +===== Configuration =====
 +
 +  vi /etc/fail2ban/jail.d/jail.local
 +  systemctl reload fail2ban
 +
 +==== Whitelist IPs / IP Ranges ====
 +
 +<file fail2ban /etc/fail2ban/jail.d/jail.local>
 +ignoreip = 127.0.0.1 10.0.0.0/8 192.168.0.0/16
 +</file>
 +
 +==== Set default bantime, max allowed failures and different values for e.g. dovecot ====
 +
 +<file fail2ban /etc/fail2ban/jail.d/jail.local>
 +[DEFAULT]
 +bantime = 1h
 +maxretry = 3
 +[dovecot]
 +bantime = 24h
 +</file>
 +
docs/tips_n_tricks/fail2ban.html.txt · Last modified: 21.04.2024 23:55 CEST by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki