Files
Sven-Hendrik Haase 2cfe464180 fail2ban: Ban for 1 day instead of 1 week when hitting rate limit
I think a week is excessive and it might catch the wrong people now and then which would be quite frustrating.
2026-10-27 21:41:41 +01:00

22 lines
729 B
YAML

# by default only the sshd jail is enabled
# override this variable in a host/group file to enable additional jails
fail2ban_jails:
sshd: true
postfix: false
dovecot: false
nginx_limit_req: false
# use variables for these directives so they can be overridden at a host or
# group level as required. note that there cannot be a space between the
# integer and the unit (eg "15min" == good, "15 min" == bad).
# refer to `man jail.conf`
fail2ban_findtime: 15min
fail2ban_bantime: 1day
fail2ban_maxretry: 5
fail2ban_nginx_limit_req_findtime: 1sec
fail2ban_nginx_limit_req_bantime: 1day
fail2ban_nginx_limit_req_maxretry: 1
fail2ban_nginx_limit_req_bantime_increment: true
fail2ban_nginx_limit_req_ignore_zones:
- rsslimit