I’m having a issue that is clearly due to my lack of knowledge.
My situation is as following:
I have a local server running at my house, I’ve setup zerotier on that server so that I can access it outside of my network. I’ve followed a guide on how to setup a full tunnel on zerotier, and that works fine. I can use the ZeroTier app for android, turn it on, and boom I’m in my server even outside.
Now I had the need to make my parents (different home from mine) LG TV reach my home server. As LG does not have a ZeroTier app yet, I was left with 2 options, a double ethernet Pi running zerotier, or a router. I had a old one laying around and tried my luck.
It was a very old router, but I was able to install OpenWRT on it, and then Zerotier.
I disabled WiFi, as I only need a ethernet connection from that router to the TV.
I configured everything, connected my parents router to openwrt router, and then a ethernet cable to the TV. I mapped a bridge from openwrt router LAN1 to LAN2, and the TV got internet just fine. I’ve also setup zerotier, and joined my zerotier network.
I can see the new device, which is the openwrt router added to my devices, authorized it, and it got a ip address and is always connect.
I was then expecting the TV to reach the home server, but it doesn’t.
What am I missing? Is there any extra setup needed?
I think I got it installed properly and it is up and running, as I could see the openwrt router device request to authenticate on my zerotier network.
What I think I might be missing is a option on the /etc/config/zerotier file to perform the same as
zerotier-cli set <networkId> allowDefault=1
On my phone I didn't had to do anything besides check a box that allows to route all traffic via zerotier. Which I believe is the same as the command above.
But on openwrt if I use the zerotier-cli commands, it will reset everytime the router reboots.
What is the equivalent option to place on the config file?
I did check that, but it is only related on how to make an already existing config file, persistant on another location. It does not list all the option I can have inside a config file.
It does have a sample configuration file, but with very basic options there.
At least I couldn't find the option I'm looking for there.
Do a basic configuration with UCI to generate secret and connect to the network. This will generate initial Zerotier-native configuration files.
Do the process on the wiki page under Advanced to move the native files to persistent storage. Also this has UCI not generate any settings on the next startup, it simply launches Zerotier with whatever is configured in the native files.
Use zerotier-cli to change advanced settings such as allowDefault. The changes will be stored in the native files in flash. Thus they will still be in effect on a reboot.
Zerotier's design is that the user does not edit a config file, instead they will command Zerotier's operation using zerotier-cli, and those settings are internally saved to a file in a more or less opaque manner.
The wiki is not clear on this. Although, allowDefault is a common enough option that it should be supported in UCI directly.