Minor Bug in Zerotier Configuration Script - Missing Single Quote

Here’s the part of the script that caused the issue:
https://openwrt.org/docs/guide-user/services/vpn/zerotier

uci set firewall.@forwarding[-1].dest='vpn 

The single quote at the end is missing. It should be:

uci set firewall.@forwarding[-1].dest='vpn' 
1 Like

Thanks, corrected.

2 Likes

Hello,

I am afraid the user guide is writen for old type of config.

If you take a look in GitHub - default config and especially in GitHub - migration script he first part of guide looks obsollete (no join= anymore).

There are two config "approaches" pre 1.14 and post 1.14 ... the guide shows the pre 1.14.

Very good guide is here GitHub - mwarning

This is output of uci from the guide:

OpenWrt 23.05.5, r24106-10cc5fcd00
 -----------------------------------------------------
root@ZTRouter:~# uci delete zerotier.sample_config
root@ZTRouter:~# uci add zerotier my_zt_net
cfg01429e
root@ZTRouter:~# uci add_list zerotier.my_zt_net.join=d5XXXXXXXXXX0db1
uci: Invalid argument
root@ZTRouter:~# uci set zerotier.my_zt_net.enabled='1'
uci: Invalid argument
root@ZTRouter:~#

Joining ZT network by hand works perfectly, but it is not persistent:

root@ZTRouter:~# zerotier-cli join d5XXXXXXXXXX1
200 join OK
root@ZTRouter:~# zerotier-cli listnetworks
200 listnetworks <nwid> <name> <mac> <status> <type> <dev> <ZT assigned ips>
200 listnetworks d5XXXXXXXXXX0db1 NetNameHere b2:##:##:##:##:92 OK PRIVATE zXXXXXXXg 192.XXX.XXX.1/24
root@ZTRouter:~#

Updated, but had no chance to test with the new version myself.