A Tailscale exit node is a device in your tailnet that carries another device’s internet traffic, so websites see the exit node’s public IP instead of yours. On Linux, enable IP forwarding, run sudo tailscale set --advertise-exit-node, approve the machine in the admin console, then select it on a client with sudo tailscale set --exit-node=<name>.
A selected Tailscale exit node acts as the default route for IPv4 (0.0.0.0/0) and IPv6 (::/0). More specific routes, such as subnet routes, still take precedence. See the exit-node overview and the Linux setup steps.
This guide draws on Tailscale’s exit-node and CLI documentation and Ubiquiti’s UniFi Network 9.4 firewall documentation, checked November 20, 2026. The steps were documented without live testing.
Advertise, approve, and select the exit node
Once Tailscale is installed and IP forwarding is enabled, follow these steps.
- Advertise the node. On the machine that will carry the traffic, run
sudo tailscale set --advertise-exit-node. - Approve it in the admin console under Machines (the
property:exit-nodefilter finds every advertiser). Open the menu for the device with the Exit Node badge. Select Edit route settings, check Use as exit node, then select Save. See the Use exit nodes how-to. Clients can select it after approval, subject to tailnet policy. - Select it on a client with
sudo tailscale set --exit-node=<node-name>, and turn it off later withsudo tailscale set --exit-node=.
For a new tailnet, start with the Tailscale setup guide. If traffic is slow after you select an exit node, check whether the connection is relayed. See why Tailscale throughput is slow.
Pending approval to run as exit node
If an exit node is pending approval, its advertisement has reached the admin console and is waiting for approval.
Clear it in one of two ways:
- Approve it by hand. On the Machines page, find the device with the Exit Node badge, open its menu, select Edit route settings, check Use as exit node, and select Save.
- Approve it automatically. Add an
autoApproversrule for exit nodes to the policy file. The tailnet policy reference shows automatic approval for tagged devices. The Linux example below usestag:exit.
Exit node vs subnet router vs ordinary node
Exit nodes and subnet routers forward traffic for other devices. On Linux, both require IP forwarding. See the subnet-router documentation and the exit-node overview.
| Role | What it forwards | Flag on the node | Approval | Client side |
|---|---|---|---|---|
| Ordinary node | Its own traffic | None | None | None |
| Subnet router | Specific LAN prefixes, such as 10.0.40.0/24 | --advertise-routes=<CIDR> | per route | --accept-routes on Linux |
| Exit node | Default IPv4 and IPv6 routes (0.0.0.0/0, ::/0) | --advertise-exit-node | Use as exit node | --exit-node=<name or IP> |
To reach a NAS or printer on the exit node’s LAN by its LAN address, advertise its subnet. See Tailscale subnet router configuration. Why approval sits apart from connectivity is explained in how a Tailscale mesh VPN works.
Choose the device: Linux, Raspberry Pi, Docker, Windows, or phone
A wired, always-on Linux machine is a practical starting point. Tailscale lists Linux, macOS, Windows, Android, iOS, and tvOS as supported. The exit node and its clients need Tailscale v1.20 or later. See exit-node prerequisites.
| Device | How to advertise it |
|---|---|
| Linux server, VM, or Raspberry Pi | Enable forwarding and run sudo tailscale set --advertise-exit-node. See the Linux steps. |
| Docker on Linux | Put --advertise-exit-node in TS_EXTRA_ARGS. See the Docker parameters. |
| Windows | Select Exit Node, then Run as exit node. Windows instructions. |
| macOS app | Select Exit Node, then Run Exit Node. macOS instructions. |
| Android | Open Exit Node and select Run as exit node. Android instructions. |
| iPhone | Open Exit Node, select Run Exit Node, and confirm. iPhone instructions. |
| Apple TV | Open Exit Node, select None, then Run Exit Node, and confirm. Apple TV instructions. |
The default key expiry is 180 days. An expired exit node’s advertised routes become unreachable until it reauthenticates. You can disable expiry for that device in Machines. Key expiry is off by default when a device first authenticates with a tag. See key expiry and the exit-node caveats.
Configure the Linux exit node
These steps apply to Ubuntu and Debian as well as the other distributions on Tailscale’s Linux install page, which lists Ubuntu-based and Debian-based distributions. The examples call the exit node exit-01. Install Tailscale from its Linux packages or the documented installer, then authenticate:
curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up
If curl | sh violates your change-control policy, use the distribution-specific package repository instead.
Enable IPv4 and IPv6 forwarding, then advertise the node. Before enabling forwarding, confirm that the host firewall denies forwarded traffic by default. These commands assume /etc/sysctl.d exists. Otherwise, use /etc/sysctl.conf in all three sysctl commands. See the Linux exit-node documentation.
echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf
echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf
sudo sysctl -p /etc/sysctl.d/99-tailscale.conf
sudo tailscale set --advertise-exit-node
sudo tailscale up
If forwarding fails on a host that uses firewalld, Tailscale documents firewall-cmd --permanent --add-masquerade as a workaround. Run it as root only after reviewing the firewall policy. The persistent change takes effect after a firewall reload, service restart, or reboot. Linux caveats and firewall-cmd reference.
In the Tailscale admin console, open Machines, find exit-01, choose Edit route settings, check Use as exit node, and select Save. No approval means no usable exit node.
The default tailnet policy permits members to use approved exit nodes. A custom deny-by-default policy must explicitly grant autogroup:internet. A grant to exit-01 only permits connections to that machine. See the exit node ACL example. Merge these entries into the existing policy file. The tailnet policy reference documents the selectors, tag owners, and exit-node auto-approvers.
{
"tagOwners": {
"tag:exit": ["autogroup:admin"]
},
"autoApprovers": {
"exitNode": ["tag:exit"]
},
"grants": [
{
"src": ["autogroup:member"],
"dst": ["autogroup:internet"],
"ip": ["*"]
}
]
}
The grant lets direct tailnet members use approved exit nodes. To limit access, use an existing group:<name> as the source. To advertise a new exit node with the example tag, run sudo tailscale up --advertise-tags=tag:exit --advertise-exit-node as an authorized tag owner. See the tailscale up flags.
Use an exit node from a Linux client
List approved exit nodes and select one by its machine name or Tailscale IP. The example assumes your node is named exit-01. Replace that name with your own. The CLI reference documents the list command, including --filter=<country>.
tailscale exit-node list
sudo tailscale set --exit-node=exit-01 --exit-node-allow-lan-access=false
The default blocks access to the client’s local LAN while the exit node is selected. Enable local access only when you trust that network. After the verification steps below, stop routing through this exit node with sudo tailscale set --exit-node=. See the Linux client steps.
Selected but no internet: a checklist
If a client has an exit node selected but nothing loads, work through these in order:
- Is it approved? The node must show Use as exit node checked under Edit route settings on the Machines page. See the pending-approval section above.
- Are both forwarding sysctls set? On the exit node,
net.ipv4.ip_forwardandnet.ipv6.conf.all.forwardingmust both be1. - Is it a firewalld host? Check the masquerading workaround in the Linux section.
- Does your policy grant
autogroup:internet? Check whether the client is included in the grant’s source. See the policy file reference. - Has the node’s key expired? An expired node stops working until it reauthenticates.
- Are both ends on v1.20 or later? Tailscale requires v1.20 or later on the exit node and its clients.
Run or use an exit node on Windows
To advertise a Windows PC, open the Tailscale client and select Exit Node, then Run as exit node. Approve the PC in the admin console. See the Windows setup instructions.
To use an approved node from Windows, open the Tailscale system tray menu, select Use exit node, and choose the machine. Select None to stop. Windows routes exit-node traffic in userspace, and the PC needs to stay awake. See the Windows exit-node documentation.
To keep Tailscale running after signing out or restarting, select Preferences > Run unattended from the tray icon. See the unattended mode instructions.
The Windows app displays only part of the Mullvad exit-node list. Run tailscale exit-node list to see the full list. On macOS, select the machine from Exit Nodes in the menu bar. See the macOS client steps.
Raspberry Pi as a Tailscale exit node
A Raspberry Pi is configured exactly like any Linux exit node. Raspberry Pi OS is on the install script’s supported list, so the install command, forwarding sysctls, --advertise-exit-node, and approval steps above apply unchanged. Use a wired connection. The table lists Raspberry Pi’s Ethernet and processor specifications.
| Model | Ethernet (vendor spec) | CPU |
|---|---|---|
| Raspberry Pi 3 Model B+ | Gigabit Ethernet over USB 2.0, maximum 300 Mbps | Cortex-A53, 1.4GHz |
| Raspberry Pi 4 Model B | Gigabit Ethernet | Quad-core Cortex-A72, 1.8 GHz |
| Raspberry Pi 5 | Gigabit Ethernet | Quad-core Cortex-A76, 2.4GHz |
Run the iperf3 check below to measure the client-to-Pi tunnel. The Ethernet specifications describe the wired interface.
Run a Tailscale exit node in Docker
The tailscale/tailscale image becomes an exit node when --advertise-exit-node goes in TS_EXTRA_ARGS and the container uses kernel networking. This service is trimmed from Tailscale’s ScaleTail exit-node example:
services:
tailscale:
image: tailscale/tailscale:latest
hostname: exit-docker
environment:
- TS_AUTHKEY=${TS_AUTHKEY}
- TS_STATE_DIR=/var/lib/tailscale
- TS_EXTRA_ARGS=--advertise-exit-node
- TS_USERSPACE=false
- TS_AUTH_ONCE=true
volumes:
- ./ts/state:/var/lib/tailscale
devices:
- /dev/net/tun:/dev/net/tun
cap_add:
- net_admin
sysctls:
net.ipv4.ip_forward: 1
net.ipv6.conf.all.forwarding: 1
restart: always
Pass the auth key through the environment. Keep the state volume so the container retains its identity when recreated. Start it with docker compose up -d, then approve it in Machines. See Docker configuration parameters and the Compose setup guide.
Isolate the exit node on its own VLAN
For an optional VLAN setup, put the wired exit node on a dedicated network. This example uses a UDM Pro, a USW-Pro-24-PoE, and a U6-Enterprise. Use the SFP+ LAN uplink between the gateway and switch.
Create and assign the VLAN
Create the networks using Ubiquiti’s VLAN guide. The addresses below are example IPv4 settings. If you route IPv6, assign your own IPv6 prefixes and apply the isolation policies to both address families.
| VLAN | Network | Example IPv4 gateway and prefix |
|---|---|---|
| 10 | Management | 192.168.10.1/24 |
| 20 | Trusted Wi-Fi | 192.168.20.1/24 |
| 30 | IoT Wi-Fi | 192.168.30.1/24 |
| 40 | Exit node | 192.168.40.1/24 |
In Ports, choose the native network and set Tagged VLAN Management for each link. See the switch-port assignment guide.
| Link | Native VLAN | Tagged VLAN Management |
|---|---|---|
| Gateway to switch | 10 | Custom with VLANs 20, 30, and 40 |
| Switch to access point | 10 | Custom with VLANs 20 and 30 |
| Switch to exit node | 40 | Block All |
Apply firewall policies
Give VLAN 40 its own firewall zone. In UniFi Network 9.4, use Settings > Zones > Create Policy. Apply these example policies using the zones for your networks. Set the IP version to both if you route both families. See the UniFi zone-based firewall guide.
| Source | Destination | Policy |
|---|---|---|
| Management | Exit node | Allow TCP 22 for SSH if needed, with Auto Allow Return Traffic |
| Exit node | Other LAN zones | Block new connections |
| Other LAN zones | Exit node | Block new connections. Place this below any management exceptions. |
| Exit node | External | Allow, with Auto Allow Return Traffic |
| Exit node | Gateway | Allow DHCP and DNS if the gateway supplies those services. Place a block for other gateway traffic below the necessary exceptions. |
Check the exit node’s outbound access against Tailscale’s firewall guidance. Check the isolation by opening an allowed internet destination and trying a known TCP service on another LAN from the exit-node host. The internet destination should load and the connection to the other LAN should fail.
DNS and discovery
MagicDNS resolves tailnet machine names. By default, clients using an exit node also use that node as their DNS resolver. Tailnet administrators can override this per nameserver. See DNS in Tailscale. Multicast DNS is link-local on UDP 5353. Avoid reflecting it into the exit-node VLAN unless a service requires it. See RFC 6762.
Things to test before you call it done
Before selecting the exit node, run both public-IP checks on the client and on the exit-node host. After selecting it, repeat the checks on the client. Compare results for each address family independently. See the address-family commands and ipconfig.io HTTPS support.
curl -4 https://ipconfig.io
curl -6 https://ipconfig.io
For a single-uplink exit node, the client should report the exit node’s public address for each working family. If the host itself fails the IPv6 check, check its IPv6 uplink before troubleshooting the client.
With the exit node selected, check name resolution through the Linux system resolver. Run the second command if MagicDNS is enabled. See the getent manual and the Tailscale DNS reference.
getent ahosts example.com
getent ahosts exit-01
If the public hostname fails, compare the result with the same lookup on the exit node. Check whether your tailnet has a nameserver configured for use with exit nodes.
To check whether the path to the exit node is direct or relayed, run the following on the client. Use the exit node’s actual name. See the Tailscale CLI reference and device connectivity guide.
tailscale status
tailscale ping exit-01
tailscale netcheck
For a throughput check, run iperf3 -s on the exit node and iperf3 -c exit-01 -P 4 on the client. Stop the server after checking. This measures throughput between the two devices over Tailscale. See the iperf3 manual.
For Linux 6.2 or later with Tailscale 1.54 or later, Tailscale documents UDP GRO forwarding as a throughput optimization. Set NETDEV to the exit node’s outbound interface and run this command. See the performance guide.
sudo ethtool -K "$NETDEV" rx-udp-gro-forwarding on rx-gro-list off
The setting normally resets after reboot. Use the persistence method for your network manager in the performance guide. Keep the host patched and follow Tailscale’s security bulletins.
FAQ
Does a Tailscale exit node need port forwarding?
No. Tailscale’s firewall-ports FAQ says most users do not need to open any firewall ports. The guidance recommends outbound TCP 443 for coordination and DERP, UDP from source port 41641 for direct tunnels, and outbound UDP to destination port 3478 for STUN.
Is a Tailscale exit node free?
Yes, you can run your own exit node on the Personal plan. As of November 20, 2026, the plan is $0 for up to 6 users with unlimited user devices. Mullvad exit nodes cost $5 per month for every 5 devices. See Tailscale pricing.
Does a Tailscale exit node hide my ip address?
Websites see the exit node’s public IP. Tailscale disables exit-node destination logging by default. Premium and Enterprise tailnets can enable it if they meet the requirements in the exit-node logging documentation.
Can tailscale choose the best exit node automatically?
Yes, on Standard, Premium and Enterprise plans or with the Mullvad add-on. tailscale exit-node suggest prints a recommended node, and sudo tailscale set --exit-node=auto:any keeps tracking the recommendation as nodes or network conditions change. Per the recommended exit nodes doc, Tailscale prefers non-Mullvad exit nodes, picked by latency and performance, and picks Mullvad nodes by location.