Tailscale Configuration Example: Difference between revisions

From Teltonika Networks Wiki
(Created page with "__TOC__ ==Introduction== '''Tailscale''' is a straightforward peer-to-peer VPN service that utilizes the open-source WireGuard protocol. This page provides an example of ho...")
 
No edit summary
Line 1: Line 1:
__TOC__
__TOC__
==Nebaigta==


==Introduction==
==Introduction==

Revision as of 16:59, 29 January 2024

Nebaigta

Introduction

Tailscale is a straightforward peer-to-peer VPN service that utilizes the open-source WireGuard protocol. This page provides an example of how to configure Tailscale VPN nodes, including the option to use one of the nodes as an exit node.

Note: Tailscale is additional software that can be installed from the System → Package Manager page.

Prerequisites

  • A RUTOS device (this example will using RUTX12)
  • An end device to configure devices (PC, Laptop, Tablet, or Smartphone)
  • Activated Tailscale account. You can register here.

End results

In the end, a secure tunnel will be established between RUTX12 and any of your devices. We can also utilize RUTX12 as the endpoint device, serving as the point through which our connection reaches the internet. This means that our device will have the IP address of RUTX12.

RUTX12 Tailscale configuration

  1. First, let's make the process simple by installing the Tailscale package on our router. To accomplish this, navigate to System -> Package Manager -> Packages.
  2. Here, you can find it easily by typing "Tailscale" in the search bar as described below.
  3. Once the package is installed, you can go to "Services" -> "VPN" -> "Tailscale" to access the corresponding window.
  4. The setup process is straightforward. Simply choose "Use login URL" (for increased security and you can use the "Authentication Key," but login will still be required) and activate the service by pressing "Save & Apply" button.
  5. Once enabled, you'll see a login link that will direct you to the Tailscale website. There, you can connect RUTX12 to the account you created before starting. If the link is not visible, try saving the configuration and reloading the page.
  6. Follow the instructions to connect your device. If everything is successful, you should see a similar success message.
  7. Now, you will be redirected to your admin console and with that, the RUTX12 setup is complete.


Another end device configuration configuration

  1. Select another end device you intend to use, whether it's a PC, laptop, mobile phone, or any other device. Then, click the "Add device" button.
  2. Afterward, choose the specific device you will be using. For this setup, we'll be selecting a Windows laptop.
  3. Once the selected software is installed, go to the taskbar and click on the Tailscale icon.
  4. You will be redirected to another page where you need to connect this device. Proceed to connect it.
  5. Now, you will be redirected once again to the admin console, where both devices will be visible.

Testing Configuration

To test connection you need to open Command Line Interface (Services → CLI) and login. Then type:

   tailscale status

Both instances should be connected, and the output should resemble the following. Now, you can try pinging devices using VPN addresses and even machine names provided by Tailscale. Note that machine names can be changed. If everything is set up correctly, the ping should return results in a similar fashion as shown in the image below.