Subversion Repositories configs

Rev

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