summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Boulogne <fboulogne at april dot org>2011-12-24 22:24:08 +0100
committerFrançois Boulogne <fboulogne at april dot org>2011-12-24 22:24:08 +0100
commit683d4f269d0b5995a9131a5c938a8141e7caf36b (patch)
tree35d6a253e08d102e04d51871189243533355562f
parenta7cb20edacb31636e046e3fee7b232a4fc214250 (diff)
downloadfail2ban-683d4f269d0b5995a9131a5c938a8141e7caf36b.tar.gz
modifications suggested by a referee (log ex+regexp)
-rw-r--r--config/filter.d/lighttpd-auth.conf2
-rw-r--r--testcases/files/logs/lighttpd2
2 files changed, 3 insertions, 1 deletions
diff --git a/config/filter.d/lighttpd-auth.conf b/config/filter.d/lighttpd-auth.conf
index 4e5fc38f..891eafd3 100644
--- a/config/filter.d/lighttpd-auth.conf
+++ b/config/filter.d/lighttpd-auth.conf
@@ -9,7 +9,7 @@
# Notes.: regex to match wrong passwords as notified by lighttpd's auth Module
# Values: TEXT
#
-failregex = .*http_auth.*password doesn\'t match.*IP: <HOST>
+failregex = .*http_auth.*password doesn\'t match.*IP: <HOST>$
# Option: ignoreregex
diff --git a/testcases/files/logs/lighttpd b/testcases/files/logs/lighttpd
new file mode 100644
index 00000000..bf5224a1
--- /dev/null
+++ b/testcases/files/logs/lighttpd
@@ -0,0 +1,2 @@
+#authentification failure (mod_auth)
+2011-12-24 18:43:32: (http_auth.c.875) password doesn't match for /gitweb/ username: foobar, IP: 11.11.11.11