mirror of https://github.com/fail2ban/fail2ban
Line notes implemented
parent
0430e0dacc
commit
4c88a00c28
|
@ -14,12 +14,13 @@ before = sendmail-common.conf
|
||||||
# Notes.: Command executed when banning an IP. Take care that the
|
# Notes.: Command executed when banning an IP. Take care that the
|
||||||
# command is executed with Fail2Ban user rights.
|
# command is executed with Fail2Ban user rights.
|
||||||
# You need to install geoiplookup and the GeoLite or GeoIP databases.
|
# You need to install geoiplookup and the GeoLite or GeoIP databases.
|
||||||
# (geoip-bin and geoip-database-contrib in Debian)
|
# (geoip-bin and geoip-database in Debian)
|
||||||
|
# The host command comes from bind9-host package.
|
||||||
# Tags: See jail.conf(5) man page
|
# Tags: See jail.conf(5) man page
|
||||||
# Values: CMD
|
# Values: CMD
|
||||||
#
|
#
|
||||||
actionban = printf %%b "Subject: [Fail2Ban] <name>: banned <ip> from `uname -n`
|
actionban = printf %%b "Subject: [Fail2Ban] <name>: banned <ip> from `uname -n`
|
||||||
Date: `LC_TIME=C date -u +"%%a, %%d %%h %%Y %%T +0000"`
|
Date: `LC_TIME=C date +"%%a, %%d %%h %%Y %%T %%z"`
|
||||||
From: <sendername> <<sender>>
|
From: <sendername> <<sender>>
|
||||||
To: <dest>\n
|
To: <dest>\n
|
||||||
Hi,\n
|
Hi,\n
|
||||||
|
@ -29,9 +30,9 @@ actionban = printf %%b "Subject: [Fail2Ban] <name>: banned <ip> from `uname -n`
|
||||||
http://bgp.he.net/ip/<ip>
|
http://bgp.he.net/ip/<ip>
|
||||||
http://www.projecthoneypot.org/ip_<ip>
|
http://www.projecthoneypot.org/ip_<ip>
|
||||||
http://whois.domaintools.com/<ip>\n\n
|
http://whois.domaintools.com/<ip>\n\n
|
||||||
Country:`/usr/bin/geoiplookup -f /usr/share/GeoIP/GeoIP.dat "<ip>" | cut -d':' -f2-`
|
Country:`geoiplookup -f /usr/share/GeoIP/GeoIP.dat "<ip>" | cut -d':' -f2-`
|
||||||
AS:`/usr/bin/geoiplookup -f /usr/share/GeoIP/GeoIPASNum.dat "<ip>" | cut -d':' -f2-`
|
AS:`geoiplookup -f /usr/share/GeoIP/GeoIPASNum.dat "<ip>" | cut -d':' -f2-`
|
||||||
hostname: `/usr/bin/host -t A <ip> 2>&1`\n\n
|
hostname: `host -t A <ip> 2>&1`\n\n
|
||||||
Lines containing IP:<ip> in <logpath>\n
|
Lines containing IP:<ip> in <logpath>\n
|
||||||
`grep -E '(^|[^0-9])<ip>([^0-9]|$)' <logpath>`\n\n
|
`grep -E '(^|[^0-9])<ip>([^0-9]|$)' <logpath>`\n\n
|
||||||
Regards,\n
|
Regards,\n
|
||||||
|
|
Loading…
Reference in New Issue