ZeroTier 穿透ZeroNSD Quickstart

Create a ZeroTier Network#

You may do this manually through the ZeroTier Central WebUI,

Create a Network

Install ZeroTier#

ZeroTier must be installed and joined to the network you intend to provide DNS service to. The following should work from the CLI on most platforms. Windows users may download the MSI from the ZeroTier Downloads page. For the remainder of this document, please replace the example network with a network ID your own.af78bf94364e2035

notroot@ubuntu:~$ curl -s https://install.zerotier.com | sudo bash
notroot@ubuntu:~$ sudo zerotier-cli join af78bf94364e2035
notroot@ubuntu:~$ sudo zerotier-cli set af78bf94364e2035 allowDNS=1

Authorize the Nodes#

Authorize the node to the network by clicking the "Auth" button in the section in the ZeroTier Central WebUI.Members

Authorize the Member

Provision an API Token from ZeroTier Central#

Before we begin, we will need to log into my.zerotier.com and create an API token under the Account section. ZeroNSD will use this token to read Network members so it can generate records, as well as update DNS settings.

You will need to stash this in a file for ZeroNSD to read.

sudo bash -c "echo ZEROTIER_CENTRAL_TOKEN > /var/lib/zerotier-one/token"
sudo chown zerotier-one:zerotier-one /var/lib/zerotier-one/token
sudo chmod 600 /var/lib/zerotier-one/token
posted @ 2021-07-28 14:28  我的五年  阅读(259)  评论(0)    收藏  举报