fix action tempates

tags/0.0.1
Daniel Berteaud 12 years ago
parent 08b187212a
commit d941c985ae
  1. 2
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/25Actions
  2. 2
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service30pam
  3. 2
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/90Recidive

@ -1,5 +1,5 @@
{
our $action = "action = smeserver[port=\"<port>\", protocol=<protocol>, bantime=<bantime>]";
our $action = "action = smeserver[port=\"<port>\", protocol=<protocol>, bantime=<bantime>]";
if (($fail2ban{'Mail'} || 'disabled') eq 'enabled'){
my $dest = $fail2ban{'MailRecipient'} || 'root';
$action .= " sendmail[name=<name>, dest=$dest]\n";

@ -3,6 +3,6 @@
enabled = true
filter = pam-generic
name = = pam-generic
$action
{"$action"}
logpath = /var/log/secure

@ -7,4 +7,4 @@ bantime = 604800
findtime = 86400
maxretry = 5
backend = polling
$action
{"$action"}

Loading…
Cancel
Save