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

internal/wgopenbsd: add configuration for OpenBSD kernel devices #34

Open
mdlayher opened this issue Apr 29, 2019 · 6 comments
Open

internal/wgopenbsd: add configuration for OpenBSD kernel devices #34

mdlayher opened this issue Apr 29, 2019 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@mdlayher
Copy link
Member

An OpenBSD kernel implementation is being built, and the source can be found at https://git.noconroy.net/wireguard-bsd.git.

The userspace interface types can be found here: https://git.noconroy.net/wireguard-bsd.git/tree/src/if_wg.h.

We should support this interface in wireguardctrl.

@mdlayher
Copy link
Member Author

mdlayher commented May 1, 2019

A branch of wg which supports this interface: https://git.noconroy.net/WireGuard.git/tree/src/tools/ipc.c?h=ncon/openbsd.

@mdlayher
Copy link
Member Author

The read-only portion of this code is done. Configuring OpenBSD devices will take more work.

@mdlayher mdlayher changed the title internal/wgopenbsd: new package to support OpenBSD kernel port internal/wgopenbsd: add configuration for OpenBSD kernel devices Oct 28, 2019
@mdlayher mdlayher added enhancement New feature or request help wanted Extra attention is needed labels Oct 28, 2019
@mdlayher mdlayher self-assigned this Jun 9, 2020
@mdlayher mdlayher removed the help wanted Extra attention is needed label Jun 9, 2020
@mdlayher
Copy link
Member Author

mdlayher commented Jun 9, 2020

I've implemented the updated read-only interface and plan to do the configuration API soon!

@mdlayher
Copy link
Member Author

mdlayher commented Jun 9, 2020

Current state:

-bash-5.0# WGCTRL_INTEGRATION=yesreallydoit go test -v -run=TestIntegrationClient/get .
=== RUN   TestIntegrationClient
=== RUN   TestIntegrationClient/get
=== RUN   TestIntegrationClient/get/wg0
--- PASS: TestIntegrationClient (0.00s)
    --- PASS: TestIntegrationClient/get (0.00s)
        --- SKIP: TestIntegrationClient/get/wg0 (0.00s)
            client_integration_test.go:129: device: wg0: DlluwkFvqfsG3MZ0Gh3m+KILoRp6cvVHeQ8/BEE2pH8=
            client_integration_test.go:83: skipping, device "wg0" implementation is read-only
=== RUN   TestIntegrationClientIsNotExist
--- PASS: TestIntegrationClientIsNotExist (0.00s)
PASS
ok      golang.zx2c4.com/wireguard/wgctrl       (cached)

@stv0g
Copy link
Contributor

stv0g commented Oct 13, 2022

@mdlayher I am planning to pick up this work. Are there any major obstacles? Or do you still have a branch with some WIP code?

@mdlayher
Copy link
Member Author

@stv0g please do, thanks! I implemented this as an experiment and chance to learn, but never got to the configuration.

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