2014-04-17 04:21:41 +00:00
|
|
|
# Fail2Ban filter for monit.conf, looks for failed access attempts
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2016-03-09 19:00:11 +00:00
|
|
|
[INCLUDES]
|
|
|
|
|
|
|
|
# Read common prefixes. If any customizations available -- read them from
|
|
|
|
# common.local
|
|
|
|
before = common.conf
|
|
|
|
|
2014-04-17 04:21:41 +00:00
|
|
|
[Definition]
|
|
|
|
|
2016-03-09 19:00:11 +00:00
|
|
|
_daemon = monit
|
|
|
|
|
|
|
|
# Regexp for previous (accessing monit httpd) and new (access denied) versions
|
2016-10-05 17:34:21 +00:00
|
|
|
failregex = ^\[\s*\]\s*error\s*:\s*Warning:\s+Client '<HOST>' supplied (?:unknown user '[^']+'|wrong password for user '[^']*') accessing monit httpd$
|
2016-03-09 19:00:11 +00:00
|
|
|
^%(__prefix_line)s\w+: access denied -- client <HOST>: (?:unknown user '[^']+'|wrong password for user '[^']*'|empty password)$
|
2014-04-17 04:21:41 +00:00
|
|
|
|
2016-03-09 19:00:11 +00:00
|
|
|
# Ignore login with empty user (first connect, no user specified)
|
|
|
|
# ignoreregex = %(__prefix_line)s\w+: access denied -- client <HOST>: (?:unknown user '')
|
2015-01-30 15:37:45 +00:00
|
|
|
ignoreregex =
|