Browse through another device
A VPS or Linux machine at home as a ZeroTier exit: forwarding, NAT, default route, Allow Default on the client, and rp_filter on Linux.

Think first
Any device that turns this on sends all its traffic out through the exit. Its bandwidth and place decide the result, not ZeroTier.
On the exit
sudo sysctl -w net.ipv4.ip_forward=1
export ZT_IF=zthnhhqofq WAN_IF=eth0
sudo iptables -t nat -A POSTROUTING -o $WAN_IF -j MASQUERADE
sudo iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i $ZT_IF -o $WAN_IF -j ACCEPTIn the console
Add a managed route: destination 0.0.0.0/0, Via the exit's ZeroTier address.
On the device that uses it
my-network
Route all traffic through ZeroTier
DNScustom
Connected
| System | Where |
|---|---|
| Windows, macOS | Allow Default in the network details |
| Android, iOS | Route all traffic in the network settings |
| Linux | sudo zerotier-cli set NETWORK_ID allowDefault=1 |
Check
Open a site that shows your IP; it should be the exit's public address. If addresses work and names do not, DNS is missing.
- ping the exitno: authorization
- ping 8.8.8.8no: NAT
- open a siteno: DNS
Compared with a Tailscale exit node?
There it takes two clicks; here you write the rules and control everything.
On FreeBSD?
Allow Default is switched off there by ZeroTier for now.
Up nextYour own moon and relay
Pages nearby
- ZeroTier Moon setup
- ZeroTier tutorial
- ZeroTier Network ID
- remote control without public IP
- ZeroTier for PC
- ZeroTier MacBook
- ZeroTier APK
- zerotier-cli join
- ZeroTier download
Marks: ZeroTier full tunnel, ZeroTier default route, ZeroTier gateway