Guide

Tailscale exit node on a VPS

Last updated: 15 November 2026

Tailscale connects your devices into a private network and can use your VPS as an exit node: your phone or laptop sends its internet traffic through the server, so websites see the server's IP address. It is simpler than managing keys by hand, but you should know one thing: Tailscale is a service with its own sign-in and coordination server, so you need an account with one of its supported identity providers. If you want to run everything yourself, use plain WireGuard instead. Use it lawfully and follow our acceptable use policy. If you are logged in as root, leave out sudo.

Fast VPS from $7.99 a month

See Fast VPS plansHow ordering works

1. Install and sign in

Use the official installer (read it first if you like) and start Tailscale:

curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up

The command prints a login link. Open it in a browser and sign in with your Tailscale account to add the server to your network.

2. Allow IP forwarding

echo 'net.ipv4.ip_forward = 1' | sudo tee /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

Without forwarding the server cannot pass your traffic on. The last command offers the server as an exit node. If you use ufw, Tailscale works without opening extra incoming ports.

3. Approve the exit node and use it

  1. In the Tailscale admin page open the machine's menu, choose "Edit route settings" and tick "Use as exit node".
  2. On another device with Tailscale installed, pick the server as the exit node in the app, or on Linux run sudo tailscale set --exit-node=SERVER-NAME.
  3. Check your public address on a "what is my IP" page: it should show your server's IP.

Good to know

Fast VPS from $7.99 a month; a small plan is enough for a few devices.

Questions and answers

What is a Tailscale exit node?
A device in your Tailscale network that other devices can use to send their internet traffic out, so websites see the exit node's IP address.

Do I need an account to use Tailscale?
Yes, Tailscale uses its own sign-in and coordination server with a supported identity provider. For a fully self-run setup use WireGuard instead.

Why do I need IP forwarding?
Without net.ipv4.ip_forward the server cannot pass your traffic on to the internet.

How do I check that the exit node works?
Open a what-is-my-IP page on the device: it should show your server's IP address.

Ready to try it? Fast VPS from $7.99 a month

See Fast VPS plansHow ordering works