More generic interface list in nftables
This commit is contained in:
parent
e91babde35
commit
29d2e3b9c4
@ -1,3 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
system_base_interfaces_iifname: []
|
||||||
system_base_additional_tcp_ports: []
|
system_base_additional_tcp_ports: []
|
||||||
system_base_udp_ports: []
|
system_base_udp_ports: []
|
||||||
|
@ -10,9 +10,11 @@ table inet filter {
|
|||||||
# Accept any localhost traffic.
|
# Accept any localhost traffic.
|
||||||
iif lo accept;
|
iif lo accept;
|
||||||
|
|
||||||
# Accept any libvirt traffic.
|
{% if system_base_interfaces_iifname %}
|
||||||
iifname virbr0 accept;
|
# Accept any traffic on these interfaces.
|
||||||
|
iifname { {{ system_base_interfaces_iifname | join(", ") }} } accept;
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
# Accept traffic originated from us.
|
# Accept traffic originated from us.
|
||||||
ct state established,related accept;
|
ct state established,related accept;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user