Subversion Repositories configs

Rev

Rev 5 | Go to most recent revision | Details | 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*$
24
            ^%(__prefix_line)sUser .+ from <HOST> not allowed because a group is listed in DenyGroups\s*$
25
            ^%(__prefix_line)sUser .+ from <HOST> not allowed because none of user's groups are listed in AllowGroups\s*$
26
 
27
ignoreregex =
28
 
29
# DEV Notes:
30
#
31
#   "Failed \S+ for .*? from <HOST>..." failregex uses non-greedy catch-all because
32
#   it is coming before use of <HOST> which is not hard-anchored at the end as well,
33
#   and later catch-all's could contain user-provided input, which need to be greedily
34
#   matched away first.
35
#
36
# Author: Cyril Jaquier, Yaroslav Halchenko, Petr Voralek, Daniel Black