ansible.nftables/templates/etc/nftables.d/inet-input.nft.j2

17 lines
373 B
Plaintext
Raw Normal View History

2017-08-07 17:37:41 +02:00
# {{ ansible_managed }}
2017-08-07 17:41:03 +02:00
{% set inputmerged = nft_input_default_rules.copy() %}
{% set _ = inputmerged.update(nft_input_group_rules) %}
{% set _ = inputmerged.update(nft_input_host_rules) %}
2017-08-07 17:37:41 +02:00
chain input {
2017-08-07 17:41:03 +02:00
{% for group, rules in inputmerged|dictsort %}
# {{ group }}
{% if not rules %}
# (none)
{% endif %}
{% for rule in rules %}
{{ rule }}
{% endfor %}
{% endfor %}
2017-08-07 17:37:41 +02:00
}