config-examples: update fail2ban config examples with current DMS default values (#3258)

Co-authored-by: Casper <casperklein@users.noreply.github.com>
This commit is contained in:
Andreas Perhab 2023-04-16 22:17:58 +02:00 committed by GitHub
parent c8dfb9ac76
commit 95c812346d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 16 deletions

View file

@ -1,14 +1,14 @@
[DEFAULT]
# "bantime" is the number of seconds that a host is banned.
bantime = 3h
bantime = 1w
# A host is banned if it has generated "maxretry" during the last "findtime"
# seconds.
findtime = 10m
findtime = 1w
# "maxretry" is the number of failures before a host get banned.
maxretry = 3
maxretry = 2
# "ignoreip" can be a list of IP addresses, CIDR masks or DNS hosts. Fail2ban
# will not ban a host which matches an address in this list. Several addresses
@ -25,9 +25,15 @@ enabled = true
[postfix]
enabled = true
# See https://github.com/fail2ban/fail2ban/blob/27294c4b9ee5d5568a1d5f83af744ea39d5a1acb/config/filter.d/postfix.conf#L58
# `mode=aggressive` basically combines more filters to match more lines, and hence, apply rules
# more aggressively. The same goes for the `postfix-sasl` jail.
mode = aggressive
[postfix-sasl]
enabled = true
mode = aggressive
# This jail is used for manual bans.
# To ban an IP address use: setup.sh fail2ban ban <IP>