2008-03-10 22:03:34 +00:00
|
|
|
# Fail2Ban configuration file for generic PAM authentication errors
|
|
|
|
#
|
2013-10-30 13:02:59 +00:00
|
|
|
|
2013-09-17 00:50:46 +00:00
|
|
|
[INCLUDES]
|
|
|
|
|
|
|
|
before = common.conf
|
2008-03-10 22:03:34 +00:00
|
|
|
|
|
|
|
[Definition]
|
|
|
|
|
2013-10-30 13:02:59 +00:00
|
|
|
# if you want to catch only login errors from specific daemons, use something like
|
2008-03-10 22:03:34 +00:00
|
|
|
#_ttys_re=(?:ssh|pure-ftpd|ftp)
|
2013-10-30 13:02:59 +00:00
|
|
|
#
|
|
|
|
# Default: catch all failed logins
|
2008-03-10 22:03:34 +00:00
|
|
|
_ttys_re=\S*
|
|
|
|
|
2015-01-27 21:34:27 +00:00
|
|
|
__pam_re=\(?%(__pam_auth)s(?:\(\S+\))?\)?:?
|
2013-09-17 00:50:46 +00:00
|
|
|
_daemon = \S+
|
2008-03-10 22:03:34 +00:00
|
|
|
|
2017-02-20 15:42:51 +00:00
|
|
|
prefregex = ^%(__prefix_line)s%(__pam_re)s\s+authentication failure; logname=\S* uid=\S* euid=\S* tty=%(_ttys_re)s <F-CONTENT>.+</F-CONTENT>$
|
|
|
|
|
|
|
|
failregex = ^ruser=<F-USER>\S*</F-USER> rhost=<HOST>\s*$
|
|
|
|
^ruser= rhost=<HOST>\s+user=<F-USER>\S*</F-USER>\s*$
|
|
|
|
^ruser= rhost=<HOST>\s+user=<F-USER>.*?</F-USER>\s*$
|
|
|
|
^ruser=<F-USER>.*?</F-USER> rhost=<HOST>\s*$
|
2013-09-17 00:50:46 +00:00
|
|
|
|
2013-10-30 13:02:59 +00:00
|
|
|
ignoreregex =
|
|
|
|
|
|
|
|
# DEV Notes:
|
|
|
|
#
|
|
|
|
# for linux-pam before 0.99.2.0 (late 2005) (removed before 0.8.11 release)
|
2013-09-17 00:50:46 +00:00
|
|
|
# _daemon = \S*\(?pam_unix\)?
|
|
|
|
# failregex = ^%(__prefix_line)sauthentication failure; logname=\S* uid=\S* euid=\S* tty=%(_ttys_re)s ruser=\S* rhost=<HOST>(?:\s+user=.*)?\s*$
|
2008-05-21 22:17:00 +00:00
|
|
|
#
|
2013-10-30 13:02:59 +00:00
|
|
|
# Author: Yaroslav Halchenko
|