Route all IP trafic from my mobile throgh ZeroTier/Tailscale and exist on server

ComptitiveSubset@lemmy.world to Selfhosted@lemmy.world – 12 points –

Can I do what the title said? It could be useful when I’m on a sketchy WiFi. I’m asking as I’m already using ZeroTier to access my home server and this could be another nice use.

3

Yes. It’s a default option for Tailscale. You just need to run the Tailscale client on the server with the exit node option, enable it in the web portal, and then tell your phone to use the exit node.

The server you want to exit node out of has to have it explicitly enabled as well

All you really have to do with Zerotier is set up your network routing appropriately, and the end server would do reverse NAT, presumably via IPTables in most situations. Zerotier is just a virtual cable, everything else is the same as if you plugged in an ethernet cable between the two endpoints and you can run network services there just the same. Oh, you do have to enable the ZeroTier client to route public IPs for this to work.