Add debian common role

This commit is contained in:
2023-05-05 15:47:27 -04:00
parent b387d68eda
commit bf6bfe2809
79 changed files with 3166 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#!/usr/sbin/nft -f
# {{ ansible_managed }}
flush ruleset
table inet filter {
chain input {
type filter hook input priority 0;
{% for rule in nftables_rules if rule.chain == "input" %}
{{ rule.rule }};
{% endfor %}
}
chain forward {
type filter hook forward priority 0;
{% for rule in nftables_rules if rule.chain == "forward" %}
{{ rule.rule }};
{% endfor %}
}
chain output {
type filter hook output priority 0;
{% for rule in nftables_rules if rule.chain == "output" %}
{{ rule.rule }};
{% endfor %}
}
}