2013-07-02 18:30:41 +00:00
|
|
|
# Fail2Ban configuration file
|
|
|
|
#
|
|
|
|
# Common settings for sendmail actions
|
|
|
|
#
|
|
|
|
# Users can override the defaults in sendmail-common.local
|
|
|
|
|
|
|
|
[INCLUDES]
|
|
|
|
|
|
|
|
after = sendmail-common.local
|
|
|
|
|
2013-12-15 21:41:43 +00:00
|
|
|
[Definition]
|
|
|
|
|
|
|
|
# Option: actionstart
|
|
|
|
# Notes.: command executed once at the start of Fail2Ban.
|
|
|
|
# Values: CMD
|
|
|
|
#
|
|
|
|
actionstart = printf %%b "Subject: [Fail2Ban] <name>: started on `uname -n`
|
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 jail <name> has been started successfully.\n
|
|
|
|
Regards,\n
|
|
|
|
Fail2Ban" | /usr/sbin/sendmail -f <sender> <dest>
|
|
|
|
|
|
|
|
# Option: actionstop
|
|
|
|
# Notes.: command executed once at the end of Fail2Ban
|
|
|
|
# Values: CMD
|
|
|
|
#
|
|
|
|
actionstop = printf %%b "Subject: [Fail2Ban] <name>: stopped on `uname -n`
|
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 jail <name> has been stopped.\n
|
|
|
|
Regards,\n
|
|
|
|
Fail2Ban" | /usr/sbin/sendmail -f <sender> <dest>
|
|
|
|
|
|
|
|
# Option: actioncheck
|
|
|
|
# Notes.: command executed once before each actionban command
|
|
|
|
# Values: CMD
|
|
|
|
#
|
2015-03-26 02:02:02 +00:00
|
|
|
actioncheck =
|
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
|
|
|
|
#
|
2015-03-26 02:02:02 +00:00
|
|
|
actionban =
|
2013-12-15 21:41:43 +00:00
|
|
|
|
|
|
|
# Option: actionunban
|
|
|
|
# Notes.: command executed when unbanning an IP. Take care that the
|
|
|
|
# command is executed with Fail2Ban user rights.
|
|
|
|
# Tags: See jail.conf(5) man page
|
|
|
|
# Values: CMD
|
|
|
|
#
|
2015-03-26 02:02:02 +00:00
|
|
|
actionunban =
|
2013-12-15 21:41:43 +00:00
|
|
|
|
2013-07-02 18:30:41 +00:00
|
|
|
[Init]
|
|
|
|
|
|
|
|
# Recipient mail address
|
|
|
|
#
|
|
|
|
dest = root
|
|
|
|
|
|
|
|
# Sender mail address
|
|
|
|
#
|
|
|
|
sender = fail2ban
|
|
|
|
|
|
|
|
# Sender display name
|
|
|
|
#
|
|
|
|
sendername = Fail2Ban
|