1
0
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:
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 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).*$

View File

@ -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