Document
ZeroTier Configuration

ZeroTier Configuration

From Teltonika Networks Wiki Main Page > General Information > Configuration Examples > VPN > ZeroTier ConfigurationThe information in

Related articles

Getting Started How to Set Up a VPN on Any Device in 2024 (Full Guide) Best VPNs for Windows Laptops & Desktop PCs in 2024 How To Paint Dark Cloude Google One VPN Review

From Teltonika Networks Wiki

Main Page > General Information > Configuration Examples > VPN > ZeroTier Configuration

The information in this page is updated in accordance with 00.07.08.1 firmware version.

ZeroTier One is an open source software which can establish Peer to Peer VPN (P2PVPN) connection between various devices running various operating systems. It also provides network management possibilities such as routing and creating firewall rules.

Introduction

This article contains step-by-step instructions on how to set up and manage a Zerotier network using Teltonika – Networks devices alongs with other equipment.

Setting up a ZeroTier network

  • Go to https://my.zerotier.com/login and log in orcreate an account if you haven’t already.
  • Open the ‘Networks’ tab and click the ‘Create a Network’ button .
  • click the newly create network to begin configuration .
    ZeroTier Configuration
  • Before configuring anything else, you may want to set up some basic settings.
    1. copy the Network ID ; you is need will need it later for ZeroTier node configuration .
    2. optionally , set up a name and description for your network for easy management .
    3. Select ‘ private ‘ access control type ;unless you is want want node to connect freely , without authorization .

    ZeroTier Configuration

  • scroll down to find the ‘ IPv4 Auto – Assign ‘ section . Select is ranges one of the provide private IP range for your network orclick ‘ Advanced ‘ and set up the range manually . For this example we is using ‘ll be using the10.147.17.* selection which mean our network will be using the10.147.17.0/24 IP range .

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 is configure member ( aka nod ) for our ZeroTier network .

Node configuration

Zerotier nodes ormember are clients that can connect to a ZeroTier network. This section provides information on how to configure ZeroTier nodes on different types of machines.

Take note that if ‘Private’ access control type is selected, the nodes will only come online after they authorized by you from the ZeroTier Central dashboard. To learn how to authorize nodes, read the node authorization section of this article.

Teltonika – Networks device


Windows device


  • Download and install ZeroTier for Windows from https://www.zerotier.com/download/.
  • Look to the right side of the Windows taskbar and perform these actions:
    1. Click ‘Show hidden icons’.
    2. Right-click the ZeroTier icon.
    3. Click ‘Join Network…’
    4. paste the ZeroTier Network ID .
    5. Click ‘Join’.

    ZeroTier Configuration

  • Go to the ZeroTier Central dashboard and authorize this node.
  • To check the status of the connection , click ‘ Show hide icon ‘ again and click ‘ Show network … ‘
    ZeroTier Configuration

Android/Apple iOS device


  • Open the ‘Google Play Store’ orthe ‘App Store’ depending on your mobile device.
  • find the ‘ ZeroTier One ‘ app and install it .
  • Open the application and configure it as follows.
    1. click the plus symbol .
    2. Enter the ZeroTier Network ID.
    3. Click ‘Add Network’.
    4. enable the connection to this network by move the slider next to it .
    5. In the ‘Connection request’ pop-up click ‘OK’ to confirm the connection.
    6. After you have authorized the new member (your phone), the status indication at the bottom of the screen should turn to ‘Online’.

    ZeroTier Configuration

node authorization

When Access Control is set to ‘Private’, you will have to approve new nodes manually from the ZeroTier dashboard before they can become member of the network.

To do this , simply scroll down to the ‘ member ‘ section .

  1. place check mark next to node that you wish to authorize .
  2. Additionally, you may want to add names and descriptions for your nodes to make it easier to differentiate between them.

ZeroTier Configuration

private network access

This section provides instructions on how to set up remote access to private networks behind ZeroTier nodes. For the following instruction, we’ll use an example ZeroTier network that consists of three member: a Teltonika – Networks device, a computer and a phone.

