Setup and settings: Tailscale

1. Installation via the terminal

Installation will be performed on Linux Ubuntu. Learn more about installing on other devices: https://tailscale.com/download


curl -fsSL https://tailscale.com/install.sh | sh
Для перехода в root режим: sudo -i

After that, a link should appear at the bottom of your terminal. Click on the link and connect. (you will need to select an option for logging in as an administrator. For example, using GitHUb)

After clicking on the link.
What the link looks like and how to successfully connect.

2. After a successful connection.

Take a mini-survey to get to the admin panel. Optionally, you can connect a second device (you will be prompted to do so in the survey) you can skip this.

After the survey, you will be taken to the menu, where you can verify your connection and add new devices and other items.

3. Getting the key

In the menu, go to https://login.tailscale.com/admin/settings/keys and generate a key. Save it so that you don't lose it. It will be impossible to view it later

Optional: Select this option to use the same key multiple times:

The key will work for 1 to 90 days, depending on how many days you choose.

Don't forget to enable https and MagicDNS in the section https://login.tailscale.com/admin/dns

4. Launching and configuring docker + tailscale

You should already have docker installed on your machine, and we will use Dokploy because it is very lightweight and allows us to quickly install our containers. As an example, we will install N8N. Here is an example of how we installed Dokploy and n8n (if you want to use all the features later):

Go to Projects and create a new project.

Then go to Create Service. Select Compose.

Go to our service. Select raw

Now, fill in Compose and Enviroment using our N8N template

In Enviroment, we specify our data and the current versions of our services (in our case, Tailscale and n8n. at the time of the article, the latest articles are listed in the template)

Explanation of Enviroment.

TS_AUTHKEY is your key that you should have copied from the Tailscale menu.

TAILNET_ROOT is the domain. You can view it like this:

Our TAILNET_ROOT is tailbb4a1f.ts.net (without veilos)

SUBDOMAIN is what will replace veilos.

Deploy.

we are redirected to Deployments and we expect our services to start.

We check the Tailscale admin panel and view the logs and status of the docker containers to ensure that everything is working properly

the admin panel says that there is a connection
The Up 23 minutes (healthy) status means that the n8n-tailscale container has been running for 22 minutes and has successfully passed all health checks.
the logs show that everything is in order

We go to n8n.tail76b3b7.ts.net and make sure everything works.

An example of successful operation of an AI agent.


Do you have any problems? Please use the current feedback methods on the website https://veilstack.space/ or visit the FAQ.

Last updated

Was this helpful?