V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
hechaov
V2EX  ›  WireGuard

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

  •  
  •   hechaov · Apr 10, 2022 · 6644 views
    This topic created in 1478 days ago, the information mentioned may be changed or developed.

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

    但是大概 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 replies    2022-05-17 18:23:07 +08:00
    233373
        1
    233373  
       Apr 10, 2022
    端口被 gfw 拉黑了
    daveh
        2
    daveh  
       Apr 10, 2022 via iPhone
    挂 udp2raw
    zro
        3
    zro  
       Apr 10, 2022
    Handshake 特征明显,要是把 Handshake 套层 Socks5 好像就行。。

    https://www.reddit.com/r/WireGuard/comments/sob2xg/how_to_bypass_egypts_wireguard_ban/
    hechaov
        4
    hechaov  
    OP
       Apr 10, 2022
    谢谢大哥们!!我试试的
    JohnSmith
        5
    JohnSmith  
       Apr 10, 2022
    用 tinc 吧
    yinxiangbiji
        6
    yinxiangbiji  
       Apr 10, 2022
    UDP 啦

    WireGuard 快是快,但是运营商经常封一下端口,属于老“毛病”了,如果对国人写的程序没有洁癖的话,可以用国人开发的 udp2raw
    dndx
        7
    dndx  
       Apr 10, 2022
    也可以看看我写的 https://www.v2ex.com/t/802949 ,在多核设备上性能会比 udp2raw 好得多。
    cloudsigma2022
        8
    cloudsigma2022  
       May 17, 2022 via iPhone
    用 ipv6
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5628 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 93ms · UTC 08:52 · PVG 16:52 · LAX 01:52 · JFK 04:52
    ♥ Do have faith in what you're doing.