It will create a text file in the current directory. It won't modify anything.
Make sure you are root
(set -x; \
zerotier-cli info -j; \
#compdef zerotier-cli | |
#autoload | |
_get_network_ids () | |
{ | |
if [[ "$OSTYPE" == "darwin"* ]]; then | |
COMPREPLY=($(compgen -W "$(ls -1 /Library/Application\ Support/ZeroTier/One/networks.d | cut -c 1-16)" -- ${cur})) | |
else | |
COMPREPLY=($(compgen -W "$(ls -1 /var/lib/zerotier-one/networks.d | cut -c 1-16)" -- ${cur})) |
curl --silent --header "authorization: bearer ${TOKEN}" "https://my.zerotier.com/api/network/${NWID}/member" | jq ".[] | [ .nodeId, .name, .config.ipAssignments[0] ]" | jq -rs ".[] | @csv" |
https://www.zerotier.com/manual.shtml#2_2_3
Use a Raspberry Pi as a bridge into my home LAN. The pi is plugged into a switch, which is plugged into an airport express, which is plugged into a cable modem; Nothing fancy.
This isn't a tutorial. Just some example output from a working setup.
off the top of my head, here's the order I would do it in: