syslog integration and fail2ban improvement
This commit is contained in:
@@ -2,6 +2,6 @@
|
||||
before = common.conf
|
||||
|
||||
[Definition]
|
||||
failregex = <HOST> - .* \[.*\] ".*" (%FAIL2BAN_STATUS_CODES%) .* ".*" ".*"
|
||||
failregex = .* nginx: <HOST> - .* \[.*\] ".*" (%FAIL2BAN_STATUS_CODES%) .* ".*" ".*"
|
||||
ignoreregex =
|
||||
datepattern = %%d/%%b/%%Y:%%H:%%M:%%S
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
[DEFAULTS]
|
||||
[nginx-filter]
|
||||
bantime = %FAIL2BAN_BANTIME%
|
||||
findtime = %FAIL2BAN_FINDTIME%
|
||||
maxretry = %FAIL2BAN_MAXRETRY%
|
||||
|
||||
[nginx-filter]
|
||||
enabled = true
|
||||
action = nginx-action
|
||||
logpath = /var/log/access.log
|
||||
logpath = /var/log/nginx.log
|
||||
Reference in New Issue
Block a user