From be7cc4f81ccb8d5973648d6e1bae74c28488dbc9 Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Wed, 19 Jul 2006 21:35:22 +0000 Subject: [PATCH] - Added mail script git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@256 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- config/action.d/mail.conf | 69 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 config/action.d/mail.conf diff --git a/config/action.d/mail.conf b/config/action.d/mail.conf new file mode 100644 index 00000000..5d06c121 --- /dev/null +++ b/config/action.d/mail.conf @@ -0,0 +1,69 @@ +# Fail2Ban configuration file +# +# Author: Cyril Jaquier +# +# $Revision: 254 $ +# + +[Definition] + +# Option: fwstart +# Notes.: command executed once at the start of Fail2Ban. +# Values: CMD Default: +# +actionstart = echo -en "Hi,\n + The jail has been started successfuly.\n + Regards,\n + Fail2Ban"|mail -s "[Fail2Ban] : started" + +# Option: fwend +# Notes.: command executed once at the end of Fail2Ban +# Values: CMD Default: +# +actionstop = echo -en "Hi,\n + The jail has been stopped.\n + Regards,\n + Fail2Ban"|mail -s "[Fail2Ban] : stopped" + +# Option: fwcheck +# Notes.: command executed once before each fwban command +# Values: CMD Default: +# +actioncheck = + +# Option: fwban +# Notes.: command executed when banning an IP. Take care that the +# command is executed with Fail2Ban user rights. +# Tags: IP address +# number of failures +# unix timestamp of the last failure +# unix timestamp of the ban time +# Values: CMD +# Default: iptables -I INPUT 1 -s -j DROP +# +actionban = echo -en "Hi,\n + The IP has just been banned by Fail2Ban after + attempts against
.\n + Regards,\n + Fail2Ban"|mail -s "[Fail2Ban] : banned " + +# Option: fwunban +# Notes.: command executed when unbanning an IP. Take care that the +# command is executed with Fail2Ban user rights. +# Tags: IP address +# unix timestamp of the ban time +# unix timestamp of the unban time +# Values: CMD +# Default: iptables -D INPUT -s -j DROP +# +actionunban = + +[Init] + +# Defaut name of the chain +# +name = default + +# Destinataire of the mail +# +dest = root