BF: fix filter on apache-auth. Closes #286

pull/287/head
Daniel Black 2013-07-11 22:13:51 +10:00
parent 424da92601
commit 6ce41a611d
4 changed files with 13 additions and 4 deletions

View File

@ -11,7 +11,8 @@ ver. 0.8.11 (2013/XX/XXX) - wanna-be-released
-----------
- Fixes:
Daniel Black & Marcel Dopita
* filter.d/apache-auth -- fixed and apache auth samples provide. closes #286
- New Features:
Daniel Black & ykimon
* filter.d/3proxy.conf -- filter added

1
THANKS
View File

@ -28,6 +28,7 @@ Joël Bertrand
Justin Shore
Kévin Drapel
kojiro
Marcel Dopita
Mark Edgington
Markus Hoffmann
Marvin Rouge

View File

@ -18,8 +18,12 @@ before = apache-common.conf
# be used for standard IP/hostname matching and is only an alias for
# (?:::f{4,6}:)?(?P<host>[\w\-.^_]+)
# Values: TEXT
#
failregex = ^%(_apache_error_client)s user .* (authentication failure|not found|password mismatch)\s*$
# http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/aaa/mod_auth_basic.c
failregex = ^%(_apache_error_client)s user .* authentication failure for "\S*": Password Mismatch$
^%(_apache_error_client)s user .* not found: \S*\s*$
# Option: ignoreregex
# Notes.: regex to ignore. If this regex matches, the line is ignored.

View File

@ -2,4 +2,7 @@
[Sat Jun 01 02:17:42 2013] [error] [client 192.168.33.1] File does not exist: /srv/http/site/[client 192.168.0.1] user root not found
# should match
[Sat Jun 01 02:17:42 2013] [error] [client 192.168.0.2] user root not found
# from https://github.com/fail2ban/fail2ban/issues/286
[Thu Jul 11 01:21:41 2013] [error] [client 194.228.20.113] user not found: /
[Thu Jul 11 01:21:43 2013] [error] [client 194.228.20.113] user dsfasdf not found: /
[Thu Jul 11 01:21:45 2013] [error] [client 194.228.20.113] user dsfasdf not found: /