How To Install Tailscale on Ubuntu 26.04 LTS

Tailscale logo - How To Install Tailscale on Ubuntu 26.04 LTS

You have a server at home, a VPS somewhere, and a laptop that travels with you. You want to SSH into the home server from a coffee shop, open the NAS web page from a hotel, or reach a service that only listens on your LAN. The usual answers are all annoying in their own way: open ports on the router and hope nobody scans them, or run a full VPN server and manage keys by hand.

Tailscale takes the boring parts away. It builds a private mesh network on top of WireGuard, hands every device a stable address in the 100.x.y.z range, and lets those devices talk to each other directly wherever they are. You do not open ports, you do not write config files full of keys, and you do not keep a VPN server patched. You can install Tailscale on Ubuntu 26.04 in about ten minutes, and the same steps work on a laptop, a home server, or a VPS.

By the end you will have the machine joined to your own private network, called a tailnet, plus two extras that turn one Ubuntu box into the most useful box on your network: a subnet router that opens your whole home LAN to the tailnet, and an exit node that routes traffic through your home connection on untrusted Wi-Fi. The version covered here is Tailscale 1.106.4, released 4 December 2026.

What Is Tailscale, and Why It Pairs So Well with WireGuard

Tailscale is a mesh VPN built on WireGuard. Each device runs a small daemon called tailscaled, and a coordination server introduces the devices to each other, swaps their public keys, and helps them punch through NAT. After that the devices talk directly, encrypted end to end, and the coordination server never sees the traffic. When NAT blocks a direct path, Tailscale falls back to its DERP relays.

Every device gets a stable private address from the 100.64.0.0/10 range and a MagicDNS name like myserver.tailnet.ts.net. The address follows the device, so a laptop keeps the same address at home, at the office, and on a phone hotspot.

WireGuard is the protocol, Tailscale is the easy way to run it. Raw WireGuard means a config file per peer and keys copied by hand. Our guide to installing WireGuard on Fedora 45 shows that path, and it is the right choice when you want full control. Tailscale trades a little of that control for convenience: you sign in, approve the device, and you are done. The keys still never leave your devices, and the free personal plan covers up to 100 devices and 3 users.

Run the current release. Version 1.106.3 from 2 December 2026 added a hybrid post-quantum key exchange (ML-KEM-768) to the WireGuard handshake, and 1.106.4 from 4 December 2026 is the current stable release. The 1.104.4 release from 28 October 2026 fixed four security bulletins, TS-2026-014 through TS-2026-017, in Tailscale SSH and Tailscale Serve.

Before You Start

You need Ubuntu 26.04 LTS with sudo access, a free Tailscale account made by signing in at login.tailscale.com, and outbound internet. No open ports on your router, no domain name, no static IP.

What you need

  • Ubuntu 26.04 LTS (Resolute Raccoon), with sudo access
  • A Tailscale account, free, at login.tailscale.com
  • Outbound access to TCP 443 and UDP 41641
  • About ten minutes

Update the system first, then make sure curl and ca-certificates are present:

sudo apt update && sudo apt upgrade -y
sudo apt install -y curl ca-certificates

One small surprise on 26.04: sudo is now sudo-rs, so the prompt reads [sudo: authenticate] Password: and shows asterisks as you type instead of the old blank prompt.

How to Install Tailscale on Ubuntu 26.04

There are two ways in, and both end at the same place: the tailscale package from Tailscale’s own APT repository, with tailscaled enabled as a systemd service that comes back after every reboot.

Method 1: The official install script

The fastest way to install Tailscale on Ubuntu 26.04 is the official install script. It detects the release, adds the matching APT repository, installs the package and the keyring package, then enables and starts tailscaled. Run it as your normal user, it asks for sudo when it needs it:

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

To pin the version, pass it through an environment variable, then check what landed:

curl -fsSL https://tailscale.com/install.sh | TAILSCALE_VERSION=1.106.4 sh
tailscale version

The daemon is already running, but it is logged out until you authenticate.

Method 2: Add the APT repository by hand

If piping a script into your shell makes you uneasy, add the repository yourself. The one detail that matters on 26.04 is the codename. This release is resolute, where 24.04 was noble, and Tailscale publishes a resolute repository. Several older guides still print noble for 26.04, which installs the 24.04 package on a 26.04 box.

