From b47adae7a3e963bfca3b775f4b84d5121907c76d Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Sun, 1 Jun 2025 23:32:13 -0500 Subject: T7512: firewall: Modify accepting invalid traffic for VLAN aware bridge Allow accepting invalid packets for ethernet types `8021q` and `8021ad` in addition to ARP and UDP types so that stateful bridge firewall works for VLAN-aware bridges in addition to regular bridges. --- data/templates/firewall/nftables.j2 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'data') diff --git a/data/templates/firewall/nftables.j2 b/data/templates/firewall/nftables.j2 index a78119a80..f5cd801e4 100755 --- a/data/templates/firewall/nftables.j2 +++ b/data/templates/firewall/nftables.j2 @@ -414,6 +414,8 @@ table bridge vyos_filter { {% if 'invalid_connections' in global_options.apply_to_bridged_traffic %} ct state invalid udp sport 67 udp dport 68 counter accept ct state invalid ether type arp counter accept + ct state invalid ether type 8021q counter accept + ct state invalid ether type 8021ad counter accept ct state invalid ether type 0x8864 counter accept {% endif %} {% endif %} -- cgit v1.2.3