Subversion Repositories configs

Rev

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

Rev 34 Rev 39
Line 15... Line 15...
15
#          command is executed with Fail2Ban user rights.
15
#          command is executed with Fail2Ban user rights.
16
# Tags:    See jail.conf(5) man page
16
# Tags:    See jail.conf(5) man page
17
# Values:  CMD
17
# Values:  CMD
18
#
18
#
19
actionban = printf %%b "Subject: [Fail2Ban] <name>: banned <ip> from `uname -n`
19
actionban = printf %%b "Subject: [Fail2Ban] <name>: banned <ip> from `uname -n`
20
            Date: `LC_TIME=C date +"%%a, %%d %%h %%Y %%T %%z"`
20
            Date: `LC_ALL=C date +"%%a, %%d %%h %%Y %%T %%z"`
21
            From: <sendername> <<sender>>
21
            From: <sendername> <<sender>>
22
            To: <dest>\n
22
            To: <dest>\n
23
            Hi,\n
23
            Hi,\n
24
            The IP <ip> has just been banned by Fail2Ban after
24
            The IP <ip> has just been banned by Fail2Ban after
25
            <failures> attempts against <name>.\n\n
25
            <failures> attempts against <name>.\n\n
26
            Here is more information about <ip>:\n
26
            Here is more information about <ip> :\n
27
            `/usr/bin/whois <ip> || echo missing whois program`\n\n
27
            `/usr/bin/whois <ip> || echo missing whois program`\n\n
28
            Lines containing IP:<ip> in <logpath>\n
28
            Lines containing IP:<ip> in <logpath>\n
29
            `grep -E '(^|[^0-9])<ip>([^0-9]|$)' <logpath>`\n\n
29
            `grep -E <grepopts> '(^|[^0-9])<ip>([^0-9]|$)' <logpath>`\n\n
30
            Regards,\n
30
            Regards,\n
31
            Fail2Ban" | /usr/sbin/sendmail -f <sender> <dest>
31
            Fail2Ban" | /usr/sbin/sendmail -f <sender> <dest>
32
 
32
 
33
[Init]
33
[Init]
34
 
34
 
Line 38... Line 38...
38
 
38
 
39
# Path to the log files which contain relevant lines for the abuser IP
39
# Path to the log files which contain relevant lines for the abuser IP
40
#
40
#
41
logpath = /dev/null
41
logpath = /dev/null
42
 
42
 
-
 
43
# Number of log lines to include in the email
-
 
44
#
-
 
45
grepopts = -m 1000