Subversion Repositories configs

Rev

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

Rev Author Line No. Line
3 - 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`
33 - 20
            Date: `LC_TIME=C date +"%%a, %%d %%h %%Y %%T %%z"`
3 - 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
6 - 26
            Here is more information about <ip>:\n
27
            `/usr/bin/whois <ip> || echo missing whois program`\n
3 - 28
            Regards,\n
29
            Fail2Ban" | /usr/sbin/sendmail -f <sender> <dest>
30
 
31
[Init]
32
 
33
# Default name of the chain
34
#
35
name = default
36