tuning fail2ban

This commit is contained in:
KiekerJan 2021-08-29 22:47:29 +02:00
parent 98c00d1c6a
commit c4fa84b966
2 changed files with 1 additions and 4 deletions

View File

@ -1,8 +1,6 @@
# Ban requests for non-existing or not-allowed resources
# Ban requests for 40x results
[Definition]
# first regex for error.log, second for access.log
# regex for nginx error.log
failregex = ^.* \[error\] .*2: No such file or directory.*client: <HOST>.*$
^<HOST> - .*"(GET|POST|HEAD).*HTTP.*" (400|401|403|404) .*$
ignoreregex = ^.*(robots.txt|favicon.ico).*$

View File

@ -8,7 +8,6 @@ enabled = true
port = http,https
filter = nginx-badrequests
logpath = /var/log/nginx/error.log
/var/log/nginx/access.log
maxretry = 8
findtime = 15m
bantime = 15m