From 8284a286a44316795d486aa9b8dc3d98a382ce5d Mon Sep 17 00:00:00 2001 From: Fede Date: Sat, 6 Oct 2007 13:00:59 -0300 Subject: [PATCH] Add flush to iptables.sh template. --- pymin/services/firewall/templates/iptables.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)} \ -- 2.43.0