Subversion Repositories configs

Rev

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

Rev Author Line No. Line
4 - 1
# Fail2Ban configuration file
2
#
3
# Author: Cyril Jaquier
4
# Modified-By: Yaroslav Halchenko to include grepping on IP over log files
5
#
6
 
7
[Definition]
8
 
9
# Option:  actionstart
10
# Notes.:  command executed once at the start of Fail2Ban.
11
# Values:  CMD
12
#
13
actionstart = printf %%b "Hi,\n
14
              The jail <name> has been started successfully.\n
15
              Regards,\n
16
              Fail2Ban"|mail -s "[Fail2Ban] <name>: started on `uname -n`" <dest>
17
 
18
# Option:  actionstop
19
# Notes.:  command executed once at the end of Fail2Ban
20
# Values:  CMD
21
#
22
actionstop = printf %%b "Hi,\n
23
             The jail <name> has been stopped.\n
24
             Regards,\n
25
             Fail2Ban"|mail -s "[Fail2Ban] <name>: stopped on `uname -n`" <dest>
26
 
27
# Option:  actioncheck
28
# Notes.:  command executed once before each actionban command
29
# Values:  CMD
30
#
31
actioncheck =
32
 
33
# Option:  actionban
34
# Notes.:  command executed when banning an IP. Take care that the
35
#          command is executed with Fail2Ban user rights.
36
# Tags:    See jail.conf(5) man page
37
# Values:  CMD
38
#
39
actionban = printf %%b "Hi,\n
40
            The IP <ip> has just been banned by Fail2Ban after
41
            <failures> attempts against <name>.\n\n
5 - 42
            Here is more information about <ip>:\n
43
            `whois <ip> || echo missing whois program`\n\n
4 - 44
            Lines containing IP:<ip> in <logpath>\n
5 - 45
            `grep -E '(^|[^0-9])<ip>([^0-9]|$)' <logpath>`\n\n
4 - 46
            Regards,\n
47
            Fail2Ban"|mail -s "[Fail2Ban] <name>: banned <ip> from  `uname -n`" <dest>
48
 
49
# Option:  actionunban
50
# Notes.:  command executed when unbanning an IP. Take care that the
51
#          command is executed with Fail2Ban user rights.
52
# Tags:    See jail.conf(5) man page
53
# Values:  CMD
54
#
55
actionunban =
56
 
57
[Init]
58
 
59
# Default name of the chain
60
#
61
name = default
62
 
63
# Destinataire of the mail
64
#
65
dest = root
66
 
67
# Path to the log files which contain relevant lines for the abuser IP
68
#
69
logpath = /dev/null