Comments (9)
Sure, that can be done and isn't much work. But keep in mind that writing into the flash might degrade the chip. /var and /tmp are mounted into the RAM.
Wouldn't it be possible to keep all static data in /etc/config/zerotier?
from zerotier-openwrt.
What information need to be stored for the network controller? Is the network controller a suitable task for a openwrt router?
from zerotier-openwrt.
I think the router can handle it. Having your own controller (currently only configurable via API using Json requests) has the benefit, that you would not need an account at zerotier.com. You would only use their backend as a kind of phonebook like DNS. All members of your network (you host via the controller) will use the information from the controller to connect or use the controller as router (and not zerotier central). - So result will be higher speeds and lower latency.
This is nearly the same as they offer with their device they sell but without the wunderful graphical interface. Think about it as having my.zerotier.com on your router but only configurable via json requests against the API authenticated by your API-secret (also lying arround in the config dir).
Let me take a look into the controller stuff when I have time and give more feedback.
The most important directory is
/<configdir>/controller.d/
afaik.
Documentation can be found here:
https://github.com/zerotier/ZeroTierOne/tree/master/controller
Hint:
When following the documentation when they talk about POST to /controller/network/##########______ you have to fill in the clientID of the router for the # and at the end 6 x _
.
Then a network is created in the format
All future request then have to use the network ID that has been created.
And this is then stored in the controller configuration which we need reboot resistent.
from zerotier-openwrt.
>Wouldn't it be possible to keep all static data in /etc/config/zerotier?
This might be possible if we could re-create the ZeroTier working folder with all necessary files containing the secrets and configuration (also for the controller) from config file. But afaik now they are not all just text files some are small databases I think.
Of course this would be better for keeping the router alive for a long time not degrading the chip.
from zerotier-openwrt.
I have implemented a few changes to make the configuration path configurable: d82d879
If it works, we can submit it to https://github.com/openwrt/packages/.
from zerotier-openwrt.
Changes look good, could not test, yet. We should keep in mind, when someone has changed the configuration folder also zerotier-cli needs the path as parameter.
-D<path> - ZeroTier home path for parameter auto-detect
I am not that familiar with LEDE. If it would be possible, when a custom path is used to automatically alias zerotier-cli as
zerotier-clie -D`, that would be great!
from zerotier-openwrt.
That is why I make a symbolic link from the /var/lib/zerotier-one to the custom path. Works for me.
from zerotier-openwrt.
I can confirm the init script works as expected after adding
option config_path '<custom configuration path>'
to /etc/config/zerotier
Thanks for that one!
from zerotier-openwrt.
option config_path '/etc/zerotier'
Error if folder dont exist
from zerotier-openwrt.
Related Issues (20)
- not found ztXXXXXXXX interface HOT 9
- 更新
- Zeronsd - compile and add to feed in openwrt HOT 4
- 版本太旧了,请更新到最新版本的zerotier HOT 1
- Very high memory and CPU usage HOT 2
- Backport 1.10.1 to OpenWRT 22.03 HOT 6
- Unable to view apple airport express and apple timecapsule device over zerotier HOT 1
- ARM build missing libstdc++10 dependency HOT 1
- Can I run this, going to my normal full tunnel exit point HOT 1
- How can I running zerotier without NAT mode? HOT 5
- cannot access devices on LAN after follow thru the installation guide. HOT 5
- Please update to the latest version ZeroTier 1.12 +
- Zerotier Multipath not working HOT 9
- Openwrt does not support allocating ipv6 prefixes of ZeroTier "6PLANE" (/80 routable for each device) with a length of 80.
- Use openwrt with zerotier as a gateway
- Please upgrade ZEROTIER to the latest version !!! HOT 1
- openwrt-3.10.14 ,barrier_breaker/14.07/ HOT 1
- Can you support the compilation of this source code? Openwrt-3.10.14 HOT 2
- how to compile latest ZT?? HOT 6
- zerotier-cli shows ‘Segmentation fault’ on version 1.8.6 with arm_cortex-a7-neon and arm_cortex-a15_neon-vfpv4 and ARMv6 HOT 27
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zerotier-openwrt.