jcloude/press/playbooks/roles/fail2ban/templates/nginx-proxy-jail.conf.j2
2025-12-23 19:17:16 +08:00

12 lines
336 B
Django/Jinja

## block hosts trying to abuse our server as a forward proxy
## findtime - 5mins & bantime - 5mins
[nginx-proxy]
enabled = true
filter = nginx-proxy
logpath = {{ fail2ban_nginx_access_log }}
action = iptables-multiport[name=NoNginxProxy, port="http,https"]
maxretry = 3
bantime = 300
findtime = 300
ignoreip = {{ monitor_server_ips }}