thedunston / bash_cli_zt Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Hello My Name is Pug
When I Create New ZT Network
I Enter Description for the network
Error
ztnetwork.bash: line 45: zerotire-cli:command not found
cat: /var/lib/zerotire-one/authtoken.secret: No such file or directory
Network was not created. Press Enter to finish
Thank in advance
If you don't understand what I'm typing, I'm sorry, I'm not good at English.
Installed on almalinux8. When creating a new network, if asked to autogenerate the ip range, or manually enter the first usable IP and cdir, , we get this:
Would you like to autogenerate an IP range? [Y|n] or Enter to return to main menu: y
Start IP:
End IP:
Network:
Are the above settings okay? [Y|n]y
Error adding the network settings. Press Enter to finish
Disabling selinux made no difference.
Thank in advance!
David
Hi Duane,
I backed up all my /var/lib/zerotier-one folder and moved it to a new container. When I run the bash ztnetworks.bash it doesnt see my old configs and networks. I have made sure that bsdmainutils, jq, curl, ipcalc etc are all loaded as dependencies.
I have tried to change all permissions to zerotier-one and made sure zerotier has a tun port active in the lxc container.
Are there any specific permissions that are needed to get the script to read the controller, peers and moon files that have been restored?
any guidance or thoughts are greatly appreciated.
sorry, i did't find how to doใ
It is possible to create your own planet file, however this requires editing the ZeroTire sources and compiling your own world.bin
file, and later including it in the .deb, .rpm,
... private package of the ZeroTire distribution.
Here are the steps I used to create my own Planets file.
git clone https://github.com/zerotier/ZeroTierOne.git
Go to the world folder at ZeroTierOne/attic/world
cd ZeroTierOne/attic/world
Edit the mkworld.cpp
file. Delete the IP
addresses of the ZeroTier controllers and add your own.
In the file identity.public
Identity for roots.back().identity = Identity...
vi mkworld.cpp
// Alice
roots.push_back(World::Root());
roots.back().identity = Identity("abXXXXXcd:0:04xxxxxxxxxxxxxxxxxxxxxxxxxxxbc");
roots.back().stableEndpoints.push_back(InetAddress("XX.XX.XX.XX/9993")); // Kyiv
Run
source ./build.sh
If ubuntu bash: c++: command not found
apt-get install gcc g++
Run the mkworld file
./mkworld
A new world.bin
file should be created. This will be the file that all your nodes need.
Copy the world.bin
file to the ZeroTier-One folder (works on Linux)
cp world.bin /var/lib/zerotier-one/planet
Checking Peer to
root@zt-moon:/home/ubuntu/ZeroTierOne/attic/world# /sbin/zerotier-cli listpeers
200 listpeers <ztaddr> <path> <latency> <version> <role>
200 listpeers 3feXXX258 192.168.88.27/9993;14100;14099 2 1.4.0 LEAF
200 listpeers 61dXCXXcb 50.7.73.34/9993;3990;3812 178 - PLANET
200 listpeers 62XXXXe71 50.7.252.138/9993;3990;3737 253 - PLANET
200 listpeers 6eXXXX3e 192.168.88.26/21136;7371;7370 0 1.4.0 LEAF
200 listpeers 778XXXX190 103.195.103.66/9993;3990;3853 137 - PLANET
200 listpeers 99XXXXdb7 195.181.173.159/9993;3990;3948 42 - PLANET
200 listpeers d0XXXX4ef 192.168.88.24/21140;9263;9263 -1 1.6.5 LEAF
Restart Zero Tier
systemctl restart zerotier-one.service
Checking Peer After
root@zt-moon:/home/ubuntu/ZeroTierOne/attic/world# /sbin/zerotier-cli listpeers
200 listpeers <ztaddr> <path> <latency> <version> <role>
200 listpeers 3fXXXXXX58 192.168.88.27/34526;27;26 1 1.4.0 LEAF
200 listpeers 6eXXXXXX3e 192.168.88.26/21136;1959;1959 1 1.4.0 LEAF
200 listpeers d0XXXXXXef 192.168.88.24/21141;5077;977 3 1.6.5 LEAF
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.