mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-05-31 07:08:58 +02:00
Merge 1fb3434ff5 into 4c36d6e6c9
This commit is contained in:
13
conf/fail2ban/filter.d/nginx-req-limit.conf
Normal file
13
conf/fail2ban/filter.d/nginx-req-limit.conf
Normal 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 =
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user