docs:tips_n_tricks:fail2ban.html
Differences
This shows you the differences between two versions of the page.
docs:tips_n_tricks:fail2ban.html [13.08.2022 02:24 CEST] – created peter | docs:tips_n_tricks:fail2ban.html [21.04.2024 23:55 CEST] (current) – peter | ||
---|---|---|---|
Line 19: | Line 19: | ||
TMPDIR=/ | TMPDIR=/ | ||
ls -lah fail2ban.sqlite3 | ls -lah fail2ban.sqlite3 | ||
+ | |||
+ | ===== Configuration ===== | ||
+ | |||
+ | vi / | ||
+ | systemctl reload fail2ban | ||
+ | |||
+ | ==== Whitelist IPs / IP Ranges ==== | ||
+ | |||
+ | <file fail2ban / | ||
+ | ignoreip = 127.0.0.1 10.0.0.0/8 192.168.0.0/ | ||
+ | </ | ||
+ | |||
+ | ==== Set default bantime, max allowed failures and different values for e.g. dovecot ==== | ||
+ | |||
+ | <file fail2ban / | ||
+ | [DEFAULT] | ||
+ | bantime = 1h | ||
+ | maxretry = 3 | ||
+ | [dovecot] | ||
+ | bantime = 24h | ||
+ | </ | ||
+ |
docs/tips_n_tricks/fail2ban.html.txt · Last modified: 21.04.2024 23:55 CEST by peter