diff --git a/roles/common/templates/etc/fail2ban/jail.d/nginx.local.j2 b/roles/common/templates/etc/fail2ban/jail.d/nginx.local.j2 index 8051798..ed934b9 100644 --- a/roles/common/templates/etc/fail2ban/jail.d/nginx.local.j2 +++ b/roles/common/templates/etc/fail2ban/jail.d/nginx.local.j2 @@ -9,6 +9,7 @@ banaction=nftables[type=allports] # Integrate with firewalld and ipsets banaction = firewallcmd-ipset {% endif %} +backend = pyinotify logpath = /var/log/nginx/*-access.log # Try to find a non-existent wp-login.php once and get banned. Tough luck. maxretry = 1