mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-25 07:47:05 +00:00
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 non-existing or not-allowed resources
|
||||||
# Ban requests for 40x results
|
|
||||||
|
|
||||||
[Definition]
|
[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>.*$
|
failregex = ^.* \[error\] .*2: No such file or directory.*client: <HOST>.*$
|
||||||
^<HOST> - .*"(GET|POST|HEAD).*HTTP.*" (400|401|403|404) .*$
|
|
||||||
ignoreregex = ^.*(robots.txt|favicon.ico).*$
|
ignoreregex = ^.*(robots.txt|favicon.ico).*$
|
@ -8,7 +8,6 @@ enabled = true
|
|||||||
port = http,https
|
port = http,https
|
||||||
filter = nginx-badrequests
|
filter = nginx-badrequests
|
||||||
logpath = /var/log/nginx/error.log
|
logpath = /var/log/nginx/error.log
|
||||||
/var/log/nginx/access.log
|
|
||||||
maxretry = 8
|
maxretry = 8
|
||||||
findtime = 15m
|
findtime = 15m
|
||||||
bantime = 15m
|
bantime = 15m
|
||||||
|
Loading…
Reference in New Issue
Block a user