Initial commit
This commit is contained in:
13
templates/rules-v4.j2
Normal file
13
templates/rules-v4.j2
Normal file
@@ -0,0 +1,13 @@
|
||||
# {{ 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
|
||||
Reference in New Issue
Block a user