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

There's support for wireguard-rs? #288

Open
hardBSDk opened this issue Sep 19, 2023 · 3 comments
Open

There's support for wireguard-rs? #288

hardBSDk opened this issue Sep 19, 2023 · 3 comments

Comments

@hardBSDk
Copy link

hardBSDk commented Sep 19, 2023

Can I use it instead of wireguard-go ? I read that you plan to migrate to it once it's ready, but can I use it as an optional flag?

If not, consider it a feature request, allow the usage of two WireGuard user-space implementations with flags.

@mcginty
Copy link
Collaborator

mcginty commented Sep 20, 2023

Hey @hardBSDk, you can use any userspace implementation of WireGuard you'd like via the WG_USERSPACE_IMPLEMENTATION or WG_QUICK_USERSPACE_IMPLEMENTATION environment variables. It just defaults to wireguard-go if those aren't set, as it's the most mature and available implementation currently.

@hardBSDk
Copy link
Author

@mcginty Where the usage of them is documented? it's a WireGuard variable or Innernet variable?

@mcginty
Copy link
Collaborator

mcginty commented Sep 20, 2023

The code is here: https://github.com/tonarino/innernet/blob/main/wireguard-control/src/backends/userspace.rs#L262-L273

It's not documented, unfortunately. That should probably change... WG_QUICK_USERSPACE_IMPLEMENTATION initially existed for wg-quick, and I wrote it this way to respect that variable if it's set globally.

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