Mikrotik Zerotier Priority

How to set priority for Zerotier interface? Do you use Simple Queue or Queue Tree or something else? Examples would be great.


Thanks
James Young

Some things don’t change with ZeroTier… what’s the objective in your queue? :wink:

But it is more complex. So exactly how you’re using ZT matters in what’s possible.

  • Are using ZT to bridge a Mikrotik network (e.g. to extend a “home network” to remote device over internet)
  • Or using additional routing in ZT network (e.g. the ZT network is used in to interconnect L3 subnets)
  • Or is the Mikrotik just a “member” (e.g. for management where you might want to prioritize in queue)?

What changes with the ZeroTier is the “instance” creates the tunnels, not RouterOS, so uses it’s own algorithm to pick paths. While ZT’s selection obviously use some “real” RouterOS interfaces, you can’t easily identify ZT tunnel in firewall – so limits a HTB/queue tree approach. Now interfaces are visible, so they can be used - but you’re queueing the inner traffic only. And since the inner traffic can flow out multiple paths, it can be split downstream of the RouterOS ZT interface (e.g. in the ZT “instance”). IMO, queue tree is more useful for controlling outbound WAN traffic when the upstream have fixed speeds.

A simple queue can use the ZT IP range as a target, or the ZT interfaces. But how to use really depend on your use case…

I’ve kinda let ZeroTier do it’s thing and ignored ZT in queues - partially because I can’t figure out how to find the tunnels…but also it hasn’t been necessary in my use cases. And, if your queues focus on the apps/protocols you want to prioritized (e.g. if your using ZT for winbox traffic, you can prioritize winbox port in FW with associated queue tree, instead of caring it’s going over ZT, be another way to skin the cat)

I’m curious too if anyone else has used any approaches with ZeroTier and queues… I don’t have high traffic needs. But ZT could be used for more SDN-things, where queue’ing be more important…so fair question here.