Use an exit node
After a device is configured as an exit node, each device that routes traffic through it must opt in separately. The steps vary by the device's operating system.
Run tailscale set with the --exit-node flag, passing the Tailscale IP address of the exit node.
sudo tailscale set --exit-node=<exit-node-ip>
You can find the IP address from the admin console or by running tailscale status.
To reach your local network while using the exit node, set --exit-node-allow-lan-access to true.
sudo tailscale set --exit-node=<exit-node-ip> --exit-node-allow-lan-access=true
To stop using the exit node, run --exit-node with no IP address.
sudo tailscale set --exit-node=
The option to use an exit node only displays if there's an available exit node in your tailnet.
To confirm that your traffic routes through the exit node, check your public IP address with an online tool. The exit node's public IP address displays instead of your device's local one.
To stop routing through an exit node, select None from the Exit Node list on the device, or on Linux run tailscale set --exit-node= with no IP address.
Local network access
By default, the device connecting to an exit node won't have access to its local network. This means the device connected to the exit node can't directly reach other devices on the local network, such as a printer or a NAS. If you want to allow the device access to its local network when routing traffic through an exit node, enable exit node local network access.
Enable the Allow Local Network Access setting from the Exit Nodes section of your Tailscale client, or pass --exit-node-allow-lan-access to tailscale up or tailscale set.
Enabling local network access does not mean all traffic stops using the exit node. It creates an exception for traffic within the client's local LAN, while all remaining internet traffic continues to route through the exit node. You might want to enable local network access if, for example, you're staying at a hotel and want to route traffic through an exit node, but still want to connect to the printer in the hotel's business center. Local traffic in this scenario is still allowed through your device, but all other traffic continues to route through your exit node.
Keep in mind that allowing local network access exposes you to potentially untrusted devices in the network. Consider enabling local network access only when you trust the local network, or only for as long as you need it.
DNS and exit nodes
When a device uses an exit node, it also uses that exit node as its DNS resolver for all domains, regardless of your global or split DNS nameservers. A nameserver that's only reachable from the device's local network can stop resolving while the exit node is in use.
To keep a specific nameserver working for devices that use an exit node, enable its Use with exit node setting on the DNS page of the admin console. For details, refer to Nameservers and exit nodes.