2013-12-15 21:41:43 +00:00
|
|
|
# Fail2Ban configuration file
|
|
|
|
#
|
|
|
|
# Author: Cyril Jaquier
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
[INCLUDES]
|
|
|
|
|
|
|
|
before = sendmail-common.conf
|
|
|
|
|
|
|
|
[Definition]
|
|
|
|
|
2017-01-16 08:40:48 +00:00
|
|
|
# bypass ban/unban for restored tickets
|
|
|
|
norestored = 1
|
|
|
|
|
2013-12-15 21:41:43 +00:00
|
|
|
# Option: actionban
|
|
|
|
# Notes.: command executed when banning an IP. Take care that the
|
|
|
|
# command is executed with Fail2Ban user rights.
|
|
|
|
# Tags: See jail.conf(5) man page
|
|
|
|
# Values: CMD
|
|
|
|
#
|
2017-04-24 18:17:57 +00:00
|
|
|
actionban = printf %%b "Subject: [Fail2Ban] <name>: banned <ip> from <fq-hostname>
|
2015-03-26 02:02:02 +00:00
|
|
|
Date: `LC_ALL=C date +"%%a, %%d %%h %%Y %%T %%z"`
|
2013-12-15 21:41:43 +00:00
|
|
|
From: <sendername> <<sender>>
|
|
|
|
To: <dest>\n
|
|
|
|
Hi,\n
|
|
|
|
The IP <ip> has just been banned by Fail2Ban after
|
|
|
|
<failures> attempts against <name>.\n\n
|
2015-07-24 07:33:47 +00:00
|
|
|
Here is more information about <ip> :\n
|
2013-12-15 21:41:43 +00:00
|
|
|
`/usr/bin/whois <ip>`\n\n
|
|
|
|
Matches:\n
|
|
|
|
<matches>\n\n
|
|
|
|
Regards,\n
|
|
|
|
Fail2Ban" | /usr/sbin/sendmail -f <sender> <dest>
|
|
|
|
|
|
|
|
[Init]
|
|
|
|
|
|
|
|
# Default name of the chain
|
|
|
|
#
|
|
|
|
name = default
|