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

UAPI socket for the macOS sandboxed Wireguard app #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nohajc
Copy link

@nohajc nohajc commented Sep 9, 2023

This change makes it possible to configure tunnels created by the App Store Wireguard UI using wg and wgctrl-go.

It's an implementation of this suggestion: WireGuard/wgctrl-go#96 (comment)

Because the app is sandboxed, you cannot create the socket in its usual location (/var/run/wireguard).
It should be possible to configure an exception for the path but in practice it only works with regular files and not Unix domain sockets. That's why I create the socket inside the app's sandbox folder instead (~/Library/Containers/com.wireguard.macos.network-extension/Data).

I'm also submitting pull requests to modify wireguard-apple, wireguard-go and wgctrl-go to work with this alternative path.

WireGuard/wireguard-apple#27
WireGuard/wireguard-go#89
WireGuard/wgctrl-go#143

Signed-off-by: Jan Noha <nohajc@gmail.com>
Copy link

@stv0g stv0g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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