X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/3eefa8b40b56992b0c96cf085ef9a6059b7c7fc4..eefd474c44ed606a9b9afd64c31cc1fc30c8594a:/pymin/services/firewall/templates/iptables.sh diff --git a/pymin/services/firewall/templates/iptables.sh b/pymin/services/firewall/templates/iptables.sh index bb67d9a..80f4a32 100644 --- a/pymin/services/firewall/templates/iptables.sh +++ b/pymin/services/firewall/templates/iptables.sh @@ -15,6 +15,10 @@ 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): /usr/sbin/iptables -t filter \ -I ${rule.chain|s} ${index+1|s} \