拼车信息请发到 /go/cosub 节点。

如果没有发送到 /go/cosub,那么会被移动到 /go/pointless 同时账号会被降权。如果持续触发这样的移动,会导致账号被禁用。
ethanpeng
V2EX  ›  Surge

mac surge WireGuard 配置问题

  •  
  •   ethanpeng · Jul 14, 2025 · 2986 views
    This topic created in 307 days ago, the information mentioned may be changed or developed.

    以下是我的配置文件

    [General]
    http-listen = 0.0.0.0
    socks5-listen = 0.0.0.0
    test-timeout = 4
    proxy-test-url = http://www.gstatic.com/generate_204
    dns-server = 223.6.6.6
    
    [Proxy]
    wireguard-home = wireguard, section-name = HomeServer
    
    [WireGuard HomeServer]
    private-key = privateKey
    self-ip = 10.0.10.3
    dns-server = 192.168.88.1
    mtu = 1280
    peer = (public-key = publicKey, preshared-key = PSK, allowed-ips = 0.0.0.0/0, endpoint = domain.com:51820)
    

    保存配置文件后如图: 但是提示配置文件不存在

    Supplement 1  ·  Jul 14, 2025
    目前是在 openwrt 上搭建的 WireGuard 。
    我自己再研究会,实在不行就用 squid 搭个 http 代理
    Supplement 2  ·  Jul 14, 2025
    解决了

    [WireGuard HomeServer]
    必须要放在主配置文件,不能放在引用的子配置文件
    我的主配置文件有以下配置
    [Proxy]
    #!include akkk.conf, keleyun.conf, atrust.conf, home.conf
    分别对应 akkk ,keleyun 机场,docker 中 atrust 工作代理,home 回家 wireguard 代理,现在移除 home.conf ,直接放进主配置文件就好了
    11 replies    2025-07-14 23:05:37 +08:00
    H97794
        1
    H97794  
       Jul 14, 2025   ❤️ 1
    有这错误,在重新加载配置的时候就应该有提示哪行出错了

    可以试试删现在的 WireGuard 配置, 再用界面添加 WireGuard 配置,和再修改
    ethanpeng
        2
    ethanpeng  
    OP
       Jul 14, 2025
    @H97794 我现在是添加成功了,但是使用的时候提示缺少配置文件。
    因为使用的是分段配置,所以在 界面上添加不了
    shigella
        3
    shigella  
       Jul 14, 2025   ❤️ 1
    还真没看出来有啥问题
    trafly
        4
    trafly  
       Jul 14, 2025   ❤️ 1
    surge v6 的早期测试版遇到过这个问题,后来更新版本就好了
    ethanpeng
        5
    ethanpeng  
    OP
       Jul 14, 2025
    @trafly 我用的还是 5.* 版本的
    TashinV
        6
    TashinV  
    PRO
       Jul 14, 2025   ❤️ 1
    surge 要开增强模式
    ethanpeng
        7
    ethanpeng  
    OP
       Jul 14, 2025
    @TashinV 不是代理不了,现在是配置文件走了代理后提示配置文件不存在
    ethanpeng
        8
    ethanpeng  
    OP
       Jul 14, 2025
    关闭 surge ,使用 WireGuard 官方客户端可以连接,也能正常访问内网
    502Chef
        9
    502Chef  
       Jul 14, 2025
    wireguard test 一直就是失败的,但是不影响使用
    ethanpeng
        10
    ethanpeng  
    OP
       Jul 14, 2025
    @huyujievip 已经好了,见第二条 append
    502Chef
        11
    502Chef  
       Jul 14, 2025
    @ethanpeng 我的就是一直放在主配置文件的,测试一直都是失败☹️,但是能用哈哈
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2897 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 10:30 · PVG 18:30 · LAX 03:30 · JFK 06:30
    ♥ Do have faith in what you're doing.