2007-07-05 16:10:33 +00:00
|
|
|
# Fail2Ban configuration file
|
|
|
|
#
|
|
|
|
# Author: Cyril Jaquier
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2013-07-02 18:30:41 +00:00
|
|
|
[INCLUDES]
|
|
|
|
|
|
|
|
before = sendmail-common.conf
|
|
|
|
|
2007-07-05 16:10:33 +00:00
|
|
|
[Definition]
|
|
|
|
|
2017-01-16 08:40:48 +00:00
|
|
|
# bypass ban/unban for restored tickets
|
|
|
|
norestored = 1
|
|
|
|
|
2007-07-05 16:10:33 +00:00
|
|
|
# Option: actionban
|
|
|
|
# Notes.: command executed when banning an IP. Take care that the
|
|
|
|
# command is executed with Fail2Ban user rights.
|
2013-03-16 23:52:49 +00:00
|
|
|
# Tags: See jail.conf(5) man page
|
2007-07-05 16:10:33 +00:00
|
|
|
# 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-07-02 18:30:41 +00:00
|
|
|
From: <sendername> <<sender>>
|
2007-07-05 16:10:33 +00:00
|
|
|
To: <dest>\n
|
|
|
|
Hi,\n
|
|
|
|
The IP <ip> has just been banned by Fail2Ban after
|
|
|
|
<failures> attempts against <name>.\n
|
|
|
|
Regards,\n
|
2019-06-15 21:02:53 +00:00
|
|
|
Fail2Ban" | <mailcmd>
|
2007-07-05 16:10:33 +00:00
|
|
|
|
|
|
|
[Init]
|
|
|
|
|
2013-03-10 22:05:33 +00:00
|
|
|
# Default name of the chain
|
2007-07-05 16:10:33 +00:00
|
|
|
#
|
|
|
|
name = default
|
|
|
|
|