Allow the definition of complete rules.

This commit is contained in:
Andrea Dell'Amico 2020-10-19 16:21:46 +02:00
parent 94563d73bd
commit 9aabbf2e1d
1 changed files with 1 additions and 1 deletions

View File

@ -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 %}