sudo mkdir -p --mode=0755 /usr/share/keyrings
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/resolute.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/resolute.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
sudo apt-get update
sudo apt-get install -y tailscale tailscale-archive-keyring

Picking the right method

Method How it works Best for
Install script One command, adds the repo and installs Most people, first install
Manual APT repo You see and control every step Servers with strict change rules
Snap package Canonical snap, automatic refreshes Quick desktop installs only

Join Your Tailnet with tailscale up

The package is in place. The next step after you install Tailscale on Ubuntu 26.04 is joining the machine to your tailnet. The daemon is already running, but it is logged out until you authenticate.

On a machine with a browser

Run sudo tailscale up. It prints a line starting with To authenticate, visit: followed by a login.tailscale.com link. Open that link in any browser, sign in with the same identity provider as your tailnet, and approve the machine. The terminal finishes the login by itself. Add --ssh for Tailscale SSH and --hostname home-server to give the machine a clear name.

On a headless server with an auth key

Copying a login link out of an SSH session gets old fast. Generate an auth key first in the admin console under Settings, then Keys, and pass it straight in:

sudo tailscale up --authkey tskey-auth-xxxxxxxxxxxxxxxx --hostname my-server

Keys can be reusable or one-off, and you can set an expiry. Treat a key like a password and never paste it into a chat log or a shared doc.

Check That the Connection Works

Three commands tell you everything. tailscale status lists the machines in your tailnet with their 100.x.y.z addresses and shows whether each connection is direct or relayed. Before the first login it simply reports Logged out, which is the state you should expect, not an error. tailscale ip -4 prints this machine’s tailnet IPv4 address, and tailscale ping followed by a hostname checks the path to another machine. A direct connection answers fast, a relayed one still answers but with higher latency.

tailscale status
tailscale ip -4
tailscale ping home-server

Then try it from the other side. From your laptop or your phone with the Tailscale app, ping the server by its MagicDNS name, like home-server.tailnet.ts.net. If that answers, the mesh is up.

Turn the Server into a Subnet Router

A subnet router advertises your whole home LAN to the tailnet, so you can reach the NAS, the printer, or a server that will never run a Tailscale client. Once the route is up, you can reach a home server running Ollama from your laptop anywhere, which our guide to installing Ollama on Ubuntu 26.04 pairs with nicely.

First, the kernel must forward packets. Create /etc/sysctl.d/99-tailscale.conf with these two lines, then apply it:

net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding = 1
sudo sysctl -p /etc/sysctl.d/99-tailscale.conf

Then advertise your LAN range, replacing the example with your own subnet:

sudo tailscale up --advertise-routes=192.168.1.0/24

Advertised routes stay off until you approve them. In the admin console, open Machines, click the server, choose Edit route settings, and switch the route on. Linux clients ignore subnet routes unless told otherwise, so on each Linux device that should use the route, run sudo tailscale set --accept-routes. Then test by pinging a LAN address that has no Tailscale client, like the router or the NAS.

Use the Server as an Exit Node

An exit node routes all of a client’s internet traffic through the server. It helps on untrusted Wi-Fi and gives you a fixed home IP wherever you are. Advertise the server as one, or combine both jobs in one command:

sudo tailscale up --advertise-exit-node
sudo tailscale up --advertise-routes=192.168.1.0/24 --advertise-exit-node

Approve it in the admin console in the same Edit route settings dialog, under Use as exit node. Then, on the client, select it and keep access to the client’s own LAN:

sudo tailscale set --exit-node=home-server --exit-node-allow-lan-access

Without the second flag, the printer sitting next to you stops answering while your internet goes through home. To stop using the exit node, run sudo tailscale set --exit-node=. Pick a machine that stays on and has decent upload bandwidth. A home server on a fiber line is a good pick, a laptop that sleeps is not.

Firewall Notes for UFW

Tailscale needs outbound TCP 443, UDP 3478, and UDP 41641. It does not need any inbound port open on your router, because both sides make outbound connections and meet in the middle. Allowing inbound UDP 41641 just makes direct connections more likely and relayed ones less common.

With UFW on the Ubuntu box, two rules cover the common case. The first lets tailnet devices reach services on the box, the second helps direct connections:

sudo ufw allow in on tailscale0
sudo ufw allow 41641/udp

