Hi!
I have this setup on my Raspberry Pi:
eth0: connected to home internet router
zt0: connected to zerotier network, acts as an exit node
zt1: connected to another zerotier network, acts as a client (there is an exit node in that network)
wlan0: wi-fi access point
I want to set this up so that clients connected to wlan0 access point would get their internet connection routed through zt1 (and zt1’s exit node), but no other network on my Pi is affected (so that other zt0 clients would still get connected to the internet through my home router).
Seems like I need to set up my ip route correctly, but no success so far.
I’ve tried to add route 10.0.42.0/16 via zt1_ip dev zt_interface, but after that wifi clients just loose their connection to internet at all
Would appreciate any suggestions, thanks in advance