zerotier-openwrt icon indicating copy to clipboard operation
zerotier-openwrt copied to clipboard

Doesn't persist allowGlobal, allowDefault network settings

Open sboisson opened this issue 3 years ago • 4 comments

Hello,

The files /var/lib/zerotier-one/networks.d/{network id}.local.conf containing the flags is not persisted across reboot. allowGlobal, allowDefault and allowDNS should be persisted

sboisson avatar Jun 21 '21 22:06 sboisson

@sboisson if you see config it have this entry

# persistent configuration folder (for ZT controller mode)
#option config_path '/etc/zerotier'

You can uncomment line and set the directory that you want (must be created before) to persist your config.

ogarcia avatar Jun 22 '21 07:06 ogarcia

Ok so it bypass the other config keys in /etc/config/zerotier ? I think it would be interesting to have the allowGlobal, allowDefault and allowDNS also configurable as keys per network in /etc/config/zerotier… Wouldn't make it easier to make a LUCi module for it then ?

sboisson avatar Jun 22 '21 10:06 sboisson

Ok so it bypass the other config keys in /etc/config/zerotier ?

No

ogarcia avatar Jun 22 '21 10:06 ogarcia

Ok so it bypass the other config keys in /etc/config/zerotier ? I think it would be interesting to have the allowGlobal, allowDefault and allowDNS also configurable as keys per network in /etc/config/zerotier… Wouldn't make it easier to make a LUCi module for it then ?

If that is no big issue, then it would be useful to have those options in /etc/config/zerotier. As for the LuCI module, I don't know who is in charge of that.

mwarning avatar Jun 22 '21 21:06 mwarning