Skip to content

Instantly share code, notes, and snippets.

@hakvitbot
hakvitbot / filter.d_nginx-auth.conf
Created September 28, 2022 10:34 — forked from JulienBlancher/filter.d_nginx-auth.conf
Fail2ban Config with Nginx and SSH
#
# Auth filter /etc/fail2ban/filter.d/nginx-auth.conf:
#
# Blocks IPs that makes too much accesses to the server
#
[Definition]
failregex = ^<HOST> -.*"(GET|POST).*HTTP.*"
ignoreregex =