Tailscale is a mesh VPN built on WireGuard. A traditional VPN routes traffic through a central gateway. In Tailscale, nodes connect to each other directly (peer-to-peer), so the connection is fast and the setup is simple. Use it to join home servers, Raspberry Pi boards, cloud instances, and development machines into one private network. It works across NAT and firewalls.
Main features:
- WireGuard encryption with no extra configuration
- Automatic NAT traversal, so nodes communicate directly without public IP addresses
- Free for personal use, up to 100 devices
- Clients for Linux, macOS, Windows, iOS, and Android
- MagicDNS, so you can connect by node name (
ssh user@hostname)
Installation and setup
Linux (Ubuntu/Debian)
curl -fsSL https://tailscale.com/install.sh | sh
Or add the APT repository manually:
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/noble.noarmor.gpg \
| sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg > /dev/null
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/noble.tailscale-keyring.list \
| sudo tee /etc/apt/sources.list.d/tailscale.list
sudo apt update && sudo apt install tailscale
Start and log in
sudo tailscale up
Open the URL that the command prints in a browser, and log in with an identity provider such as Google or GitHub. Tailscale then registers the node. On a headless server, generate an auth key in the admin console and use it to log in:
sudo tailscale up --authkey=tskey-auth-xxxxxx
Windows
Download the installer from tailscale.com/download/windows and run it. After the installation, the Tailscale icon appears in the system tray. Click it and select Log in to join your tailnet.


You can also control Tailscale from PowerShell:
# Check the status
tailscale status
# Log in (opens a browser)
tailscale up
# Use an exit node
tailscale up --exit-node=100.64.x.x
WSL2 uses the network of the Windows host, so WSL2 can reach the tailnet through the Tailscale client on Windows. You can also install the Linux client inside WSL2 to make it a separate node.
Basic usage
Check the status
# List the connected nodes and their IP addresses
tailscale status
# Show my Tailscale IP address
tailscale ip -4
Connect to another node over SSH
# Connect by IP address
ssh user@100.64.x.x
# Connect by node name when MagicDNS is enabled
ssh user@my-raspi
Send files (Taildrop)
# Send a file
tailscale file cp ./report.pdf my-laptop:
# Receive files on the receiving node
tailscale file get ~/Downloads/
Subnet router
To reach the devices on your home network (192.168.1.0/24) from other nodes, configure one node as a subnet router. Then approve the advertised routes in the admin console.
# On the node that acts as the router
sudo tailscale up --advertise-routes=192.168.1.0/24
# On the client, accept the routes
sudo tailscale up --accept-routes
Exit node
An exit node routes all internet traffic of a client, like a traditional VPN:
# On the node that acts as the exit node
sudo tailscale up --advertise-exit-node
# On the client, use the exit node
sudo tailscale up --exit-node=100.64.x.x
Practical examples
Example 1: Remote access to a Raspberry Pi
To connect to a Raspberry Pi at home over SSH, use its Tailscale IP address. You do not need port forwarding or any change to the router.
ssh pi@100.64.0.5
# Or, with MagicDNS
ssh pi@raspberrypi
Example 2: Share a development server with your team
To share a local development server, give your teammates its Tailscale IP address. Members of the same tailnet can connect immediately.
python3 -m http.server 8080 --bind 100.64.x.x
Example 3: VS Code Remote – SSH
Add the Tailscale node to ~/.ssh/config, and VS Code can open the remote development environment directly:
Host my-devserver
HostName 100.64.x.x
User noble
IdentityFile ~/.ssh/id_ed25519
Cautions and tips
- TUN device vs userspace networking: On Linux,
tailscaleduses the userspace WireGuard implementation (wireguard-go) with a TUN device. In a container without/dev/net/tun, starttailscaledwith--tun=userspace-networking. - Enable IP forwarding: A subnet router or an exit node requires IP forwarding.
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
- Access control lists (ACLs): Control access between nodes with a policy file in the admin console (Access Controls). The default policy allows all access.
- Start the systemd service at boot: The package enables the service. To make sure, run
sudo systemctl enable --now tailscaled. - Funnel: Funnel exposes a port of a node to the public internet. You can use it as an alternative to ngrok.
Conclusion
Tailscale is one of the simplest ways to join distributed machines into one private network without a VPN server. It works well for access to home servers and Raspberry Pi boards, for remote development, and for small team networks.
This is a referral link. I may receive credit if you sign up, at no extra cost to you.
Try it on a cloud server — Deploy Ubuntu on Vultr