V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
qsnow6
V2EX  ›  宽带症候群

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

  •  
  •   qsnow6 · 286 天前 · 1516 次点击
    这是一个创建于 286 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我有一台 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
    
    第 1 条附言  ·  285 天前
    解决了,原因其实是没打洞成功,zerotier 不会自动利用 UPNP 打洞,在路由器上手动做个映射就行了。
    5 条回复    2023-07-23 15:13:08 +08:00
    Radiation
        1
    Radiation  
       286 天前
    考虑一下防火墙?
    lithiumii
        2
    lithiumii  
       286 天前 via Android
    我印象中,如果两台机器同时 Tailscale 和 Zerotier 会有问题,好像 zt 会通过 tailscale 来组网
    qsnow6
        3
    qsnow6  
    OP
       286 天前
    @Radiation #1 防火墙都关了的
    rekulas
        4
    rekulas  
       285 天前
    服务端口都开放试试
    shulin
        5
    shulin  
       283 天前 via Android
    换一个内网穿透软件 比如 星空内网穿透 网站是 ip4.ink
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2179 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 60ms · UTC 11:01 · PVG 19:01 · LAX 04:01 · JFK 07:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.