2016-03-29 10:31:26 +00:00
|
|
|
# Fail2Ban filter for Zoneminder login failures
|
|
|
|
#
|
|
|
|
|
|
|
|
[Definition]
|
|
|
|
|
2016-04-30 05:26:36 +00:00
|
|
|
# pattern: [Wed Apr 27 23:12:07.736196 2016] [:error] [pid 2460] [client 10.1.1.1:47296] WAR [Login denied for user "test"], referer: https://zoneminderurl/index.php
|
2016-03-29 10:31:26 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# Option: failregex
|
|
|
|
# Notes.: regex to match the password failure messages in the logfile. The
|
|
|
|
# host must be matched by a group named "host". The tag "<HOST>" can
|
|
|
|
# be used for standard IP/hostname matching and is only an alias for
|
|
|
|
# (?:::f{4,6}:)?(?P<host>[\w\-.^_]+)
|
|
|
|
|
|
|
|
|
2016-04-30 05:26:36 +00:00
|
|
|
failregex = ^\[\](?: \[:error\])?(?: \[pid \d+\])? \[client <HOST>:\d+\] WAR \[Login denied for user "[^"]*"\]
|
2016-03-29 10:31:26 +00:00
|
|
|
|
|
|
|
ignoreregex =
|
|
|
|
|
|
|
|
# Notes:
|
|
|
|
# Tested on Zoneminder 1.29.0
|
|
|
|
#
|
|
|
|
# Author: John Marzella
|