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

wgcf cannot be used anymore? #367

Closed
zstdadi opened this issue Jan 5, 2024 · 4 comments
Closed

wgcf cannot be used anymore? #367

zstdadi opened this issue Jan 5, 2024 · 4 comments

Comments

@zstdadi
Copy link

zstdadi commented Jan 5, 2024

CF has added some private bits in wireguard protocol, so wgcf cannot be used anymore?

./wgcf register
./wgcf generate
cp wgcf-profile.conf /etc/wireguard/wgcf.conf
wg-quick up wgcf

After run "wg-quick up wgcf", wgcf NIC is up, 172.16.0.2 is up, but cann't ping 172.16.0.1, cann't connect ipv4 network.

refer this:
https://iedon.com/2023/07/13/992.html

@ViRb3
Copy link
Owner

ViRb3 commented Jan 5, 2024

Works fine here. You are likely in a high abuse region where wgcf is blocked. Check #158.

@ViRb3 ViRb3 closed this as completed Jan 5, 2024
@zstdadi
Copy link
Author

zstdadi commented Jan 5, 2024

It's nothing with abuse. cannot use wireguard with wgcf'config, but warp-cli connect is OK.

refer this:
https://iedon.com/2023/07/13/992.html

有关为何第三方客户端的 wgcf 无法使用(无法 handshake) 的说法有这么一个:虽然 Warp 客户端使用了 WireGuard 协议,但是在 WireGuard 协议中的 Reserved 字段加入了 特殊值①,导致 Cloudflare 可以检测是否是官方客户端。最近看到 GitHub 中的 一些脚本② 已经开始尝试魔改 WireGuard Go,来支持指定 Reserved 字节,不过本文撰写时,尚无稳定可用的发布,尚处于开发中的样子。

@ViRb3
Copy link
Owner

ViRb3 commented Jan 5, 2024

The private/reserved bits are only checked in high abuse regions. As I said, I verified yesterday and wgcf works great for me in two different western countries without the need of those bits. For reasons explained in the issue linked above, I'm afraid that I cannot help with bypassing this limitation.

@zstdadi
Copy link
Author

zstdadi commented Jan 5, 2024

Thank you for your help!

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