| 3 |
- |
1 |
# Fail2Ban configuration file for generic PAM authentication errors
|
|
|
2 |
#
|
|
|
3 |
|
|
|
4 |
[INCLUDES]
|
|
|
5 |
|
|
|
6 |
before = common.conf
|
|
|
7 |
|
|
|
8 |
[Definition]
|
|
|
9 |
|
|
|
10 |
# if you want to catch only login errors from specific daemons, use something like
|
|
|
11 |
#_ttys_re=(?:ssh|pure-ftpd|ftp)
|
|
|
12 |
#
|
|
|
13 |
# Default: catch all failed logins
|
|
|
14 |
_ttys_re=\S*
|
|
|
15 |
|
| 33 |
- |
16 |
__pam_re=\(?%(__pam_auth)s(?:\(\S+\))?\)?:?
|
| 3 |
- |
17 |
_daemon = \S+
|
|
|
18 |
|
|
|
19 |
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*$
|
|
|
20 |
|
|
|
21 |
ignoreregex =
|
|
|
22 |
|
|
|
23 |
# DEV Notes:
|
|
|
24 |
#
|
|
|
25 |
# for linux-pam before 0.99.2.0 (late 2005) (removed before 0.8.11 release)
|
|
|
26 |
# _daemon = \S*\(?pam_unix\)?
|
|
|
27 |
# failregex = ^%(__prefix_line)sauthentication failure; logname=\S* uid=\S* euid=\S* tty=%(_ttys_re)s ruser=\S* rhost=<HOST>(?:\s+user=.*)?\s*$
|
|
|
28 |
#
|
|
|
29 |
# Author: Yaroslav Halchenko
|