Subversion Repositories configs

Rev

Rev 4 | Rev 34 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
# Fail2Ban filter for openssh
2
#
3
 
4
[INCLUDES]
5
 
6
# Read common prefixes. If any customizations available -- read them from
7
# common.local
8
before = common.conf
9
 
10
 
11
[Definition]
12
 
13
_daemon = sshd
14
 
15
failregex = ^%(__prefix_line)s(?:error: PAM: )?[aA]uthentication (?:failure|error) for .* from <HOST>( via \S+)?\s*$
16
            ^%(__prefix_line)s(?:error: PAM: )?User not known to the underlying authentication module for .* from <HOST>\s*$
17
            ^%(__prefix_line)sFailed \S+ for .*? from <HOST>(?: port \d*)?(?: ssh\d*)?(: (ruser .*|(\S+ ID \S+ \(serial \d+\) CA )?\S+ %(__md5hex)s(, client user ".*", client host ".*")?))?\s*$
18
            ^%(__prefix_line)sROOT LOGIN REFUSED.* FROM <HOST>\s*$
19
            ^%(__prefix_line)s[iI](?:llegal|nvalid) user .* from <HOST>\s*$
20
            ^%(__prefix_line)sUser .+ from <HOST> not allowed because not listed in AllowUsers\s*$
21
            ^%(__prefix_line)sUser .+ from <HOST> not allowed because listed in DenyUsers\s*$
22
            ^%(__prefix_line)sUser .+ from <HOST> not allowed because not in any group\s*$
23
            ^%(__prefix_line)srefused connect from \S+ \(<HOST>\)\s*$
5 - 24
            ^%(__prefix_line)sReceived disconnect from <HOST>: 3: \S+: Auth fail$
4 - 25
            ^%(__prefix_line)sUser .+ from <HOST> not allowed because a group is listed in DenyGroups\s*$
26
            ^%(__prefix_line)sUser .+ from <HOST> not allowed because none of user's groups are listed in AllowGroups\s*$
27
 
28
ignoreregex =
29
 
30
# DEV Notes:
31
#
32
#   "Failed \S+ for .*? from <HOST>..." failregex uses non-greedy catch-all because
33
#   it is coming before use of <HOST> which is not hard-anchored at the end as well,
34
#   and later catch-all's could contain user-provided input, which need to be greedily
35
#   matched away first.
36
#
37
# Author: Cyril Jaquier, Yaroslav Halchenko, Petr Voralek, Daniel Black