[项目初始化]

This commit is contained in:
2026-02-22 23:27:51 +08:00
commit 5afe54e6eb
35 changed files with 536 additions and 0 deletions

38
README.md Normal file
View File

@@ -0,0 +1,38 @@
# ZeroTier AIO 自建 Moon + Controller + ztncui中文版
## 目录说明
/opt/zerotier-aio/
├── docker-compose.yml 配置文件
├── etc ztncui 数据库、配置
├── zerotier-one ZeroTier 数据身份、Moon、网络
├── zerotier-aio-zh.tar 离线镜像包
└── zt-mkworld planet 生成目录(暂未使用)
## 快速部署
1. 上传 zerotier-aio-zh.tar 到 /opt/zerotier-aio/
2. chmod +x deploy-zerotier-aio.sh
3. sudo ./deploy-zerotier-aio.sh
4. 阿里云安全组放行9993/udp、3000/tcp、3443/tcp
## 备份与迁移
备份:
tar -czf zerotier-aio-$(date +%Y%m%d).tar.gz /opt/zerotier-aio
新服务器恢复:
1. 解压到 /opt/zerotier-aio
2. 修改 docker-compose.yml 中的 MYADDR 为新公网 IP
3. 如果 Moon IP 变了,需要重新生成 Moon删除 zerotier-one/moons.d 后重新运行脚本)
4. docker load -i zerotier-aio-zh.tar
5. docker compose up -d
## 客户端加入
1. 手动放置 Moon 文件 或 执行:
zerotier-cli orbit <MoonID> <MoonID>
2. zerotier-cli join <网络ID>
3. Web 面板授权成员
4. set <网络ID> allowManaged=1
## 注意事项
- 密码admin123首次登录立即修改
- HTTP 端口3000已禁用 HTTPS
- Moon 文件为二进制,不要用文本编辑器打开

116
deploy-zerotier-aio.sh Normal file
View File

