Merge pull request #236 from itoffshore/alpine

fix fail2ban filter regex
This commit is contained in:
Stuart Cardall 2018-12-22 13:36:02 +00:00 committed by GitHub
commit 8b40f46bec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,8 +51,8 @@ _daemon = fail2ban\.actions\s*
# jail using this filter 'nginxrepeatoffender', or change this line!
_jailname = nginxrepeatoffender
failregex = ^<HOST> \- \S+ \[\] \"(GET|POST|HEAD) .* \S+\" (?:403|444) .+$
ignoreregex =
failregex = ^<HOST> \- \S+ \[.*\] \"(GET|POST|HEAD) .* \S+\" (?:403|444) .+$
ignoreregex = ^<HOST> \- \S+ \[.*\] \"(GET|POST|HEAD) .* \S+\" ?:200 .+$
[Init]