1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-05-31 07:08:58 +02:00
This commit is contained in:
Alon Ganon
2017-05-31 12:19:01 +00:00
committed by GitHub
3 changed files with 256 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
# Fail2Ban configuration file
#
# supports: ngx_http_limit_req_module module
[Definition]
failregex = limiting requests, excess:.* by zone.*client: <HOST>
# Option: ignoreregex
# Notes.: regex to ignore. If this regex matches, the line is ignored.
# Values: TEXT
#
ignoreregex =

View File

@@ -79,3 +79,12 @@ bantime = 3600
[ssh-ddos]
enabled = true
[nginx-req-limit]
enabled = true
filter = nginx-req-limit
action = iptables-multiport[name=ReqLimit, port="http,https", protocol=tcp]
logpath = /var/log/nginx/*error.log
findtime = 600
bantime = 7200