-
-
Save wcameronbowen/51ccc909cbad2c3335c5ab8c43e3d5e1 to your computer and use it in GitHub Desktop.
Add zerotier to FreeNAS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env sh | |
NETWORKS="8056c2e21c000001" # Space seperated list of networks to join, default here is the public network Earth | |
VERSION=1.4.6 | |
wget http://pkg.freebsd.org/freebsd:12:x86:64/latest/All/zerotier-${VERSION}.txz -O /tmp/zerotier-${VERSION}.txz | |
pkg add -f /tmp/zerotier-${VERSION}.txz | |
echo 'zerotier_enable="YES"' >> /etc/rc.conf | |
service zerotier start | |
sleep 5 | |
for n in $NETWORKS; do | |
zerotier-cli join ${n} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Typo:
should read