Subversion Repositories configs

Rev

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