V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
hechaov
V2EX  ›  WireGuard

wireguard 问题,搭建好 1-2 天后就连上没接收数据了

  •  
  •   hechaov · 2022-04-10 13:10:12 +08:00 · 4284 次点击
    这是一个创建于 718 天前的主题,其中的信息可能已经有所发展或是发生改变。

    刚搭建好的时候, 一切正常工作。

    但是大概 1-2 天以后,可以连接上, 但是收不到数据了。

    接收 0 B, 发送 1.59 KiB

    服务端停掉 wg 服务, 然后更换端口,再启动马上又有接收数据。过一两天又挂了

    请问各位大哥,这是什么问题,如何解决. thanks in advance

    服务端的配置, 一键安装的。

    [Interface] PrivateKey = 私钥 Address = 10.77.0.1/24 PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; iptables -t nat -A POSTROUTING > PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; iptables -t nat -D POSTROUTING > ListenPort = 55895 DNS = 8.8.8.8 MTU = 1420

    [Peer] PublicKey = 公钥 1 AllowedIPs = 10.77.0.2/32

    [Peer] PublicKey = 公钥 2 AllowedIPs = 10.77.0.3/32

    8 条回复    2022-05-17 18:23:07 +08:00
    233373
        1
    233373  
       2022-04-10 13:12:16 +08:00
    端口被 gfw 拉黑了
    daveh
        2
    daveh  
       2022-04-10 13:23:25 +08:00 via iPhone
    挂 udp2raw
    zro
        3
    zro  
       2022-04-10 13:56:52 +08:00
    Handshake 特征明显,要是把 Handshake 套层 Socks5 好像就行。。

    https://www.reddit.com/r/WireGuard/comments/sob2xg/how_to_bypass_egypts_wireguard_ban/
    hechaov
        4
    hechaov  
    OP
       2022-04-10 14:46:16 +08:00
    谢谢大哥们!!我试试的
    JohnSmith
        5
    JohnSmith  
       2022-04-10 15:25:34 +08:00
    用 tinc 吧
    yinxiangbiji
        6
    yinxiangbiji  
       2022-04-10 16:10:03 +08:00
    UDP 啦

    WireGuard 快是快,但是运营商经常封一下端口,属于老“毛病”了,如果对国人写的程序没有洁癖的话,可以用国人开发的 udp2raw
    dndx
        7
    dndx  
       2022-04-10 23:52:23 +08:00
    也可以看看我写的 https://www.v2ex.com/t/802949 ,在多核设备上性能会比 udp2raw 好得多。
    cloudsigma2022
        8
    cloudsigma2022  
       2022-05-17 18:23:07 +08:00 via iPhone
    用 ipv6
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1168 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 18:28 · PVG 02:28 · LAX 11:28 · JFK 14:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.