vinsony
V2EX  ›  问与答

谁知道 tailscale 的 Endpoints 是如何确定的?

  •  
  •   vinsony · Nov 20, 2024 · 1541 views
    This topic created in 566 days ago, the information mentioned may be changed or developed.
    就是在官网上查看设备详情里面,正常来说是本地出口的公网 IP+端口。

    现在的问题是只要路由器上开透明代理,Endpoints 里面公网 IP 就会是外网 VPS 的 IP ,即使配置了 geosite:tailscale 走直连 outbound 也不行。Endpoints 是外网 IP 的时候打洞成功率会直线下降,全部流量从国外绕一圈非常慢。

    盲猜 Endpoints 就是 tailscale 客户端连接服务端后本地的 IP 端口,只是这个连接地址可能不在 geosite:tailscale 里面。

    https://github.com/v2fly/domain-list-community/blob/master/data/tailscale
    tailscale.com
    tailscale.io
    ts.net
    4 replies    2024-11-21 13:50:11 +08:00
    Donaldo
        1
    Donaldo  
       Nov 20, 2024
    看代理的日志呀
    vinsony
        2
    vinsony  
    OP
       Nov 20, 2024
    @Donaldo 就是日志里面没发现
    fortitudeZDY
        3
    fortitudeZDY  
       Nov 21, 2024 via iPhone   ❤️ 1
    客户端本地没有公网 ip 的话,是通过跟 derp 服务器的 stun 端口交互得到公网 ip 和端口,盲猜 geosite:Tailscale 没有把 derp 服务器的 ip 给加完全。官方 derp 列表里有明文 ip 地址,可以考虑 Ai 整个工具,把这些 ip 编译出来个列表,然后在透明代理上做个规则分流到本地。
    vinsony
        4
    vinsony  
    OP
       Nov 21, 2024
    @fortitudeZDY 谢谢,确实是通过 derp 服务器来确定的。https://login.tailscale.com/derpmap/default 这里有全部的 derp IP ,都加进白名单,目前是可以了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1057 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 22:42 · PVG 06:42 · LAX 15:42 · JFK 18:42
    ♥ Do have faith in what you're doing.