mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-18 18:07:22 +01:00
tuning fail2ban
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user