qsnow6

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

  •  
  •   qsnow6 · Jul 20, 2023 · 3542 views
    This topic created in 1096 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
        1
    Radiation  
       Jul 20, 2023
    考虑一下防火墙?
    lithiumii
        2
    lithiumii  
       Jul 20, 2023 via Android
    我印象中,如果两台机器同时 Tailscale 和 Zerotier 会有问题,好像 zt 会通过 tailscale 来组网
    qsnow6
        3
    qsnow6  
    OP
       Jul 20, 2023
    @Radiation #1 防火墙都关了的
    rekulas
        4
    rekulas  
       Jul 20, 2023
    服务端口都开放试试
    shulin
        5
    shulin  
       Jul 23, 2023 via Android
    换一个内网穿透软件 比如 星空内网穿透 网站是 ip4.ink
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   946 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 21:33 · PVG 05:33 · LAX 14:33 · JFK 17:33
    ♥ Do have faith in what you're doing.