]> git.llucax.com Git - software/pymin.git/commitdiff
Add flush to iptables.sh template.
authorFede <fedux@linux-kt9u.site>
Sat, 6 Oct 2007 16:00:59 +0000 (13:00 -0300)
committerFede <fedux@linux-kt9u.site>
Sat, 6 Oct 2007 16:00:59 +0000 (13:00 -0300)
pymin/services/firewall/templates/iptables.sh

index 57dacd5937a1343099f405f31c682d6ec02416f5..bb67d9a58b0b8993a12761f6e2815f0a1113ae56 100644 (file)
@@ -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)} \