14 lines
409 B
Django/Jinja
14 lines
409 B
Django/Jinja
# {{ ansible_managed }}
|
|
{% for table in iptables_rules_v4 %}
|
|
*{{ table }}
|
|
{% for chain in iptables_rules_v4[table] %}
|
|
:{{ chain }} {{ iptables_rules_v4[table][chain]['policy'] | default('ACCEPT') }} [0:0]
|
|
{% if iptables_rules_v4[table][chain]['rules'] is defined %}
|
|
{% for rule in iptables_rules_v4[table][chain]['rules'] %}
|
|
-A {{ chain }} {{ rule }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
COMMIT
|