qsnow6

zerotier 搭好后,无法 PING 应该怎么排查?

  •  
  •   qsnow6 · Jul 20, 2023 · 3935 views
    This topic created in 1209 days ago, the information mentioned may be changed or developed.

    我有一台 Linux 的服务器,本地是 Mac 系统,目前是通过 tailscale 组网的,想在这个基础上使用 zerotier 作为备用的组网文案。

    在服务器和本地都安装 zerotier ,并且加入成功网络后,发现无法 PING 通,在 Web 控制台看到设备都是在线并且授权了。

    但是 tailscale 内网间是可以 PING 通的。 这个问题要怎么排查

    https://i.imgur.com/ocdpvlW.png 换了网段,可以 PING 能了,但是无法访问局域网内的服务

    Mac-mini ~ % ping -c 5 192.168.196.34
    PING 192.168.196.34 (192.168.196.34): 56 data bytes
    64 bytes from 192.168.196.34: icmp_seq=0 ttl=64 time=23.499 ms
    64 bytes from 192.168.196.34: icmp_seq=1 ttl=64 time=13.839 ms
    64 bytes from 192.168.196.34: icmp_seq=2 ttl=64 time=18.833 ms
    64 bytes from 192.168.196.34: icmp_seq=3 ttl=64 time=12.389 ms
    64 bytes from 192.168.196.34: icmp_seq=4 ttl=64 time=18.400 ms
    
    --- 192.168.196.34 ping statistics ---
    5 packets transmitted, 5 packets received, 0.0% packet loss
    round-trip min/avg/max/stddev = 12.389/17.392/23.499/3.951 ms
    Mac-mini ~ % curl 192.168.196.34:6800
    curl: (7) Failed to connect to 192.168.196.34 port 6800 after 1017 ms: Couldn't connect to server
    Mac-mini ~ % traceroute 192.168.196.34
    traceroute to 192.168.196.34 (192.168.196.34), 64 hops max, 52 byte packets
     1  192.168.196.34 (192.168.196.34)  19.181 ms  13.515 ms  11.975 ms
    
    Supplement 1  ·  Jul 21, 2023
    解决了,原因其实是没打洞成功,zerotier 不会自动利用 UPNP 打洞,在路由器上手动做个映射就行了。
    5 replies  •  2023-07-23 15:13:08 +08:00
    Radiation
    Radiation
    Jul 20, 2023
    1
    考虑一下防火墙?
    lithiumii
    lithiumii
    Jul 20, 2023 via Android
    2
    我印象中,如果两台机器同时 Tailscale 和 Zerotier 会有问题,好像 zt 会通过 tailscale 来组网
    qsnow6
    qsnow6
    OP
    Jul 20, 2023
    3
    @Radiation #1 防火墙都关了的
    rekulas
    rekulas
    Jul 20, 2023
    4
    服务端口都开放试试
    shulin
    shulin
    Jul 23, 2023 via Android
    5
    换一个内网穿透软件 比如 星空内网穿透 网站是 ip4.ink
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4555 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 01:23 · PVG 09:23 · LAX 17:23 · JFK 20:23
    ♥ Do have faith in what you're doing.