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
2020-03-05 12:47:11 +00:00
# [DEFAULT]
# logtype = short
2014-04-17 04:21:41 +00:00
[Definition]
2016-03-09 19:00:11 +00:00
_daemon = monit
2020-03-05 12:47:11 +00:00
_prefix = Warning|HttpRequest
2016-03-09 19:00:11 +00:00
# Regexp for previous (accessing monit httpd) and new (access denied) versions
2020-03-05 12:47:11 +00:00
failregex = ^%(__prefix_line)s(?:error\s*:\s+)?(?:%(_prefix)s):\s+(?:access denied\s+--\s+)?[Cc]lient '?<HOST>'?(?:\s+supplied|\s*:)\s+(?:unknown user '<F-ALT_USER>[^']+</F-ALT_USER>'|wrong password for user '<F-USER>[^']*</F-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 =