热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

ZeroTier穿透ZeroNSDQuickstart

CreateaZeroTierNetwork#Youmaydothismanuallythroughthe ZeroTierCentralWebUI,InstallZeroTier

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



推荐阅读
author-avatar
浪迹天涯沃热尔_441
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有