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

Using wireguard in kernel #123

Open
radiumatic opened this issue Nov 27, 2023 · 2 comments
Open

Using wireguard in kernel #123

radiumatic opened this issue Nov 27, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@radiumatic
Copy link

The wireguard module in kernel (or even a cpp implementation) has far better performance than singbox's embedded one. I think it might be possible to create a virtual interface for wireguard and config the "bypass" or "freedom" output to go through it.

@aleskxyz
Copy link
Owner

Regarding the discussion at #122:

Using the wg module in the kernel introduces many non-portable changes to the machine. Also, there needs to be a mechanism to ensure that the tunnel is always up and to manage changes in its configuration.

If there is a portable, Docker-compatible solution for it, we can implement it. Do you have any benchmarks regarding the performance of "CF Warp" with the wg module and single-box?

@radiumatic
Copy link
Author

Actually there's a dockerized version of Wireguard, would you please take a look at it?
And since it's relevant, being able to use custom a Wireguard configuration would be great.
As for the benchmark, I'm afraid I don't have one, but it's considered "general knowledge" in singbox/xray community that the implemented Wireguard module doesn't perform as well as a kernel module or a "lower-level" client.

@aleskxyz aleskxyz added the enhancement New feature or request label Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants