In this test, we set up Zerotier on GL.iNet’s mini-routers and an Ubuntu VPS so that they can access each other. To use ZeroTier service, you need to create your own ZeroTier account. Sign up for an account here: https://my.zerotier.com/login.
Important: Stop other VPN service on the router before you start is recommended
Login your ZeroTier account. Go to Network menu and click on Create button to create a new network.
Next you should see the configuration page of your network. Please jot down the Network ID which will be used later.
Setup ZeroTier on router
SSH to the router, and execute the following commands to install ZeroTier package:
opkg update opkg install zerotier
You should edit the configuration file /etc/config/zerotier to enable ZeroTier and join into a network. It looks like:
The router and the Ubuntu VPS are able to ping each other.
1 2 3 4 5 6 7
kyson@ip-172-31-34-95:~$ ping 10.241.143.3 PING 10.241.143.3 (10.241.143.3) 56(84) bytes of data. 64 bytes from 10.241.143.3: icmp_seq=1 ttl=64 time=1143 ms 64 bytes from 10.241.143.3: icmp_seq=2 ttl=64 time=132 ms 64 bytes from 10.241.143.3: icmp_seq=3 ttl=64 time=65.6 ms 64 bytes from 10.241.143.3: icmp_seq=4 ttl=64 time=65.7 ms 64 bytes from 10.241.143.3: icmp_seq=5 ttl=64 time=65.8 ms
1 2 3 4 5 6
root@GL-AR300M:/# ping 10.241.116.0 PING 10.241.116.0 (10.241.116.0): 56 data bytes 64 bytes from 10.241.116.0: seq=0 ttl=64 time=66.097 ms 64 bytes from 10.241.116.0: seq=1 ttl=64 time=66.264 ms 64 bytes from 10.241.116.0: seq=3 ttl=64 time=65.377 ms 64 bytes from 10.241.116.0: seq=4 ttl=64 time=65.222 ms
The Ubuntu VPS can reach router’s LAN if you configure the route.
1 2 3 4 5 6 7
kyson@ip-172-31-34-95:~$ ping 192.168.8.1 PING 192.168.8.1 (192.168.8.1) 56(84) bytes of data. 64 bytes from 192.168.8.1: icmp_seq=1 ttl=64 time=65.7 ms 64 bytes from 192.168.8.1: icmp_seq=2 ttl=64 time=66.0 ms 64 bytes from 192.168.8.1: icmp_seq=3 ttl=64 time=65.6 ms 64 bytes from 192.168.8.1: icmp_seq=4 ttl=64 time=65.8 ms 64 bytes from 192.168.8.1: icmp_seq=6 ttl=64 time=65.2 ms
If everthing is fine, but you can’t reach the router from Ubuntu VPS. It usually caused by mwan3, you can try to stop and remove it.