Allow the definition of complete rules.
This commit is contained in:
parent
94563d73bd
commit
9aabbf2e1d
|
|
@ -297,7 +297,7 @@
|
|||
# ANY rules
|
||||
{% for any_rule in iptables.any %}
|
||||
{% for rule in any_rule.allowed_hosts %}
|
||||
-A INPUT -s {{ rule.ip }} -j {{ rule.policy | default('ACCEPT') }}
|
||||
-A INPUT {{ rule.iptables_rule | default('') }} -s {{ rule.ip }} -j {{ rule.policy | default('ACCEPT') }}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue