some cleanup

This commit is contained in:
nd 2020-04-30 15:41:02 +02:00
parent 88b851cfff
commit 71c3dccba9
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9

View file

@ -13,7 +13,7 @@
{% set tmprule = firewall.chains[name][i] %}
{% endif%}
{% set rule = {}|combine(firewall.defaults.all, firewall.defaults[name], tmprule, recursive=True) %}
{{ nftrule(i, rule) }}
{{ nftrule(i, rule) }}
{% endfor %}
{% endmacro%}
@ -32,7 +32,7 @@ table inet filter {
ip protocol icmp accept comment "Accept ICMP"
ip protocol igmp accept comment "Accept IGMP"
{{ nftchain('input') }}
{{ nftchain('input') }}
counter comment "Count dropped"
@ -41,7 +41,7 @@ table inet filter {
type filter hook forward priority 0;
policy {{ firewall.policies.forward }};
{{ nftchain('forward') }}
{{ nftchain('forward') }}
counter comment "Count dropped"
}
@ -49,8 +49,8 @@ table inet filter {
type filter hook output priority 0;
policy {{ firewall.policies.output }};
{{ nftchain('output') }}
{{ nftchain('output') }}
}
}
include "/etc/nftables/*.nft"
include "/etc/nftables.d/*.nft"