]> git.llucax.com Git - software/pymin.git/blobdiff - pymin/services/firewall/templates/iptables.sh
Bugfix in command parser.
[software/pymin.git] / 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)} \