From: Fede Date: Sat, 6 Oct 2007 16:00:59 +0000 (-0300) Subject: Add flush to iptables.sh template. X-Git-Url: https://git.llucax.com/software/pymin.git/commitdiff_plain/8284a286a44316795d486aa9b8dc3d98a382ce5d?ds=sidebyside Add flush to iptables.sh template. --- diff --git a/pymin/services/firewall/templates/iptables.sh b/pymin/services/firewall/templates/iptables.sh index 57dacd5..bb67d9a 100644 --- a/pymin/services/firewall/templates/iptables.sh +++ b/pymin/services/firewall/templates/iptables.sh @@ -13,8 +13,10 @@ def optional(switch, value): %> +/usr/sbin/iptables -t filter -F + % for (index, rule) in enumerate(rules): -/sbin/iptables -t filter \ +/usr/sbin/iptables -t filter \ -I ${rule.chain|s} ${index+1|s} \ -j ${rule.target|s} \ ${optional('-s', rule.src)} \