My network has a rather complex setup I can't unfortunately simplify, currently it's being half-solved by two different devices (that cause a few other problems) and I wish to replace them with one Linux box with nftables
.
I made a diagram (below), but in general I see three components in the setup:
- The one route that connects "Box 1" with whatever receives untagged (VLANless) data from the Intranet (1) and doesn't modify it in any way, just forwards directly to the output interface and vice versa. Marked yellow on the diagram.
- One route that takes VLAN 9 traffic, untags it and passes it on to the bridge+NAT. Marked blue on the diagram.
- The bridge that routes traffic between Intranet and Intranet 2 (VLAN 9) and the NAT through which devices on the intranets can access the internet. I only have one IPv4 and IPv6 address, that's why the IPv6 NAT :(.
I have tried different approaches based on what was available online, but to no avail and I found nothing that combined so many different things (VLANs, bridges and NAT). Netfilter gurus please help me, do ask if something is unclear.