feat(fail2ban): cleanup unused jails and add nginx-unified config
This commit is contained in:
parent
74b1f3892d
commit
61a4fce622
|
|
@ -0,0 +1,34 @@
|
||||||
|
[nginx-limit-req]
|
||||||
|
enabled = true
|
||||||
|
port = http,https
|
||||||
|
filter = nginx-limit-req
|
||||||
|
logpath = /var/log/nginx/*.error.log
|
||||||
|
maxretry = 1
|
||||||
|
|
||||||
|
[nginx-badbots]
|
||||||
|
enabled = true
|
||||||
|
port = http,https
|
||||||
|
filter = apache-badbots
|
||||||
|
logpath = /var/log/nginx/*.access.log
|
||||||
|
maxretry = 2
|
||||||
|
|
||||||
|
[nginx-deny]
|
||||||
|
enabled = true
|
||||||
|
port = http,https
|
||||||
|
filter = nginx-deny
|
||||||
|
logpath = /var/log/nginx/*.error.log
|
||||||
|
maxretry = 1
|
||||||
|
|
||||||
|
[nginx-unauthorized]
|
||||||
|
enabled = true
|
||||||
|
port = http,https
|
||||||
|
filter = nginx-unauthorized
|
||||||
|
logpath = /var/log/nginx/*.access.log
|
||||||
|
maxretry = 3
|
||||||
|
|
||||||
|
[nginx-bad-request]
|
||||||
|
enabled = true
|
||||||
|
port = http,https
|
||||||
|
filter = nginx-bad-request
|
||||||
|
logpath = /var/log/nginx/*.error.log
|
||||||
|
maxretry = 1
|
||||||
Loading…
Reference in New Issue