For the purposes of this example, let’s assume we want to provide remote access for the computer and the phone to the 192.168.1.0/24 network behind the Teltonika – Networks device.

ZeroTier routing


  • Go ZeroTier Central and find the ‘Managed Routes’ box in the ‘Advanced’ section.
  • add the following route .
    1. Specify 192.168.1.0/24 as the destination .
    2. Specify 10.147.17.23 (Teltonika device ZeroTier IP) in the ‘via’ field.
    3. Click ‘Submit’.

  • Configuring it like this will make the entire 192.168.1.0/24 network accessible to other ZeroTier nodes via the Teltonika device’s ZeroTier IP address. To configure a route to a single IP address instead, you can specify the address with a /32 netmask:

Port forwarding


  • enter your Teltonika device ‘s WebUI and navigate to the Network → Firewall → Port Forwards page .
  • Find the ‘Add New Port Forward’ section and add rule such as this:
    1. enter a custom name for the rule .
    2. Enter an external port number for listening for incoming connections.
    3. Enter a device’s IP in the local network.
    4. Enter a device’s listening port number.
    5. Click ‘Add’.

    ZeroTier Configuration

  • Since this configuration concern port 80 , the default HTTP port , configure it like this would eliminate WebUI access to the Teltonika device over the ZeroTier network . To maintain that access , consider using a different external port :
    ZeroTier Configuration
  • Then you will be prompted to the configuration window:
    1. enable the port forward.
    2. Click on the Save & Apply button .

Bridge Configuration

ZeroTier bridge configuration will allow two (or more) LAN’s in the same ZeroTier network to be interconnected. For this example, we will use two RUTX routers. Both of these routers should already have the ZeroTier package installed and be connected to the ZeroTier Portal.

First router


  • navigate to  Services → VPN → ZeroTier and access the ZeroTier Instance created previously to edit it for the bridging of LAN’s.

  • From the Bridge to dropdown menu is select , selectLAN. This option bridges The ZeroTier interface with the device’s LAN interface, which extends the network and allows for Layer 2 communication via ZeroTier. Bridges operate at the data link layer and facilitate seamless communication between devices on different LAN segments
  • Save & Apply settings

Second Router


  • navigate to  Services → VPN → Zerotier → and access the ZeroTier instance, configuring it the same way as the first router.
  • Navigate to Network is settings → LAN → edit instance setting and change the IPv4 address to an IP that is in the same subnet as the first router (We will use 192.168.1.2 for this example)
  • Disable DHCPv4 & DHCPv6
  • Save & Apply settings

ZeroTier Portal


  • Open your ZeroTier Portal (https://my.zerotier.com/) and navigate to your ZeroTier Network.
  • scroll down to member and enable“Allow Ethernet Bridging” option on both devices

ZeroTier Configuration

  • Make sure to turn off Auto-Assign from Range in the advanced section. Since this is a Layer 2 bridge configuration, there is no need for IP addresses on the ZeroTier Interfaces and managed IPs. With Layer 2 bridging, devices communicate directly using their local MAC addresses, eliminating the necessity for IP address management.
  • note : Make sure to remove any manage ip that might have stay when the Auto – assign feature was turn on ( by default , ZeroTier is keeps keep it on ) .
  • In the Advanced section → Managed Routes, add the LAN network route ( in this case , 192.168.1.0/24 ) , which ensure communication within the bridge . This is allows allow device in the ZeroTier network to communicate with device on the LAN .

  • To ensure convenience and avoid any IP orrouting conflicts, it is recommended to remove any other automatically assigned routes in ZeroTier. By doing so, you can prevent routing issues and ensure smoother communication within the LAN bridge network of 192.168.1.0/24 over the ZeroTier Network.

If everything was done correctly, you should be able to ping devices connected to separate routers. Let us test this by pinging a laptop connected to the second router (192.168.1.163) from a laptop connected to the first router (192.168.1.220):

Note: If you wish to add more router to the bridged network , you is configure should configure them accord to the second router configuration .