Added filter nginx-bad-request

pull/2750/head
Jan Przybylak 2020-06-06 19:51:46 +02:00
parent 6cff2bb007
commit 3c83c19070
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
# Fail2Ban filter to match bad requests to nginx
#
[Definition]
# The request often doesn't contain a method, only some encoded garbage
failregex = ^<HOST> \- \S+ \[\] \".+\" 400 .+$
datepattern = {^LN-BEG}%%ExY(?P<_sep>[-/.])%%m(?P=_sep)%%d[T ]%%H:%%M:%%S(?:[.,]%%f)?(?:\s*%%z)?
^[^\[]*\[({DATE})
{^LN-BEG}
# Author: Jan Przybylak