X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/296d853cc95fd5bef262248cfe21b507abd26a4f..3a8d568a57ec58e100ea65338e78f77c1c05b7e9:/pymin/services/firewall/templates/iptables.sh diff --git a/pymin/services/firewall/templates/iptables.sh b/pymin/services/firewall/templates/iptables.sh index 57dacd5..80f4a32 100644 --- a/pymin/services/firewall/templates/iptables.sh +++ b/pymin/services/firewall/templates/iptables.sh @@ -13,8 +13,14 @@ def optional(switch, value): %> +/usr/sbin/iptables -t filter -F + +/usr/sbin/iptables -t filter -P INPUT ACCEPT +/usr/sbin/iptables -t filter -P OUTPUT ACCEPT +/usr/sbin/iptables -t filter -P FORWARD ACCEPT + % 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)} \