Configure a device as an exit node

Last validated:

To route traffic through an exit node, you'll advertise a device as an exit node, and approve it from the admin console, then grant users access. Devices in the tailnet can then use the exit node.

Install the Tailscale client on the device you want to use as an exit node, then advertise it. Select your platform for the steps.

  1. Download and install the Tailscale client on the device you want to use as an exit node.
  2. Open the Tailscale client, select Exit node, then Run exit node.

Allow the exit node from the admin console

You must be an Owner, Admin, or Network admin to permit a device to act as an exit node.

If the device is authenticated by a user who can approve exit nodes in autoApprovers, the exit node is approved automatically.

  1. Open the Machines page of the admin console and locate the exit node.
  2. Locate the Exit Node badge in the machines list or use the property:exit-node filter to list all devices advertised as exit nodes.
  3. From the ellipsis icon menu of the exit node, select Edit route settings, then Use as exit node.

Grant access to use the exit node

By default, any user in your tailnet can use a configured exit node. You don't need to add any grants or ACLs.

This changes if you customize your tailnet's access control policy. For example, suppose you replace the default policy with one that only lets your developers access a few internal servers:

{
  "grants": [
    {
      "src": ["group:developers"],
      "dst": ["tag:prod"],
      "ip": ["*"]
    }
  ]
}

Your developers can still reach the production servers, but they can no longer use an exit node. The policy grants no access to any public IP address, so Tailscale has no permission to route internet traffic through the exit node.

Two conditions determine exit node access:

  • Availability: A device can select an exit node when at least one grant or ACL lets it reach a public IP address.
  • Reach: The exit node forwards only the traffic that your grants and ACLs permit. It drops all other traffic.

These conditions produce three outcomes, depending on the destinations (dst) that your policy grants to a device:

Destinations grantedResult
No public IP addressesThe device cannot select an exit node.
autogroup:internetThe device can select an exit node and reach the whole internet through it.
Specific public IP addresses or CIDR rangesThe device can select an exit node, but it can reach only those addresses through it. All other internet traffic from the device fails while it uses the exit node.

Port and protocol restrictions work the same way. For example, a grant for autogroup:internet that permits only tcp:443 lets the device select an exit node. The exit node then forwards only TCP traffic to port 443.

A common point of confusion is to add the exit node device itself as the destination. That only permits connections to the exit node, such as SSH. It does not permit using the device as an internet gateway.

To permit exit node use, add a grant or ACL whose dst is autogroup:internet. This grants permission to route internet traffic through any configured exit node rather than to connect to the exit node device itself.

In this section, a public IP address means any address in the autogroup:internet definition. Tailscale defines autogroup:internet by exclusion, so it includes reserved ranges that never appear on the internet. One example is the documentation range 192.0.2.0/24. An access rule for one of these ranges makes exit nodes available to the source devices, even if the access rule is meant for a subnet route.