Created
March 28, 2019 11:20
-
-
Save nitogel/12dbac44dad299bffb23c88f8ba9fe42 to your computer and use it in GitHub Desktop.
fail2ban nginx forbidden filter & jail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Definition] | |
failregex = ^ \[error\] \d+#\d+: .* forbidden .*, client: <HOST>, .*$ | |
ignoreregex = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[nginx-forbidden] | |
enabled = true | |
filter = nginx-forbidden-filter | |
port = http,https | |
logpath = /var/log/nginx/*error*.log | |
findtime = 3600 | |
bantime = 6000 | |
maxretry = 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment