Tailscale: Secure Remote Access to Your Home Network
Overview
Tailscale creates a secure, encrypted private network between your devices, regardless of their physical location. It uses WireGuard and allows you to remotely access servers, computers, and self-hosted applications without exposing them to the public internet.
Benefits
- No port forwarding required.
- No public IP address required.
- No domain name required.
- No Cloudflare Tunnel required.
- Encrypted communication between devices.
- Works behind most routers and firewalls.
- Supports Linux, Windows, macOS, Android, and iOS.
- Free personal plan available.
1. Create a Tailscale Account
Visit https://tailscale.com and create an account.
2. Install Tailscale on Linux
Run the following command on your Linux server:
curl -fsSL https://tailscale.com/install.sh | sh
Start Tailscale:
sudo tailscale up
Open the authentication URL displayed in your terminal and sign into your Tailscale account.
3. Install Tailscale on Other Devices
Visit the official download page:
https://tailscale.com/download
Install Tailscale on any device you want to connect to your private network.
Sign into the same Tailscale account on each device.
4. Find Your Server's IP Address
Run the following command on your server:
tailscale ip -4
Example output:
100.85.42.10
This is your server's private Tailscale IP address.
5. Verify Connected Devices
Run:
tailscale status
This displays the devices connected to your Tailscale network and their respective IP addresses.
From another device on your Tailscale network, test connectivity to the server:
tailscale ping 100.85.42.10
6. Access Self-Hosted Applications
Once connected, you can access applications using the server's Tailscale IP address and the application's port.
| Application | Example Address |
|---|---|
| Forgejo | http://100.85.42.10:3000 |
| Instagram Screensaver | http://100.85.42.10:18473 |
| Voicebox | http://100.85.42.10:17493 |
| SSH | ssh agent@100.85.42.10 |
Replace the example IP address and ports with your actual configuration.
Applications must be listening on a reachable network interface, and your firewall must permit the connection. Applications bound exclusively to 127.0.0.1 will not be directly accessible.
7. Enable Automatic Startup
On a Linux server that uses systemd, enable Tailscale to start at boot:
sudo systemctl enable --now tailscaled
Verify the service:
systemctl status tailscaled
8. Manage Your Network
Access the Tailscale administration console:
https://login.tailscale.com/admin/machines
From here, you can:
- View connected devices.
- Rename devices.
- Remove devices.
- Manage device authorization.
- Configure access controls.
- Manage subnet routers and exit nodes.
9. Additional Features
MagicDNS
MagicDNS allows you to access devices using their hostnames instead of remembering IP addresses.
Example:
http://homeserver:3000
Subnet Router
A subnet router allows you to access devices on your local network without installing Tailscale on every device.
This is useful for:
- Network printers.
- Security cameras.
- Network-attached storage.
- Router administration pages.
- Other network-connected equipment.
Exit Node
An exit node allows you to route your internet traffic through another Tailscale-connected device.
For example, you can route your laptop's internet traffic through your home server while traveling.
Access Controls
Access controls allow you to restrict which users and devices can communicate with specific devices, applications, and ports.
10. Useful Commands
| Command | Description |
|---|---|
sudo tailscale up | Connect to Tailscale |
sudo tailscale down | Disconnect from Tailscale |
tailscale status | Display connected devices |
tailscale ip -4 | Display your IPv4 address |
tailscale ping <hostname> | Test device connectivity |
tailscale netcheck | Diagnose network connectivity |
sudo tailscale logout | Sign out of Tailscale |
tailscale version | Display installed version |
Tailscale vs. Cloudflare Tunnel
| Feature | Tailscale | Cloudflare Tunnel |
|---|---|---|
| Private remote access | Yes | Yes |
| Public website hosting | Optional via Funnel | Yes |
| Port forwarding required | No | No |
| Domain required for basic access | No | Typically for permanent public URLs |
| Client installation | Typically required | Not required for public websites |
| SSH access | Yes | Yes |
| Local network access | Yes, via subnet router | Supported with additional configuration |
Tailscale is particularly useful for accessing private infrastructure, while Cloudflare Tunnel is useful for exposing websites and applications to external users.