1# Fail2Ban configuration file 2# 3# Author: Cyril Jaquier 4# 5# 6 7[INCLUDES] 8 9before = sendmail-common.conf 10 mail-whois-common.conf 11 12[Definition] 13 14# bypass ban/unban for restored tickets 15norestored = 1 16 17# Option: actionban 18# Notes.: command executed when banning an IP. Take care that the 19# command is executed with Fail2Ban user rights. 20# Tags: See jail.conf(5) man page 21# Values: CMD 22# 23actionban = printf %%b "Subject: [Fail2Ban] <name>: banned <ip> from <fq-hostname> 24 Date: `LC_ALL=C date +"%%a, %%d %%h %%Y %%T %%z"` 25 From: <sendername> <<sender>> 26 To: <dest>\n 27 Hi,\n 28 The IP <ip> has just been banned by Fail2Ban after 29 <failures> attempts against <name>.\n\n 30 Here is more information about <ip> :\n 31 `%(_whois_command)s`\n\n 32 Matches:\n 33 <matches>\n\n 34 Regards,\n 35 Fail2Ban" | <mailcmd> 36 37[Init] 38 39# Default name of the chain 40# 41name = default 42