Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

目前 wireguard 不支持 IPv6 endpoint 么 #647

Open
Esinchung opened this issue Nov 12, 2024 · 2 comments
Open

目前 wireguard 不支持 IPv6 endpoint 么 #647

Esinchung opened this issue Nov 12, 2024 · 2 comments

Comments

@Esinchung
Copy link

ERROR ThreadId(08) clash_lib/src/proxy/wg/wireguard.rs:367: failed to send packet: Address family not supported by protocol (os error 97)

clash-rs 版本v0.7.1 , wg endpoint 使用ipv4的ddns没问题, 用ipv6 only 的
ddns就不行, 协议不支持

@ibigbug
Copy link
Member

ibigbug commented Nov 13, 2024

我用这个配置测试的是没问题的 https://github.com/Watfaq/clash-rs/blob/master/clash/tests/data/config/wg.yaml#L47
把server改成

server: '2606:4700:d0::a29f:c001'

你本机有v6吗

然后

ipv6: true

dns:
   ipv6: true

两个ipv6都要开

@Esinchung
Copy link
Author

Esinchung commented Nov 14, 2024

proxies:

  • name: "wg0"
    type: wireguard
    server: cm..org
    #server: '2
    :8a28:20f4:38fa:e51a:
    *:d9f5:45f2'
    port: 51172
    ip: 10.
    .
    .2/32
    ipv6: fc03:9::2/128
    allowed-ips: ["0.0.0.0/0", "::/0"]
    private-key: #####################
    public-key: ####################
    preshared-key: ##################
    mtu: 1420
    udp: true
    非常感谢开发者的回复,回头又多试了几次,我这边还是不行,
    还是 Address family not supported by protocol
    两个ipv6 ,都启用了,不然其它基于 v6 地址的proxy都连不上的,
    同样的WG配置在clash-premium没问题能连的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants