For those of you running Linux servers or if you use docker-compose, then you can install Tailscale using our docker-compose.yml file example.
Before we create the compose
file:
If your running Proxmox LXC then go to the following page before deploying the container :
Now let's create the first docker-compose.yml
file with the nano
text editor.
After you're done editing the file, save it with ctrl+x
, type “y” and then press enter
.
Go here for the next step.
This solution will fix any VPN you want to run such as Tailscale and OpenVPN
On the proxmox host look in /etc/pve/lxc/
, for the ID of the LXC you want to use Tailscale in. For example in my case LXC ID=100. I would then edit /etc/pve/lxc/100.conf
and add the following under what is already there:
This allows the container to have access to /dev/tun
. In my case at least, this allows even an unprivileged LXC to run Tailscale or OpenVPN which makes a node.
Make sure you are in the same directory as the docker-compose.yml
file, and now we want to start up the container(s) by running the following in each directory:
If you're in another directory, then you will need to specify the compose file with the -f
argument.
Run the following to have the abilityfor your Host device to be the Exit Node
Now go here and run the section to enable IP forwarding and then your done!