Table of Contents |
---|
Introduction
The ZeroTier network hypervisor is a self-contained network virtualization engine that implements an Ethernet virtualization layer similar to VXLAN built atop a cryptographically secure global peer-to-peer network. It provides advanced network virtualization and management capabilities on par with an enterprise SDN switch, but across both local and wide area networks and connecting almost any kind of app or device.
MikroTik has added ZeroTier to RouterOS v7.1rc2 as a separate package for the ARM/ARM64 architecture.
Quick setup
First Time Configuration
By default, ZeroTier is designed to be zero-configuration. A user can start a new ZeroTier node without having to write configuration files or provide the IP addresses of other nodes. It’s also designed to be fast. Any two devices in the world should be able to locate each other and communicate almost instantly so the following example will enable ZeroTier on RouterOS device and connect one mobile phone using the ZeroTier application.
- Register on
- Register on
- my.zerotier.com and create your network, obtain the Network ID XXXXXXXXX;
- Download and Install zerotier
- ZeroTier NPK package in RouterOS;
Enable the default (official)
zerotierZeroTier instance:
sergejs@HomeCode Block language ros [
zerotier>enableadmin@mikrotik] > zerotier/
enable zt1
Add a new network, specifying the network ID you created in the
zerotierZeroTier cloud console:
sergejs@HomeCode Block language ros [
zerotieradmin@mikrotik] zerotier/
interface>interface/
YYYYYYYYYadd network=
8286ac0e473d**** instance=zt1
Now you might need to allow connections from the
zerotierZeroTier interface to your router, and optionally, to your other LAN interfaces:
sergejs@HomeCode Block language ros [
admin@mikrotik] /ip firewall filter> add action=accept chain=forward in-interface=zerotier1 place-before=0
sergejs@Home[
admin@mikrotik] /ip firewall filter> add action=accept chain=input in-interface=zerotier1 place-before=0
Verify ZeroTier configuration:
Code Block language ros [admin@MikroTik] > zerotier/interface/print Flags: R - RUNNING Columns: NAME, MAC-ADDRESS, NETWORK, NETWORK-NAME, STATUS # NAME MAC-ADDRESS NETWORK NETWORK-NAME STATUS 0 R zerotier1 2A:DD:A1:4C:5C:C9 8286ac0e473d**** testme_mt OK
- Install a ZeroTier client on Install a zerotier client in your smartphone or computer, follow the zerotier ZeroTier manual on how to connect to the same network from there.
Infotip |
---|
Tip: You should specify routes to specific internal subnets in thezerotier ZeroTier cloud console, to make sure you can access those networks when connecting from other devices. |
Configuration
General configuration in the /zerotier menu.
...
. |