tuning fail2ban
This commit is contained in:
parent
98c00d1c6a
commit
c4fa84b966
|
@ -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).*$
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue