diff --git a/CHANGELOG b/CHANGELOG index 65d5ceb2..fe76ac7c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -12,6 +12,8 @@ ver. 0.8.1 (2007/??/??) - stable - Fixed vulnerability in sshd.conf. Thanks to Daniel B. Cid - Expand in ignoreregex. Thanks to Yaroslav Halchenko - Improved regular expressions. Thanks to Yaroslav Halchenko +- Added sendmail actions. The action started with "mail" are + now deprecated. Thanks to Raphaƫl Marichez ver. 0.8.0 (2007/05/03) - stable ---------- diff --git a/MANIFEST b/MANIFEST index 60f13e54..7de5196b 100644 --- a/MANIFEST +++ b/MANIFEST @@ -84,6 +84,10 @@ config/action.d/mail.conf config/action.d/mail-buffered.conf config/action.d/mail-whois.conf config/action.d/mail-whois-lines.conf +config/action.d/sendmail.conf +config/action.d/sendmail-buffered.conf +config/action.d/sendmail-whois.conf +config/action.d/sendmail-whois-lines.conf config/action.d/shorewall.conf config/fail2ban.conf man/fail2ban-client.1 diff --git a/config/action.d/mail-buffered.conf b/config/action.d/mail-buffered.conf index 973d48ec..a39ca2b2 100644 --- a/config/action.d/mail-buffered.conf +++ b/config/action.d/mail-buffered.conf @@ -12,7 +12,7 @@ # Values: CMD # actionstart = echo -en "Hi,\n - The jail has been started successfuly.\n + The jail has been started successfully.\n Output will be buffered until lines are available.\n Regards,\n Fail2Ban"|mail -s "[Fail2Ban] : started" diff --git a/config/action.d/mail-whois-lines.conf b/config/action.d/mail-whois-lines.conf index c4bb9784..7e371557 100644 --- a/config/action.d/mail-whois-lines.conf +++ b/config/action.d/mail-whois-lines.conf @@ -12,7 +12,7 @@ # Values: CMD # actionstart = echo -en "Hi,\n - The jail has been started successfuly.\n + The jail has been started successfully.\n Regards,\n Fail2Ban"|mail -s "[Fail2Ban] : started" diff --git a/config/action.d/mail-whois.conf b/config/action.d/mail-whois.conf index 044aa05b..39f7fdac 100644 --- a/config/action.d/mail-whois.conf +++ b/config/action.d/mail-whois.conf @@ -12,7 +12,7 @@ # Values: CMD # actionstart = echo -en "Hi,\n - The jail has been started successfuly.\n + The jail has been started successfully.\n Regards,\n Fail2Ban"|mail -s "[Fail2Ban] : started" diff --git a/config/action.d/mail.conf b/config/action.d/mail.conf index 2757aa74..7c901894 100644 --- a/config/action.d/mail.conf +++ b/config/action.d/mail.conf @@ -12,7 +12,7 @@ # Values: CMD # actionstart = echo -en "Hi,\n - The jail has been started successfuly.\n + The jail has been started successfully.\n Regards,\n Fail2Ban"|mail -s "[Fail2Ban] : started" diff --git a/config/action.d/sendmail-buffered.conf b/config/action.d/sendmail-buffered.conf new file mode 100644 index 00000000..836ed384 --- /dev/null +++ b/config/action.d/sendmail-buffered.conf @@ -0,0 +1,105 @@ +# Fail2Ban configuration file +# +# Author: Cyril Jaquier +# +# $Revision$ +# + +[Definition] + +# Option: actionstart +# Notes.: command executed once at the start of Fail2Ban. +# Values: CMD +# +actionstart = echo -en "Subject: [Fail2Ban] : started + From: Fail2Ban <> + To: \n + Hi,\n + The jail has been started successfully.\n + Output will be buffered until lines are available.\n + Regards,\n + Fail2Ban" | /usr/sbin/sendmail -f + +# Option: actionend +# Notes.: command executed once at the end of Fail2Ban +# Values: CMD +# +actionstop = if [ -f ]; then + echo -en "Subject: [Fail2Ban] : stopped + From: Fail2Ban <> + To: \n + Hi,\n + These hosts have been banned by Fail2Ban.\n + `cat ` + Regards,\n + Fail2Ban" | /usr/sbin/sendmail -f + rm + fi + echo -en "Subject: [Fail2Ban] : stopped + From: Fail2Ban <> + To: \n + Hi,\n + The jail has been stopped.\n + Regards,\n + Fail2Ban" | /usr/sbin/sendmail -f + +# Option: actioncheck +# Notes.: command executed once before each actionban command +# Values: CMD +# +actioncheck = + +# Option: actionban +# Notes.: command executed when banning an IP. Take care that the +# command is executed with Fail2Ban user rights. +# Tags: IP address +# number of failures +#