Force specific LAN device via ZeroTier

Hello,

I would like to have your insights on what would be the best way to route a specific client (LAN), that I have connected on a given port of the router, to use a different gateway from the rest of the subnet. Objective is to force only a specific device to exit via ZeroTier, instead of the direct gateway to the Internet.

I guess I could always change on the device IP settings as a last resort, but I’m sure there’s a more elegant way of doing it.

Cheers,
anthonws.

Mangle

Thanks for the feedback!

So, a prerouting rule, where source address A, with destination 0.0.0.0/0 and action route to ZT gateway?

No mark
Mark routing
then set Output rule to match that mark and it should go over that feed

Thank you :slight_smile: All is good! Added a prerouting rule to mark route and then added a manual route for that mark, with the new gateway.
Had to tweak the fasttrack rule to ignore the new mark and get “full speed” (around 70 MBits).
Now on to ZeroTier and how to increase its speed (most probably a more powerful node on the other end :stuck_out_tongue:).

Welcome