2
0
mirror of https://github.com/frappe/bench.git synced 2025-02-05 04:18:25 +00:00
bench/playbooks/production/roles/fail2ban/templates/nginx-proxy-jail.conf.j2
2017-09-04 18:46:22 +05:30

8 lines
248 B
Django/Jinja

## block hosts trying to abuse our server as a forward proxy
[nginx-proxy]
enabled = true
filter = nginx-proxy
logpath = {{ fail2ban_nginx_access_log }}
action = iptables-multiport[name=NoNginxProxy, port="http,https"]
maxretry = 2
bantime = 86400