Use exit nodes

Last validated:

This topic is a quick guide for configuring exit nodes in a tailnet. For more detailed information, see Exit nodes.

To use a tailnet device as an exit node, select an OS and complete the steps.

  1. Download and install the Tailscale client.
  2. Open the Tailscale app on the device, tap Exit Node, then Run as exit node.
  3. Go to the Machines page of the admin console and locate the device in the list. It should display the Exit Node badge.
  4. Select the ellipsis icon menu, then select Edit route settings.
  5. Check the Use as exit node box, then select Save.

Grant access to use an 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 never grants access to autogroup:internet, so Tailscale has no permission to route internet traffic through the exit node.

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.

Use an exit node

Each device must enable the exit node separately. The instructions for enabling an exit node vary depending on the device's operating system.

  1. Open the Tailscale app on the Android device and go to the Exit Node section.
  2. Select the exit node that you want to use. If you want to allow direct access to your local network when routing traffic through an exit node, toggle Allow LAN access on.
  3. On the app home screen, confirm that the selected device displays in the Exit Node section. When an exit node is being used for the device, the section will turn blue.

To stop a device from using an exit node, go to the Exit Node section and select None.

You can turn off routing through an exit node by selecting None from the Exit Node drop-down.