iptables.set_policy: | iptables.set_policy: | ||||
- chain: {{ chain_name }} | - chain: {{ chain_name }} | ||||
- policy: {{ chain.policy }} | - policy: {{ chain.policy }} | ||||
- table: filter | |||||
{%- endif %} | {%- endif %} | ||||
{%- for rule_name, rule in chain.get('rule', {}).iteritems() %} | {%- for rule_name, rule in chain.get('rule', {}).iteritems() %} |