Fix masq template syntax

tags/0.0.1
Daniel Berteaud 12 years ago
parent a2c6621151
commit 42bb3ba3f4
  1. 2
      root/etc/e-smith/templates/etc/rc.d/init.d/masq/90adjustFail2Ban

@ -15,7 +15,7 @@ EOF
$OUT .= " /sbin/iptables --append \$NEW_Fail2Ban -s $ip";
$OUT .= " -p $proto" if ($proto =~ m/^tcp|udp|icmp$/);
$OUT .= " -m multiport --dports $port" if ($proto =~ m/^tcp|udp$/ && $port =~ m/^\d+(,\d+)*$/);
$OUT .= " -j denylog\n"
$OUT .= " -j denylog\n";
$OUT .= " /sbin/iptables --append \$NEW_Fail2Ban" .
" -j RETURN\n";
}

Loading…
Cancel
Save