iptables: Fix indentation from iptables templates
This commit is contained in:
parent
28e7fa236b
commit
40639ee1d0
2 changed files with 10 additions and 10 deletions
|
@ -9,13 +9,13 @@
|
|||
{{ rule }}
|
||||
{% endfor %}
|
||||
{% for rule in firewall_in %}
|
||||
{% if rule.from is defined %}
|
||||
{% for from in rule.from | ipv6 %}
|
||||
{% if rule.from is defined %}
|
||||
{% for from in rule.from | ipv6 %}
|
||||
-A INPUT -m state --state NEW -m {{ rule.proto }} -p {{ rule.proto }} -s {{ from }} --dport {{ rule.port }} -j ACCEPT
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
-A INPUT -m state --state NEW -m {{ rule.proto }} -p {{ rule.proto }} --dport {{ rule.port }} -j ACCEPT
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
-A INPUT -j REJECT --reject-with icmp6-adm-prohibited
|
||||
-A FORWARD -j REJECT --reject-with icmp6-adm-prohibited
|
||||
|
|
|
@ -9,13 +9,13 @@
|
|||
{{ rule }}
|
||||
{% endfor %}
|
||||
{% for rule in firewall_in %}
|
||||
{% if rule.from is defined %}
|
||||
{% for from in rule.from | ipv4 %}
|
||||
{% if rule.from is defined %}
|
||||
{% for from in rule.from | ipv4 %}
|
||||
-A INPUT -m state --state NEW -m {{ rule.proto }} -p {{ rule.proto }} -s {{ from }} --dport {{ rule.port }} -j ACCEPT
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
-A INPUT -m state --state NEW -m {{ rule.proto }} -p {{ rule.proto }} --dport {{ rule.port }} -j ACCEPT
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
-A INPUT -j REJECT --reject-with icmp-host-prohibited
|
||||
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
|
||||
|
|
Loading…
Add table
Reference in a new issue