Subversion Repositories configs

Rev

Rev 5 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5 Rev 39
Line 1... Line 1...
1
# Fail2Ban configuration file
1
# Fail2Ban configuration file
2
#
2
#
3
# Author: Cyril Jaquier
3
# Author: Cyril Jaquier
4
#
4
#
5
#
5
#
-
 
6
 
-
 
7
[INCLUDES]
-
 
8
 
-
 
9
before = mail-whois-common.conf
6
 
10
 
7
[Definition]
11
[Definition]
8
 
12
 
9
# Option:  actionstart
13
# Option:  actionstart
10
# Notes.:  command executed once at the start of Fail2Ban.
14
# Notes.:  command executed once at the start of Fail2Ban.
Line 37... Line 41...
37
# Values:  CMD
41
# Values:  CMD
38
#
42
#
39
actionban = printf %%b "Hi,\n
43
actionban = printf %%b "Hi,\n
40
            The IP <ip> has just been banned by Fail2Ban after
44
            The IP <ip> has just been banned by Fail2Ban after
41
            <failures> attempts against <name>.\n\n
45
            <failures> attempts against <name>.\n\n
42
            Here is more information about <ip>:\n
46
            Here is more information about <ip> :\n
43
            `whois <ip> || echo missing whois program`\n
47
            `%(_whois_command)s`\n
44
            Regards,\n
48
            Regards,\n
45
            Fail2Ban"|mail -s "[Fail2Ban] <name>: banned <ip> from `uname -n`" <dest>
49
            Fail2Ban"|mail -s "[Fail2Ban] <name>: banned <ip> from `uname -n`" <dest>
46
 
50
 
47
# Option:  actionunban
51
# Option:  actionunban
48
# Notes.:  command executed when unbanning an IP. Take care that the
52
# Notes.:  command executed when unbanning an IP. Take care that the