Skip to main content

Install Tailscale

WARNING

Make sure you read and understand the commands you executed, you shouldn't trust commands on the Internet if you don't know what they're doing.

Installing on the Linux

First download Tailscale:

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

This commands fetches the contents of the install.sh script and runs it, you can instead download the file and run it if you don't like the piping into sh

next run the following command as sudo or as root

sudo tailscale up

Example video

Once you visit the url you will need to log in and authenticate the device, and then it should be connected.


Proxmox

Installing on Proxmox's Shell

First download Tailscale:

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

Installing on the shell requires a modified version of the up command. This prevents Tailscale from overwriting your DNS, which would render LXC's and VM's using HOST DNS Settings unable to resolve the 100.100.100.100 dns and failing all DNS resolving.

The common workaround at this point is ONLY on the shell to run.

tailscale up --accept-dns=false

This enables Tailscale for connections while rejecting the use of its internal DNS.

Using Proxmox Scripts to install an LXC with Tailscale

info

This Proxmox script is required to be run on the WebUI Shell.

To utilize Proxmox scripts' Tailscale installation for an LXC:

bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/add-tailscale-lxc.sh)"

After the script completes, reboot the LXC, then on the LXC run

tailscale up

Manual Installation on Proxmox LXC's

LXC's have a specific requirement before running Tailscale: access to the Tunnel device /dev/tun, which unprivileged containers lack by default.

Identify the device ID (found next to the device name on the WebUI) and edit the LXC configuration file (e.g., /etc/pve/lxc/110.conf) inside the shell.

Add these two lines

lxc.cgroup2.devices.allow: c 10:200 rwm 
lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file
tip

LXC's by default come with the updates provisions from the image used, it's recommended to ensure they are updated for security.

Next enter the LXC, Reboot and download Tailscale:

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

then execute:

tailscale up

It should work seamlessly with Magic DNS support.