I have 3 locations linked with zerotier. All three have different subnets. This is working. I can access all three subnets from any location and from any ZT connected device (laptop) from a remote location.
All the routers are mikrotik.
I have a need in the third location to separate into vlans.
Zerotier network: 10.10.10.0/24
router 1 - 10.10.10.1/24
subnet - 192.168.11.0/24
router 2 - 10.10.10.2/24
subnet - 192.168.88.0/24
router3 - 10.10.10.3/24
subnet - 10.252.0.0/24 (needs to be vlan 50)
I am trying to find the proper way to tag traffic coming in through zerotier interface on third router destined for subnet 10.252.0.0/24 as vlan50.
(not any traffic destined for the zerotier subnet 10.10.10.0/24)
My zerotier interface is not part of my bridge, as it causes routing issues if I try that. I have a firewall rule that allows all ZT traffic at the top of the list.
Please help me find what link I’m missing to make this work.
Yes, since tagging happens at the interface level, through the VLAN or bridge setup. The router first checks the routing table to figure out which interface to send the packet to, and that interface (like vlan50) adds the VLAN tag to the outbound traffic.