This commit is contained in:
2025-08-04 18:24:30 +10:00
commit 9c9e8f09da
22 changed files with 533 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
[sshd]
enabled = {{ 'true' if fail2ban_sshd_enabled else 'false' }}
port = ssh
logpath = %(sshd_log)s
maxretry = {{ fail2ban_sshd_maxretry }}
bantime = {{ fail2ban_sshd_bantime }}
[nginx-http-auth]
enabled = {{ 'true' if fail2ban_nginx_enabled else 'false' }}
port = http,https
logpath = /var/log/nginx/error.log
maxretry = {{ fail2ban_nginx_maxretry }}
bantime = {{ fail2ban_nginx_bantime }}

View File

@@ -0,0 +1,4 @@
[Definition]
failregex = no user/password was provided for basic authentication.*client: <HOST>
ignoreregex =