If the box is a subnet router or exit node, UFW’s default forward policy drops the traffic it should carry, so add the forwarding rules and reload:

sudo ufw route allow in on tailscale0
sudo ufw route allow out on tailscale0
sudo ufw reload

Keep Tailscale Updated

When a new release lands after you install Tailscale on Ubuntu 26.04, updating takes one command. APT pulls the new release from the same repository the installer added:

sudo apt-get update && sudo apt-get install tailscale

Or let Tailscale handle it with sudo tailscale update. Confirm with tailscale version. To pin a fleet to a release you already tested, install the exact version and hold it:

sudo apt-get install -y tailscale=1.106.4
sudo apt-mark hold tailscale

Undo the hold with sudo apt-mark unhold tailscale. Pinning is worth doing on a server you only touch once a month.

Fixing the Problems People Hit Most

The login link does nothing

The link printed by tailscale up is single-use and time-limited. If you waited too long, run sudo tailscale up again for a fresh link. If the browser opens the wrong Tailscale account, sign out there and sign in with the account that owns the tailnet.

Everything works, but traffic always goes through a relay

Direct connections need UDP 41641 reachable on both sides. A strict firewall or a CGNAT uplink can block it, so allow UDP 41641 in UFW and check tailscale status to see whether the path turns direct. Relays still work, they are just slower, so this is a speed problem, not a broken setup.

Subnet routes are advertised but nothing answers

Two usual causes. First, the route is not approved in the admin console yet. Second, IP forwarding is off, so the router drops the packets. Check the sysctl file, apply it with sysctl -p, and confirm the route shows as approved under Machines, then Edit route settings.

Hostnames do not resolve

MagicDNS is on by default for new tailnets, and names look like hostname.tailnet.ts.net. If the machine has a custom DNS setup or a local resolver that overrides it, tailnet names can lose. Try the 100.x.y.z address to separate a DNS problem from a routing problem.

How to Uninstall Tailscale on Ubuntu 26.04

Log out first, then remove the package and its configuration:

sudo tailscale logout
sudo apt-get remove --purge tailscale
sudo apt-get autoremove

Remove the repository and the key if you do not want APT to keep offering it, then update the package lists. The machine also stays listed in the admin console until you remove it there, under Machines, then Delete.

sudo rm /etc/apt/sources.list.d/tailscale.list /usr/share/keyrings/tailscale-archive-keyring.gpg
sudo apt-get update

Frequently Asked Questions

Can I install Tailscale on Ubuntu 26.04 on a headless server?

Yes. Generate an auth key in the admin console under Settings, then Keys, and run sudo tailscale up --authkey tskey-auth-... --hostname my-server. The machine joins without any browser step, and the key can be set to expire so a leaked key stops working on its own.

Is Tailscale free?

The personal plan is free for up to 100 devices and 3 users, which covers a home lab and a small family. Paid plans add more users, devices, and controls like device posture checks and audit logs.

Do I need to open ports on my router?

No. Both sides connect outward and Tailscale’s NAT traversal joins them, with DERP relays as fallback. Opening UDP 41641 on the local firewall only helps direct connections happen more often.

What is the difference between Tailscale and plain WireGuard?

WireGuard is the protocol, Tailscale is a managed mesh built on it. Raw WireGuard means hand-written config files and keys for every peer, while Tailscale handles keys, NAT traversal, and DNS for you. The trade is a coordination server run by Tailscale, though the traffic stays end to end encrypted and the keys never leave your devices.

Wrapping Up

That is the whole job: install Tailscale on Ubuntu 26.04, join the tailnet, and decide whether the box should also route your LAN or carry your internet. The install takes minutes, the mesh stays up on its own, and the two extras, subnet routes and an exit node, turn one quiet Ubuntu server into the most useful machine on your network.

If you built your own tunnel before, keep the WireGuard guide around for the days you want full control. And if the server at the other end of the tailnet is the one running your local models, the Ollama on Ubuntu 26.04 walkthrough is the natural next read. Install Ollama there, then reach it from your laptop anywhere through the tailnet.

Last tested: 5 December 2026, Tailscale 1.106.4 on Ubuntu 26.04 LTS (Resolute Raccoon).

Natasha is a server sysadmin with 6+ years of experience in servers, operating systems, and coding. They focus on infrastructure stability, security, and automation, and enjoy sharing practical tips on Linux and server administration.

Related Posts