之前用 zerotier 打洞效果不太好,自建 moon 又很麻烦,就通过这个帖子 https://www.v2ex.com/t/750092 找到了 Tailscale,几番测试下来发现,Tailscale 不支持自己部署 中转服务。
官方分享的 Relay 是用于直接访问中继节点后的设备。最简单的应用就是 openwrt 的部署:
# 当前项目已经合并到 openwrt 官方
https://github.com/adyanth/openwrt-tailscale-enabler.git
- 服务中转流量站服务 DERP Server 查看,用下面参数
# 查看当前连接状态
tailscale status
1 2 3 4 5
100.1.2.3 device-a apenwarr@ linux active; direct <ip-port>, tx 1116 rx 1124
100.4.5.6 device-b crawshaw@ macOS active; relay <relay-server>, tx 1351 rx 4262
100.7.8.9 device-c danderson@ windows idle; tx 1214 rx 50
100.0.1.2 device-d ross@ iOS —
# 查看官方中继节点,就下面 5 个
tailscale netcheck
Report:
* UDP: true
* IPv4: yes, <ip-address>
* IPv6: no
* MappingVariesByDestIP: false
* HairPinning: false
* PortMapping: false
* Nearest DERP: 1 (nyc)
* DERP latency:
- 1, nyc = 43.6ms
- 2, sfo = 67.4ms
- 3, sin = 202.5ms
- 4, fra = 91.9ms
- 5, syd = 218.5ms
- 官方对应自建中继服务器 DERP Server 的进度:
https://github.com/tailscale/tailscale/issues/1264
大概意思就是,我们会做,啥时候有就不知道了。