24 条回复  ·  2675 次点击
Tink 初学 2025-7-28 11:25:41
@FaiChou #5 你所有设备都装了 ts ?一个局域网装一台就可以了啊
FaiChou 楼主 初学 2025-7-28 11:43:13
@Tink #10 设备很多,两端的网段都一样,都是 192.168.3.x ,不想改了,所以没办法用 subnet 那功能。
lnbiuc 小成 2025-7-28 11:47:29
不支持 怀疑是联通对 udp 包的限制
Tink 初学 2025-7-28 11:50:51
@FaiChou #11 建议改了,长痛不如短痛,最有用的功能浪费了
HandSonic 小成 2025-7-28 11:53:28
我这同一个城市,同一个运营商中国电信,Tailscale IPv6 直通,丢包率都能到 20%,运营商限制 UDP 还是限制的太狠了,我用 OpenVPN 走 TCP 隧道就不丢包
kekylin 小成 2025-7-28 12:05:19
我联通公网 IPv6 ,基本上和三大运营商连接都是直连,平时不怎么关注连接质量,刚刚测试了一下,还可以。 100.10.0.1 的 Ping 统计信息: 数据包: 已发送 = 100 ,已接收 = 100 ,丢失 = 0 (0% 丢失), 往返行程的估计时间(以毫秒为单位): 最短 = 12ms ,最长 = 87ms ,平均 = 18ms
sunfly 小成 2025-7-28 12:32:35
@worker201 活捉佬友
gogogo2000 初学 2025-7-28 12:40:16
tailscale 会自动创建 upnp 端口映射的,所以 > 我的想法是,打洞失败,既然能连接 derp 服务器,那就能控制另一端,搞个脚本,让另一台设备主动请求 OpenWrt ( upnp/nat-pmp)开放一个临时端口。然后 tailscale 是否支持这样搞? 人家本来是这样的。 > tailscale 是暴力遍历端口(它们官网有教程),实践下来还是能够打洞成功的。 tailscale 是生日算法,并不是暴力遍历 https://tailscale.com/blog/how-nat-traversal-works "But we can get rid of STUN, the birthday paradox trick, port mapping protocols, and all the hairpinning bumf. That’s much nicer!"
gogogo2000 初学 2025-7-28 12:41:35
Here’s a parting “TL;DR” recap: For robust NAT traversal, you need the following ingredients: A UDP-based protocol to augment Direct access to a socket in your program A communication side channel with your peers A couple of STUN servers A network of fallback relays (optional, but highly recommended) Then, you need to: Enumerate all the ip:ports for your socket on your directly connected interfaces Query STUN servers to discover WAN ip:ports and the “difficulty” of your NAT, if any Try using the port mapping protocols to find more WAN ip:ports Check for NAT64 and discover a WAN ip:port through that as well, if applicable Exchange all those ip:ports with your peer through your side channel, along with some cryptographic keys to secure everything. Begin communicating with your peer through fallback relays (optional, for quick connection establishment) Probe all of your peer’s ip:ports for connectivity and if necessary/desired, also execute birthday attacks to get through harder NATs As you discover connectivity paths that are better than the one you’re currently using, transparently upgrade away from the previous paths. If the active path stops working, downgrade as needed to maintain connectivity. Make sure everything is encrypted and authenticated end-to-end.
guanzhangzhang 初学 2025-7-28 12:45:16
主路由开 upnp 试试,自建 derp 试试
返回顶部