mirror of https://github.com/fail2ban/fail2ban
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
971 B
36 lines
971 B
# Fail2Ban configuration file for generic PAM authentication errors
|
|
#
|
|
# Author: Yaroslav Halchenko
|
|
#
|
|
#
|
|
[INCLUDES]
|
|
|
|
before = common.conf
|
|
|
|
[Definition]
|
|
|
|
# if you want to catch only login erros from specific daemons, use smth like
|
|
#_ttys_re=(?:ssh|pure-ftpd|ftp)
|
|
# To catch all failed logins
|
|
_ttys_re=\S*
|
|
|
|
__pam_re=\(?pam_unix(?:\(\S+\))?\)?:?
|
|
_daemon = \S+
|
|
|
|
# Option: failregex
|
|
# Notes.: regex to match the password failures messages in the logfile.
|
|
# Values: TEXT
|
|
#
|
|
failregex = ^%(__prefix_line)s%(__pam_re)s\s+authentication failure; logname=\S* uid=\S* euid=\S* tty=%(_ttys_re)s ruser=\S* rhost=<HOST>(?:\s+user=.*)?\s*$
|
|
|
|
# for linux-pam before 0.99.2.0 (late 2005)
|
|
# _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*$
|
|
|
|
|
|
# Option: ignoreregex
|
|
# Notes.: regex to ignore. If this regex matches, the line is ignored.
|
|
# Values: TEXT
|
|
#
|
|
ignoreregex =
|