Subversion Repositories configs

Rev

Rev 34 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
34 - 1
# Fail2Ban configuration file
2
#
3
# Author: Viktor Szépe
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
#          You need to install geoiplookup and the GeoLite or GeoIP databases.
17
#          (geoip-bin and geoip-database in Debian)
18
#          The host command comes from bind9-host package.
19
# Tags:    See jail.conf(5) man page
20
# Values:  CMD
21
#
22
actionban = printf %%b "Subject: [Fail2Ban] <name>: banned <ip> from `uname -n`
39 - 23
            Date: `LC_ALL=C date +"%%a, %%d %%h %%Y %%T %%z"`
34 - 24
            From: <sendername> <<sender>>
25
            To: <dest>\n
26
            Hi,\n
27
            The IP <ip> has just been banned by Fail2Ban after
28
            <failures> attempts against <name>.\n\n
39 - 29
            Here is more information about <ip> :\n
34 - 30
            http://bgp.he.net/ip/<ip>
31
            http://www.projecthoneypot.org/ip_<ip>
32
            http://whois.domaintools.com/<ip>\n\n
33
            Country:`geoiplookup -f /usr/share/GeoIP/GeoIP.dat "<ip>" | cut -d':' -f2-`
34
            AS:`geoiplookup -f /usr/share/GeoIP/GeoIPASNum.dat "<ip>" | cut -d':' -f2-`
35
            hostname: `host -t A <ip> 2>&1`\n\n
36
            Lines containing IP:<ip> in <logpath>\n
39 - 37
            `grep -E <grepopts> '(^|[^0-9])<ip>([^0-9]|$)' <logpath>`\n\n
34 - 38
            Regards,\n
39
            Fail2Ban" | /usr/sbin/sendmail -f <sender> <dest>
40
 
41
[Init]
42
 
43
# Default name of the chain
44
#
45
name = default
46
 
47
# Path to the log files which contain relevant lines for the abuser IP
48
#
49
logpath = /dev/null
39 - 50
 
51
# Number of log lines to include in the email
52
#
53
grepopts = -m 1000