2012-01-11 15:35:40 +00:00
|
|
|
# Fail2Ban configuration file
|
|
|
|
#
|
|
|
|
# Author: Xavier Devlamynck
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2012-02-28 16:28:06 +00:00
|
|
|
|
|
|
|
[INCLUDES]
|
|
|
|
|
|
|
|
# Read common prefixes. If any customizations available -- read them from
|
|
|
|
# common.local
|
|
|
|
before = common.conf
|
|
|
|
|
2012-01-11 15:35:40 +00:00
|
|
|
[Definition]
|
|
|
|
|
|
|
|
# Option: failregex
|
|
|
|
# Notes.: regex to match the password failures 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>\S+)
|
|
|
|
# Values: TEXT
|
|
|
|
#
|
2013-05-29 23:43:39 +00:00
|
|
|
failregex = NOTICE%(__pid_re)s .*: Registration from '.*' failed for '<HOST>(:[0-9]+)?' - Wrong password$
|
|
|
|
NOTICE%(__pid_re)s .*: Registration from '.*' failed for '<HOST>(:[0-9]+)?' - No matching peer found$
|
|
|
|
NOTICE%(__pid_re)s .*: Registration from '.*' failed for '<HOST>(:[0-9]+)?' - Username/auth name mismatch$
|
|
|
|
NOTICE%(__pid_re)s .*: Registration from '.*' failed for '<HOST>(:[0-9]+)?' - Device does not match ACL$
|
|
|
|
NOTICE%(__pid_re)s .*: Registration from '.*' failed for '<HOST>(:[0-9]+)?' - Peer is not supposed to register$
|
|
|
|
NOTICE%(__pid_re)s .*: Registration from '.*' failed for '<HOST>(:[0-9]+)?' - ACL error (permit/deny)$
|
2013-05-14 11:04:11 +00:00
|
|
|
NOTICE%(__pid_re)s.* .*: Call from '.*' \(<HOST>:.*\) to extension '.*' rejected because extension not found in context 'default'.$
|
2012-02-21 17:05:53 +00:00
|
|
|
NOTICE%(__pid_re)s <HOST> failed to authenticate as '.*'$
|
|
|
|
NOTICE%(__pid_re)s .*: No registration for peer '.*' \(from <HOST>\)$
|
|
|
|
NOTICE%(__pid_re)s .*: Host <HOST> failed MD5 authentication for '.*' (.*)$
|
|
|
|
NOTICE%(__pid_re)s .*: Failed to authenticate user .*@<HOST>.*$
|
2013-05-14 11:04:11 +00:00
|
|
|
SECURITY%(__pid_re)s .*: SecurityEvent="InvalidAccountID",EventTV=".*",Severity=".*",Service=".*",EventVersion=".*",AccountID=".*",SessionID=".*",LocalAddress=".*",RemoteAddress=".*/.*/<HOST>/.*"$
|
2012-01-11 15:35:40 +00:00
|
|
|
|
|
|
|
# Option: ignoreregex
|
|
|
|
# Notes.: regex to ignore. If this regex matches, the line is ignored.
|
|
|
|
# Values: TEXT
|
|
|
|
#
|
|
|
|
ignoreregex =
|
2013-05-14 11:04:11 +00:00
|
|
|
|
|
|
|
|