无法使用具有指定端口的 Tailscale 服务器名称连接内部应用程序

Unable to connect internal apps using tailscale server name with specified port

如标题所示,我想基本上禁用 public TCP 端口并允许 plex 或其他应用仅使用 Tailscale 进行连接。

比如,我不想允许 server-public-ip:32400,但我想 tailscale-server-name:32400

如果我在 TCP 中为所有来源打开了端口,那么当我删除入口规则时它就不起作用了。

服务器 ping 正常(启用 MagicDNS)

Pinging oracle.hidden-name.ts.net [tailscale-ip] with 32 bytes of data:
Reply from tailscale-ip: bytes=32 time=36ms TTL=64
Reply from tailscale-ip: bytes=32 time=36ms TTL=64
Reply from tailscale-ip: bytes=32 time=38ms TTL=64
Reply from tailscale-ip: bytes=32 time=37ms TTL=64

Ping statistics for tailscale-ip:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 36ms, Maximum = 38ms, Average = 36ms

If I have the port opened in TCP for all sources it works, doesn't work when I remove the ingress rule.

这可能意味着连接到 plex 的应用程序仍在使用 LAN IP 地址,而不是 Tailscale IP 地址。使用 MagicDNS 可能会有帮助,可以告诉 Plex 应用程序转到 plex.example.com.beta.tailscale.net。

想通了。它不会仅使用机器名称,因为它不会解析 HTTP/S,将使用 Tailscale IP 或 ts.net 域。