Difference between revisions of "ZeroTier One VPN configuration RutOS"

From Teltonika Networks Wiki
 
(No difference)

Latest revision as of 14:05, 8 August 2024

Main Page > General Information > Configuration Examples > VPN > ZeroTier One VPN configuration RutOS

ZeroTier One is an open source software product that establishes Peer to Peer VPN (P2PVPN) connection between laptops, desktops, phones, embedded devices, cloud resources, and apps.

Introduction

This article contains step-by-step instructions on how to set up a Zerotier VPN connection using RUTxxx routers.

Prerequisites

You will need:

  • Two RUTxxx routers
  • An end device to configure the routers (PC, Laptop, Tablet, Smartphone)

Setting up a ZeroTier network

  • Go to https://my.zerotier.com/login and log in or create an account if you haven't already.
  • Open the 'Networks' tab and click the 'Create a Network' button.
    RutOS ZeroTier 7.8 1 network.png
  • Click the newly created network to begin configuration.
    RutOS ZeroTier 7.8 2.png
  • Before configuring anything else, you may want to set up some basic settings.
    1. Copy the Network ID; you will need it later for ZeroTier node configuration.
    2. Optionally, set up a name and description for your network for easier management.
    3. Select 'Private' access control type; unless you want nodes to connect freely, without authorization.
    RutOS ZeroTier 7.8 3.png
  • Scroll down to find the 'IPv4 Auto-Assign' section. Select one of the provided private IP ranges for your network or click 'Advanced' and set up the range manually. For this example we'll be using the 10.147.17.* selection which means our network will be using the 10.147.17.0/24 IP range.
    Networking rutxxx configuration zerotier network settings v1.jpg

The last step concludes the ZeroTier network configuration. However, you may want to modify to the settings based on your specific requirements, but this particular network will function without any additional settings.

The next step is configuring members (aka nodes) for our ZeroTier network.

RUT1 and RUT2 configuration

The configuration for both of the routers are the same.


  • Log in to your device's WebUI, and navigate to the Services → Package Manager page.
  • Find the ZeroTier package in the list and install it.
  • Navigate to the Services → VPN → ZeroTier page and create a new ZeroTier configuration.
    1. Enter a custom name for the configuration.
    2. Click 'Add'.
    RutOS ZeroTier 7.8 5.png
  • Complete the configuration.
    1. Turn the instance on.
    2. Add custom instance name.
    3. Click 'Add'.
    RutOS ZeroTier 7.8 6fix.png
  • Complete the configuration.
    1. Enable instance on.
    2. Paste the ZeroTier Network ID into the Network ID field.
    3. Enable Allow managed IP.
    RutOS ZeroTier 7.8 9.png

Testing the configuration

To test out if the configuration is done correctly, you can ping the Managed IP address of the opposite router.