@@ -0,0 +1,116 @@
#!/bin/bash
set -e
echo "======================================"
echo " ZeroTier AIO 离线快速部署脚本 v2"
echo " 支持备份恢复 / 新服务器迁移"
echo "======================================"
[ "$EUID" -ne 0 ] && { echo "请用 root 执行"; exit 1; }
# 安装依赖
command -v docker &>/dev/null || {
apt update -y
apt install -y docker.io docker-compose-plugin curl
systemctl enable --now docker
}
# 检查 TUN
modprobe tun 2>/dev/null || true
[ -c /dev/net/tun ] || { echo "TUN 不可用"; exit 1; }
# 获取公网 IP
PUBLIC_IP=$(curl -s http://100.100.100.200/latest/meta-data/eipv4 || true)
[ -z "$PUBLIC_IP" ] && PUBLIC_IP=$(ip -4 addr show eth0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | head -n1)
[ -z "$PUBLIC_IP" ] && read -p "无法自动获取公网IP请手动输入: " PUBLIC_IP
echo "公网 IP: $PUBLIC_IP"
INSTALL_DIR="/opt/zerotier-aio"
mkdir -p "$INSTALL_DIR"
cd "$INSTALL_DIR"
# 如果有备份包,优先恢复
if ls zerotier-aio-backup*.tar.gz 1>/dev/null 2>&1; then
echo "检测到备份包,正在恢复..."
tar -xzf zerotier-aio-backup*.tar.gz -C /opt
elif ls zerotier-aio-essential*.tar.gz 1>/dev/null 2>&1; then
tar -xzf zerotier-aio-essential*.tar.gz -C /opt
fi
# 加载镜像(如果 tar 存在)
[ -f zerotier-aio-zh.tar ] && {
echo "加载本地镜像..."
docker load -i zerotier-aio-zh.tar
}
# 生成或使用 docker-compose.yml
cat > docker-compose.yml <<EOF
services:
zerotier-aio:
image: niliaerith/zerotier-aio-zh:latest
container_name: zerotier-aio
restart: unless-stopped
cap_add: [ALL]
devices: [/dev/net/tun]
network_mode: host
volumes:
- ./etc:/opt/key-networks/ztncui/etc
- ./zerotier-one:/var/lib/zerotier-one
- ./zt-mkworld:/etc/zt-mkworld
environment:
- TZ=Asia/Shanghai
- AUTOGEN_PLANET=0
- NODE_ENV=production
- HTTP_PORT=3000
- HTTP_ALL_INTERFACES=yes
- ZTNCUI_PASSWD=admin123
- MYADDR=$PUBLIC_IP
privileged: true
EOF
# 启动
docker compose up -d
sleep 15
# 检查 Moon如果 moons.d 为空则生成)
MOONS_DIR="./zerotier-one/moons.d"
if [ ! -d "$MOONS_DIR" ] || [ -z "$(ls -A "$MOONS_DIR")" ]; then
echo "生成 Moon..."
docker exec zerotier-aio zerotier-idtool initmoon /var/lib/zerotier-one/identity.public > /tmp/moon.json
sed -i "s|\"stableEndpoints\": \[\]|\"stableEndpoints\": [\"$PUBLIC_IP/9993\"]|" /tmp/moon.json
docker exec zerotier-aio bash -c "cd /tmp && zerotier-idtool genmoon moon.json"
MOON_FILE=$(docker exec zerotier-aio find /tmp -name "*.moon" | head -n1)
mkdir -p "$MOONS_DIR"
docker cp "zerotier-aio:$MOON_FILE" "$MOONS_DIR/"
MOON_ID=$(basename "$MOON_FILE" .moon)
docker restart zerotier-aio
else
MOON_ID=$(ls "$MOONS_DIR"/*.moon | head -n1 | xargs basename | cut -d. -f1)
fi
# 防火墙ufw
command -v ufw &>/dev/null && {
ufw allow 9993/udp 3000/tcp 3443/tcp
ufw reload || true
}
cat <<EOF
======================================
部署完成!
======================================
Moon ID: $MOON_ID
Orbit 命令: sudo zerotier-cli orbit $MOON_ID $MOON_ID
Web 界面: http://$PUBLIC_IP:3000
用户: admin 密码: admin123 (立即修改!)
安全组需放行: 9993/udp 3000/tcp 3443/tcp
备份建议: tar -czf zerotier-aio-backup-$(date +%Y%m%d).tar.gz /opt/zerotier-aio
调试: docker logs zerotier-aio
docker exec -it zerotier-aio bash
======================================
EOF

26
docker-compose.yml Normal file
View File

@@ -0,0 +1,26 @@
services:
zerotier-aio:
image: niliaerith/zerotier-aio-zh:latest
container_name: zerotier-aio
hostname: zerotier-aio
restart: unless-stopped
cap_add:
- ALL
devices:
- /dev/net/tun
network_mode: host
volumes:
- ./etc:/opt/key-networks/ztncui/etc
- ./zerotier-one:/var/lib/zerotier-one
- ./zt-mkworld:/etc/zt-mkworld
environment:
- TZ=Asia/Shanghai
- AUTOGEN_PLANET=0
- NODE_ENV=production
#- HTTPS_HOST=0.0.0.0 # 改成 0.0.0.0(所有接口),或直接删除这一行
#- HTTPS_PORT=3443
- HTTP_PORT=3443
- HTTP_ALL_INTERFACES=yes
- ZTNCUI_PASSWD=admin123
- MYADDR=8.134.34.112 # 保留这个,用于生成链接/证书等,但不用于绑定
privileged: true

13
etc/httpfs/ca.pem Normal file
View File

@@ -0,0 +1,13 @@
-----BEGIN CERTIFICATE-----
MIIB7zCCAXagAwIBAgIIOSQ2VdXL5KEwCgYIKoZIzj0EAwMwIDEeMBwGA1UEAxMV
bWluaWNhIHJvb3QgY2EgMzkyNDM2MCAXDTI2MDIyMjEyNDMzM1oYDzIxMjYwMjIy
MTI0MzMzWjAgMR4wHAYDVQQDExVtaW5pY2Egcm9vdCBjYSAzOTI0MzYwdjAQBgcq
hkjOPQIBBgUrgQQAIgNiAASzipMsAxFBCR5Zqw0NSCPtaOLA0Uy0ZpwLIgUOfIu7
mAur6ChkwG0llTu+pEKRO5mhaFr6a2YHdDl100uyCZfIIBMsbdaZK3aP89HffliT
91zlv1eWQzU3TCTuCSj9yTGjezB5MA4GA1UdDwEB/wQEAwIChDATBgNVHSUEDDAK
BggrBgEFBQcDATASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBQRN0wwLFYm
5zBVlkZx9b1WvMptkzAfBgNVHSMEGDAWgBQRN0wwLFYm5zBVlkZx9b1WvMptkzAK
BggqhkjOPQQDAwNnADBkAjBBOR0qR5gg6cvW7e84Du9+J+YYqbor8b/dsVJtUQrH
UKU88sHlaJcnbz8opMnFUwMCMC6tRFyyMuRpKSTff6JsxLKeeKiiY82Qo6M7mOsv
QFZOrXRf2QPJVLSgVSkczSWCdA==
-----END CERTIFICATE-----

1
etc/passwd Normal file
View File

@@ -0,0 +1 @@
{"admin":{"name":"admin","pass_set":true,"hash":"$argon2i$v=19$m=4096,t=3,p=1$b4+TLlexBIRSPOs8PuJ7Eg$po9Xk/ubSA9SSUZQlMYAJYszD/ZA/S/lucTaAXYnx4w"}}

View File

@@ -0,0 +1 @@
{"key":"71535d9478","value":"wuhan-home-pc"}

View File

@@ -0,0 +1 @@
{"key":"bc4ced1437","value":"极空间"}

View File

@@ -0,0 +1 @@
{"key":"2c68614962","value":"lenovo-notebook"}

26
etc/tls/fullchain.pem Normal file
View File

@@ -0,0 +1,26 @@
-----BEGIN CERTIFICATE-----
MIIB5jCCAWugAwIBAgIIZL4bh+PECIIwCgYIKoZIzj0EAwMwIDEeMBwGA1UEAxMV
bWluaWNhIHJvb3QgY2EgMzkyNDM2MB4XDTI2MDIyMjEyNDMzM1oXDTI4MDMyMzEy
NDMzM1owHTEbMBkGA1UEAxMSenRuY3VpLmRvY2tlci50ZXN0MHYwEAYHKoZIzj0C
AQYFK4EEACIDYgAEHz9e9qEpa4Dtq39eRlO6NWZ7qEKNvg7JSSs83U9NuLah4blA
02KW95L39ueRFmWwEXFaIoqoNonulncjT2gwYPZsBh3VJmOuV/12/YrCuB3p+QfM
WY2b9xb4OgSkHj1jo3UwczAOBgNVHQ8BAf8EBAMCBaAwEwYDVR0lBAwwCgYIKwYB
BQUHAwEwDAYDVR0TAQH/BAIwADAfBgNVHSMEGDAWgBQRN0wwLFYm5zBVlkZx9b1W
vMptkzAdBgNVHREEFjAUghJ6dG5jdWkuZG9ja2VyLnRlc3QwCgYIKoZIzj0EAwMD
aQAwZgIxAKFPlQt0jp4aYrfdPKKFdm0jVizh8VXGoS/Y3sHpPtx6vAf2gmYBQCOc
5NGRQ2xatQIxAJlWgHPu7NsBuMVT06UDmk4E+RPZ9iwfwZ/oV7AgTZIbpUkf99V2
NnQl1C+Wq93Cug==
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
MIIB7zCCAXagAwIBAgIIOSQ2VdXL5KEwCgYIKoZIzj0EAwMwIDEeMBwGA1UEAxMV
bWluaWNhIHJvb3QgY2EgMzkyNDM2MCAXDTI2MDIyMjEyNDMzM1oYDzIxMjYwMjIy
MTI0MzMzWjAgMR4wHAYDVQQDExVtaW5pY2Egcm9vdCBjYSAzOTI0MzYwdjAQBgcq
hkjOPQIBBgUrgQQAIgNiAASzipMsAxFBCR5Zqw0NSCPtaOLA0Uy0ZpwLIgUOfIu7
mAur6ChkwG0llTu+pEKRO5mhaFr6a2YHdDl100uyCZfIIBMsbdaZK3aP89HffliT
91zlv1eWQzU3TCTuCSj9yTGjezB5MA4GA1UdDwEB/wQEAwIChDATBgNVHSUEDDAK
BggrBgEFBQcDATASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBQRN0wwLFYm
5zBVlkZx9b1WvMptkzAfBgNVHSMEGDAWgBQRN0wwLFYm5zBVlkZx9b1WvMptkzAK
BggqhkjOPQQDAwNnADBkAjBBOR0qR5gg6cvW7e84Du9+J+YYqbor8b/dsVJtUQrH
UKU88sHlaJcnbz8opMnFUwMCMC6tRFyyMuRpKSTff6JsxLKeeKiiY82Qo6M7mOsv
QFZOrXRf2QPJVLSgVSkczSWCdA==
-----END CERTIFICATE-----

6
etc/tls/minica-key.pem Normal file
View File

@@ -0,0 +1,6 @@
-----BEGIN PRIVATE KEY-----
MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDBeqx69wwk3vh1XA1PO
84pu5qgyn5yQzhzqhAoKfQGx8Kr8H0mGaUCHvjnBvadWacqhZANiAASzipMsAxFB
CR5Zqw0NSCPtaOLA0Uy0ZpwLIgUOfIu7mAur6ChkwG0llTu+pEKRO5mhaFr6a2YH
dDl100uyCZfIIBMsbdaZK3aP89HffliT91zlv1eWQzU3TCTuCSj9yTE=
-----END PRIVATE KEY-----

13
etc/tls/minica.pem Normal file
View File

@@ -0,0 +1,13 @@
-----BEGIN CERTIFICATE-----
MIIB7zCCAXagAwIBAgIIOSQ2VdXL5KEwCgYIKoZIzj0EAwMwIDEeMBwGA1UEAxMV
bWluaWNhIHJvb3QgY2EgMzkyNDM2MCAXDTI2MDIyMjEyNDMzM1oYDzIxMjYwMjIy
MTI0MzMzWjAgMR4wHAYDVQQDExVtaW5pY2Egcm9vdCBjYSAzOTI0MzYwdjAQBgcq
hkjOPQIBBgUrgQQAIgNiAASzipMsAxFBCR5Zqw0NSCPtaOLA0Uy0ZpwLIgUOfIu7
mAur6ChkwG0llTu+pEKRO5mhaFr6a2YHdDl100uyCZfIIBMsbdaZK3aP89HffliT
91zlv1eWQzU3TCTuCSj9yTGjezB5MA4GA1UdDwEB/wQEAwIChDATBgNVHSUEDDAK
BggrBgEFBQcDATASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBQRN0wwLFYm
5zBVlkZx9b1WvMptkzAfBgNVHSMEGDAWgBQRN0wwLFYm5zBVlkZx9b1WvMptkzAK
BggqhkjOPQQDAwNnADBkAjBBOR0qR5gg6cvW7e84Du9+J+YYqbor8b/dsVJtUQrH
UKU88sHlaJcnbz8opMnFUwMCMC6tRFyyMuRpKSTff6JsxLKeeKiiY82Qo6M7mOsv
QFZOrXRf2QPJVLSgVSkczSWCdA==
-----END CERTIFICATE-----

6
etc/tls/privkey.pem Normal file
View File

@@ -0,0 +1,6 @@
-----BEGIN PRIVATE KEY-----
MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDA1mbyYcMFUMqWQjbzn
nOMDrsphfSlAhqpFOPj2zqwOpLrtxG1Gp6NsBwBATMtq8zihZANiAAQfP172oSlr
gO2rf15GU7o1ZnuoQo2+DslJKzzdT024tqHhuUDTYpb3kvf255EWZbARcVoiiqg2
ie6WdyNPaDBg9mwGHdUmY65X/Xb9isK4Hen5B8xZjZv3Fvg6BKQePWM=
-----END PRIVATE KEY-----

View File

@@ -0,0 +1,13 @@
-----BEGIN CERTIFICATE-----
MIIB5jCCAWugAwIBAgIIZL4bh+PECIIwCgYIKoZIzj0EAwMwIDEeMBwGA1UEAxMV
bWluaWNhIHJvb3QgY2EgMzkyNDM2MB4XDTI2MDIyMjEyNDMzM1oXDTI4MDMyMzEy
NDMzM1owHTEbMBkGA1UEAxMSenRuY3VpLmRvY2tlci50ZXN0MHYwEAYHKoZIzj0C
AQYFK4EEACIDYgAEHz9e9qEpa4Dtq39eRlO6NWZ7qEKNvg7JSSs83U9NuLah4blA
02KW95L39ueRFmWwEXFaIoqoNonulncjT2gwYPZsBh3VJmOuV/12/YrCuB3p+QfM
WY2b9xb4OgSkHj1jo3UwczAOBgNVHQ8BAf8EBAMCBaAwEwYDVR0lBAwwCgYIKwYB
BQUHAwEwDAYDVR0TAQH/BAIwADAfBgNVHSMEGDAWgBQRN0wwLFYm5zBVlkZx9b1W
vMptkzAdBgNVHREEFjAUghJ6dG5jdWkuZG9ja2VyLnRlc3QwCgYIKoZIzj0EAwMD
aQAwZgIxAKFPlQt0jp4aYrfdPKKFdm0jVizh8VXGoS/Y3sHpPtx6vAf2gmYBQCOc
5NGRQ2xatQIxAJlWgHPu7NsBuMVT06UDmk4E+RPZ9iwfwZ/oV7AgTZIbpUkf99V2
NnQl1C+Wq93Cug==
-----END CERTIFICATE-----

View File

@@ -0,0 +1,6 @@
-----BEGIN PRIVATE KEY-----
MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDA1mbyYcMFUMqWQjbzn
nOMDrsphfSlAhqpFOPj2zqwOpLrtxG1Gp6NsBwBATMtq8zihZANiAAQfP172oSlr
gO2rf15GU7o1ZnuoQo2+DslJKzzdT024tqHhuUDTYpb3kvf255EWZbARcVoiiqg2
ie6WdyNPaDBg9mwGHdUmY65X/Xb9isK4Hen5B8xZjZv3Fvg6BKQePWM=
-----END PRIVATE KEY-----

BIN
zerotier-aio-zh.tar Normal file

Binary file not shown.

View File

@@ -0,0 +1 @@
cqjbp9j8kn1yun6bpg7lptmm

View File

@@ -0,0 +1 @@
{"authTokens":[null],"authorizationEndpoint":"","capabilities":[],"clientId":"","creationTime":1771766216433,"dns":[],"enableBroadcast":true,"id":"d4aac1a92cd88515","ipAssignmentPools":[{"ipRangeEnd":"10.1.0.254","ipRangeStart":"10.1.0.1"}],"mtu":2800,"multicastLimit":32,"name":"wang","nwid":"d4aac1a92cd88515","objtype":"network","private":true,"remoteTraceLevel":0,"remoteTraceTarget":null,"revision":3,"routes":[{"target":"10.1.0.0/24","via":null}],"rules":[{"not":false,"or":false,"type":"ACTION_ACCEPT"}],"rulesSource":"","ssoEnabled":false,"tags":[],"v4AssignMode":{"zt":true},"v6AssignMode":{"6plane":false,"rfc4193":false,"zt":true}}

View File

@@ -0,0 +1 @@
{"activeBridge":false,"address":"2c68614962","authenticationExpiryTime":0,"authorized":true,"capabilities":[],"creationTime":1771771468533,"id":"2c68614962","identity":"2c68614962:0:dde8c3b8e85ed59a98b0cd54491584d3367f4d67aa4d5b1f534b6efd80652c70195dca198072044d2f735b71fc90fd7a3095cbe8c73368b7784569fa96e186e7","ipAssignments":["10.1.0.204"],"lastAuthorizedCredential":null,"lastAuthorizedCredentialType":"api","lastAuthorizedTime":1771771521857,"lastDeauthorizedTime":0,"noAutoAssignIps":false,"nwid":"d4aac1a92cd88515","objtype":"member","remoteTraceLevel":0,"remoteTraceTarget":null,"revision":3,"ssoExempt":false,"tags":[],"vMajor":1,"vMinor":14,"vProto":12,"vRev":2}

View File

@@ -0,0 +1 @@
{"activeBridge":false,"address":"71535d9478","authenticationExpiryTime":0,"authorized":true,"capabilities":[],"creationTime":1771770459755,"id":"71535d9478","identity":"71535d9478:0:e48dff9cf78604fa43065dce89813b1b55efc2164e0376cbb0f2ea27b2b8e2228eded5f4fa1d765a8d800fbb1efed5460b8047177dcbff7f82520cf8d6e8ea26","ipAssignments":["10.1.0.101"],"lastAuthorizedCredential":null,"lastAuthorizedCredentialType":"api","lastAuthorizedTime":1771770501040,"lastDeauthorizedTime":0,"noAutoAssignIps":false,"nwid":"d4aac1a92cd88515","objtype":"member","remoteTraceLevel":0,"remoteTraceTarget":null,"revision":3,"ssoExempt":false,"tags":[],"vMajor":1,"vMinor":14,"vProto":12,"vRev":2}

View File

@@ -0,0 +1 @@
{"activeBridge":false,"address":"bc4ced1437","authenticationExpiryTime":0,"authorized":true,"capabilities":[],"creationTime":1771770860431,"id":"bc4ced1437","identity":"bc4ced1437:0:1b7512f8dd2def7711fa0dbe4d710d3ef267b0a5e8f2a7ab00a34b31533fdc1cd78322695f5e6b90d996f792d1c78e26a83fbfb57b690e4556d837c552789f3e","ipAssignments":["10.1.0.253","10.1.0.1"],"lastAuthorizedCredential":null,"lastAuthorizedCredentialType":"api","lastAuthorizedTime":1771770875115,"lastDeauthorizedTime":0,"noAutoAssignIps":false,"nwid":"d4aac1a92cd88515","objtype":"member","remoteTraceLevel":0,"remoteTraceTarget":null,"revision":6,"ssoExempt":false,"tags":[],"vMajor":1,"vMinor":14,"vProto":12,"vRev":2}

View File

@@ -0,0 +1 @@
d4aac1a92c:0:622e937b421362d1d600c165f868a936deb10dade9690b619289cfdca0dfcc187848b104987a21b63c2950511cdd2c02758c70f7f85e5fcd862e77a78033c137

View File

@@ -0,0 +1 @@
d4aac1a92c:0:622e937b421362d1d600c165f868a936deb10dade9690b619289cfdca0dfcc187848b104987a21b63c2950511cdd2c02758c70f7f85e5fcd862e77a78033c137:1d7c75adef49c7146ae4ad55ea40add3e8ed3bad3667748d1c25bf7229f83bc38fd2bbd45cb054045a71ba4520032b6c7219f6960390342d93ca9ff6d06cfb1e

259
zerotier-one/metrics.prom Normal file
View File

@@ -0,0 +1,259 @@
# HELP zt_packet ZeroTier packet type counts
# TYPE zt_packet counter
zt_packet{direction="tx",packet_type="path_negotiation_request"} 0
zt_packet{direction="tx",packet_type="user_message"} 0
zt_packet{direction="tx",packet_type="push_direct_paths"} 0
zt_packet{direction="tx",packet_type="multicast_gather"} 0
zt_packet{direction="tx",packet_type="network_config"} 6
zt_packet{direction="tx",packet_type="remote_trace"} 0
zt_packet{direction="tx",packet_type="network_config_request"} 0
zt_packet{direction="tx",packet_type="multicast_frame"} 0
zt_packet{direction="tx",packet_type="multicast_like"} 0
zt_packet{direction="tx",packet_type="echo"} 0
zt_packet{direction="tx",packet_type="frame"} 0
zt_packet{direction="tx",packet_type="error"} 24
zt_packet{direction="rx",packet_type="user_message"} 0
zt_packet{direction="tx",packet_type="nop"} 0
zt_packet{direction="tx",packet_type="hello"} 400
zt_packet{direction="tx",packet_type="ok"} 2139
zt_packet{direction="rx",packet_type="multicast_gather"} 570
zt_packet{direction="rx",packet_type="echo"} 0
zt_packet{direction="rx",packet_type="frame"} 0
zt_packet{direction="rx",packet_type="multicast_like"} 148
zt_packet{direction="rx",packet_type="whois"} 1472
zt_packet{direction="rx",packet_type="hello"} 566
zt_packet{direction="rx",packet_type="error"} 0
zt_packet{direction="rx",packet_type="network_config"} 0
zt_packet{direction="rx",packet_type="rendezvous"} 0
zt_packet{direction="rx",packet_type="qos"} 0
zt_packet{direction="rx",packet_type="ext_frame"} 0
zt_packet{direction="rx",packet_type="network_credentials"} 0
zt_packet{direction="tx",packet_type="ack"} 0
zt_packet{direction="rx",packet_type="ack"} 0
zt_packet{direction="rx",packet_type="nop"} 0
zt_packet{direction="rx",packet_type="network_config_request"} 138
zt_packet{direction="rx",packet_type="path_negotiation_request"} 0
zt_packet{direction="rx",packet_type="multicast_frame"} 0
zt_packet{direction="rx",packet_type="push_direct_paths"} 0
zt_packet{direction="tx",packet_type="network_credentials"} 0
zt_packet{direction="rx",packet_type="remote_trace"} 0
zt_packet{direction="tx",packet_type="ext_frame"} 0
zt_packet{direction="rx",packet_type="ok"} 258
zt_packet{direction="tx",packet_type="qos"} 0
zt_packet{direction="tx",packet_type="rendezvous"} 742
zt_packet{direction="tx",packet_type="whois"} 5385
# HELP zt_packet_error ZeroTier packet errors
# TYPE zt_packet_error counter
zt_packet_error{direction="tx",error_type="internal_server_error"} 0
zt_packet_error{direction="tx",error_type="authentication_required"} 0
zt_packet_error{direction="rx",error_type="unsupported_operation"} 0
zt_packet_error{direction="rx",error_type="unwanted_multicast"} 0
zt_packet_error{direction="rx",error_type="need_membership_certificate"} 0
zt_packet_error{direction="tx",error_type="unwanted_multicast"} 0
zt_packet_error{direction="rx",error_type="identity_collision"} 0
zt_packet_error{direction="rx",error_type="authentication_required"} 0
zt_packet_error{direction="rx",error_type="obj_not_found"} 0
zt_packet_error{direction="rx",error_type="network_access_denied"} 0
zt_packet_error{direction="tx",error_type="identity_collision"} 0
zt_packet_error{direction="rx",error_type="internal_server_error"} 0
zt_packet_error{direction="tx",error_type="obj_not_found"} 0
zt_packet_error{direction="tx",error_type="unsupported_operation"} 0
zt_packet_error{direction="tx",error_type="need_membership_certificate"} 0
zt_packet_error{direction="tx",error_type="network_access_denied"} 24
# HELP zt_data number of bytes ZeroTier has transmitted or received
# TYPE zt_data counter
zt_data{direction="rx",protocol="tcp"} 0
zt_data{direction="tx",protocol="tcp"} 0
zt_data{direction="tx",protocol="udp"} 1158712
zt_data{direction="rx",protocol="udp"} 533290
# HELP zt_num_networks number of networks this instance is joined to
# TYPE zt_num_networks gauge
zt_num_networks 0
# HELP zt_peer_latency peer latency (ms)
# TYPE zt_peer_latency histogram
zt_peer_latency_count{node_id="2c68614962"} 375
zt_peer_latency_sum{node_id="2c68614962"} 8951
zt_peer_latency_bucket{node_id="2c68614962",le="1"} 0
zt_peer_latency_bucket{node_id="2c68614962",le="3"} 0
zt_peer_latency_bucket{node_id="2c68614962",le="6"} 0
zt_peer_latency_bucket{node_id="2c68614962",le="10"} 0
zt_peer_latency_bucket{node_id="2c68614962",le="30"} 350
zt_peer_latency_bucket{node_id="2c68614962",le="60"} 375
zt_peer_latency_bucket{node_id="2c68614962",le="100"} 375
zt_peer_latency_bucket{node_id="2c68614962",le="300"} 375
zt_peer_latency_bucket{node_id="2c68614962",le="600"} 375
zt_peer_latency_bucket{node_id="2c68614962",le="1000"} 375
zt_peer_latency_bucket{node_id="2c68614962",le="+Inf"} 375
zt_peer_latency_count{node_id="bc4ced1437"} 497
zt_peer_latency_sum{node_id="bc4ced1437"} 10030
zt_peer_latency_bucket{node_id="bc4ced1437",le="1"} 0
zt_peer_latency_bucket{node_id="bc4ced1437",le="3"} 0
zt_peer_latency_bucket{node_id="bc4ced1437",le="6"} 0
zt_peer_latency_bucket{node_id="bc4ced1437",le="10"} 0
zt_peer_latency_bucket{node_id="bc4ced1437",le="30"} 497
zt_peer_latency_bucket{node_id="bc4ced1437",le="60"} 497
zt_peer_latency_bucket{node_id="bc4ced1437",le="100"} 497
zt_peer_latency_bucket{node_id="bc4ced1437",le="300"} 497
zt_peer_latency_bucket{node_id="bc4ced1437",le="600"} 497
zt_peer_latency_bucket{node_id="bc4ced1437",le="1000"} 497
zt_peer_latency_bucket{node_id="bc4ced1437",le="+Inf"} 497
zt_peer_latency_count{node_id="71535d9478"} 577
zt_peer_latency_sum{node_id="71535d9478"} 10725
zt_peer_latency_bucket{node_id="71535d9478",le="1"} 0
zt_peer_latency_bucket{node_id="71535d9478",le="3"} 0
zt_peer_latency_bucket{node_id="71535d9478",le="6"} 0
zt_peer_latency_bucket{node_id="71535d9478",le="10"} 0
zt_peer_latency_bucket{node_id="71535d9478",le="30"} 577
zt_peer_latency_bucket{node_id="71535d9478",le="60"} 577
zt_peer_latency_bucket{node_id="71535d9478",le="100"} 577
zt_peer_latency_bucket{node_id="71535d9478",le="300"} 577
zt_peer_latency_bucket{node_id="71535d9478",le="600"} 577
zt_peer_latency_bucket{node_id="71535d9478",le="1000"} 577
zt_peer_latency_bucket{node_id="71535d9478",le="+Inf"} 577
zt_peer_latency_count{node_id="cafe04eba9"} 33
zt_peer_latency_sum{node_id="cafe04eba9"} 529277
zt_peer_latency_bucket{node_id="cafe04eba9",le="1"} 0
zt_peer_latency_bucket{node_id="cafe04eba9",le="3"} 0
zt_peer_latency_bucket{node_id="cafe04eba9",le="6"} 0
zt_peer_latency_bucket{node_id="cafe04eba9",le="10"} 0
zt_peer_latency_bucket{node_id="cafe04eba9",le="30"} 0
zt_peer_latency_bucket{node_id="cafe04eba9",le="60"} 0
zt_peer_latency_bucket{node_id="cafe04eba9",le="100"} 0
zt_peer_latency_bucket{node_id="cafe04eba9",le="300"} 25
zt_peer_latency_bucket{node_id="cafe04eba9",le="600"} 25
zt_peer_latency_bucket{node_id="cafe04eba9",le="1000"} 25
zt_peer_latency_bucket{node_id="cafe04eba9",le="+Inf"} 33
zt_peer_latency_count{node_id="cafefd6717"} 31
zt_peer_latency_sum{node_id="cafefd6717"} 137386
zt_peer_latency_bucket{node_id="cafefd6717",le="1"} 0
zt_peer_latency_bucket{node_id="cafefd6717",le="3"} 0
zt_peer_latency_bucket{node_id="cafefd6717",le="6"} 0
zt_peer_latency_bucket{node_id="cafefd6717",le="10"} 0
zt_peer_latency_bucket{node_id="cafefd6717",le="30"} 0
zt_peer_latency_bucket{node_id="cafefd6717",le="60"} 0
zt_peer_latency_bucket{node_id="cafefd6717",le="100"} 0
zt_peer_latency_bucket{node_id="cafefd6717",le="300"} 29
zt_peer_latency_bucket{node_id="cafefd6717",le="600"} 29
zt_peer_latency_bucket{node_id="cafefd6717",le="1000"} 29
zt_peer_latency_bucket{node_id="cafefd6717",le="+Inf"} 31
zt_peer_latency_count{node_id="778cde7190"} 32
zt_peer_latency_sum{node_id="778cde7190"} 333422
zt_peer_latency_bucket{node_id="778cde7190",le="1"} 0
zt_peer_latency_bucket{node_id="778cde7190",le="3"} 0
zt_peer_latency_bucket{node_id="778cde7190",le="6"} 0
zt_peer_latency_bucket{node_id="778cde7190",le="10"} 0
zt_peer_latency_bucket{node_id="778cde7190",le="30"} 0
zt_peer_latency_bucket{node_id="778cde7190",le="60"} 0
zt_peer_latency_bucket{node_id="778cde7190",le="100"} 0
zt_peer_latency_bucket{node_id="778cde7190",le="300"} 27
zt_peer_latency_bucket{node_id="778cde7190",le="600"} 27
zt_peer_latency_bucket{node_id="778cde7190",le="1000"} 27
zt_peer_latency_bucket{node_id="778cde7190",le="+Inf"} 32
zt_peer_latency_count{node_id="cafe80ed74"} 33
zt_peer_latency_sum{node_id="cafe80ed74"} 463012
zt_peer_latency_bucket{node_id="cafe80ed74",le="1"} 0
zt_peer_latency_bucket{node_id="cafe80ed74",le="3"} 0
zt_peer_latency_bucket{node_id="cafe80ed74",le="6"} 0
zt_peer_latency_bucket{node_id="cafe80ed74",le="10"} 0
zt_peer_latency_bucket{node_id="cafe80ed74",le="30"} 0
zt_peer_latency_bucket{node_id="cafe80ed74",le="60"} 0
zt_peer_latency_bucket{node_id="cafe80ed74",le="100"} 0
zt_peer_latency_bucket{node_id="cafe80ed74",le="300"} 26
zt_peer_latency_bucket{node_id="cafe80ed74",le="600"} 26
zt_peer_latency_bucket{node_id="cafe80ed74",le="1000"} 26
zt_peer_latency_bucket{node_id="cafe80ed74",le="+Inf"} 33
# HELP zt_peer_path_count number of paths to peer
# TYPE zt_peer_path_count gauge
zt_peer_path_count{node_id="2c68614962",status="dead"} 0
zt_peer_path_count{node_id="71535d9478",status="dead"} 0
zt_peer_path_count{node_id="778cde7190",status="alive"} 0
zt_peer_path_count{node_id="778cde7190",status="dead"} 1
zt_peer_path_count{node_id="cafe80ed74",status="dead"} 1
zt_peer_path_count{node_id="cafefd6717",status="alive"} 0
zt_peer_path_count{node_id="cafe04eba9",status="dead"} 1
zt_peer_path_count{node_id="cafe80ed74",status="alive"} 0
zt_peer_path_count{node_id="cafefd6717",status="dead"} 1
zt_peer_path_count{node_id="bc4ced1437",status="alive"} 1
zt_peer_path_count{node_id="cafe04eba9",status="alive"} 0
zt_peer_path_count{node_id="bc4ced1437",status="dead"} 0
zt_peer_path_count{node_id="71535d9478",status="alive"} 1
zt_peer_path_count{node_id="2c68614962",status="alive"} 1
# HELP zt_peer_packets number of packets to/from a peer
# TYPE zt_peer_packets counter
zt_peer_packets{direction="tx",node_id="2c68614962"} 106
zt_peer_packets{direction="rx",node_id="cafe80ed74"} 27
zt_peer_packets{direction="tx",node_id="cafe80ed74"} 4631
zt_peer_packets{direction="rx",node_id="778cde7190"} 27
zt_peer_packets{direction="tx",node_id="cafefd6717"} 0
zt_peer_packets{direction="rx",node_id="cafefd6717"} 30
zt_peer_packets{direction="tx",node_id="cafe04eba9"} 562
zt_peer_packets{direction="tx",node_id="778cde7190"} 192
zt_peer_packets{direction="rx",node_id="cafe04eba9"} 26
zt_peer_packets{direction="rx",node_id="71535d9478"} 1266
zt_peer_packets{direction="tx",node_id="71535d9478"} 228
zt_peer_packets{direction="rx",node_id="bc4ced1437"} 1135
zt_peer_packets{direction="tx",node_id="bc4ced1437"} 454
zt_peer_packets{direction="rx",node_id="2c68614962"} 641
# HELP zt_peer_packet_errors number of incoming packet errors from a peer
# TYPE zt_peer_packet_errors counter
zt_peer_packet_errors{node_id="2c68614962"} 0
zt_peer_packet_errors{node_id="bc4ced1437"} 0
zt_peer_packet_errors{node_id="71535d9478"} 0
zt_peer_packet_errors{node_id="cafe04eba9"} 0
zt_peer_packet_errors{node_id="cafefd6717"} 0
zt_peer_packet_errors{node_id="778cde7190"} 0
zt_peer_packet_errors{node_id="cafe80ed74"} 0
# HELP controller_network_count number of networks the controller is serving
# TYPE controller_network_count gauge
controller_network_count 1
# HELP controller_member_count number of network members the controller is serving
# TYPE controller_member_count gauge
controller_member_count 3
# HELP controller_network_change_count number of times a network configuration is changed
# TYPE controller_network_change_count counter
controller_network_change_count 1
# HELP controller_member_change_count number of times a network member configuration is changed
# TYPE controller_member_change_count counter
controller_member_change_count 9
# HELP controller_member_auth_count number of network member auths
# TYPE controller_member_auth_count counter
controller_member_auth_count 12
# HELP controller_member_deauth_count number of network member deauths
# TYPE controller_member_deauth_count counter
controller_member_deauth_count 0
# HELP controller_network_config_request_queue number of entries in the request queue for network configurations
# TYPE controller_network_config_request_queue gauge
controller_network_config_request_queue 0
# HELP controller_sso_expiration_checks number of sso expiration checks done
# TYPE controller_sso_expiration_checks counter
controller_sso_expiration_checks 0
# HELP controller_sso_timeouts number of sso timeouts
# TYPE controller_sso_timeouts counter
controller_sso_timeouts 0
# HELP controller_network_config_request count of config requests handled
# TYPE controller_network_config_request counter
controller_network_config_request 144
# HELP controller_network_config_request_threads number of active network config handling threads
# TYPE controller_network_config_request_threads gauge
controller_network_config_request_threads 2
# HELP controller_db_get_network counter
# TYPE controller_db_get_network counter
controller_db_get_network 220
# HELP controller_db_get_network_and_member counter
# TYPE controller_db_get_network_and_member counter
controller_db_get_network_and_member 220
# HELP controller_db_get_networK_and_member_summary counter
# TYPE controller_db_get_networK_and_member_summary counter
controller_db_get_networK_and_member_summary 144
# HELP controller_db_get_member_list counter
# TYPE controller_db_get_member_list counter
controller_db_get_member_list 94
# HELP controller_db_get_network_list counter
# TYPE controller_db_get_network_list counter
controller_db_get_network_list 10
# HELP controller_db_member_change counter
# TYPE controller_db_member_change counter
controller_db_member_change 12
# HELP controller_db_network_change counter
# TYPE controller_db_network_change counter
controller_db_network_change 2

View File

@@ -0,0 +1 @@
atxbo8ijhqx9pcx1m71d05gg

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
zerotier-one/planet Normal file

Binary file not shown.

View File

@@ -0,0 +1 @@
77

View File

@@ -0,0 +1 @@
9993

View File