From 17dd080c5d63f9d866bd5a7b2f99b5c920705b66 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 3 May 2013 16:57:08 +0200 Subject: [PATCH] Fix pam generic description in mail notification and increase maxretry, so it's not triggerd at the same time as other jails --- root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service30pam | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service30pam b/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service30pam index 6fdf96b..07af966 100644 --- a/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service30pam +++ b/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service30pam @@ -3,8 +3,9 @@ enabled = true filter = pam-generic logpath = /var/log/secure +maxretry = {$maxretry*2} action = smeserver-iptables[bantime={"$bantime"}] { -$OUT .= " smeserver-sendmail[name=SSH,dest=$maildest]\n" +$OUT .= " smeserver-sendmail[name=\"PAM generic\",dest=$maildest]\n" if ($mail eq 'enabled'); }