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

Macport Wireguard installation not recognized #25

Open
digeratus opened this issue Dec 16, 2019 · 13 comments
Open

Macport Wireguard installation not recognized #25

digeratus opened this issue Dec 16, 2019 · 13 comments

Comments

@digeratus
Copy link

I installed Wireguard using Macports instead of Homebrew - at the time the the brew version of Wireguard was out of date. https://www.wireguard.com/install/#macos-homebrew-and-macports-basic-cli-homebrew-userspace-go-homebrew-tools-macports-userspace-go-macports-tools

Macports installs wireguard binaries in /usr/local/bin and the configuration files are expected to be in /opt/local/etc/wireguard not /usr/local/etc/wireguard as created by Homebrew.

Would it be possible to adjust for the Macport installation paths?

Thanks

@aequitas
Copy link
Owner

Sure, only need to update the list here: https://github.com/aequitas/macos-menubar-wireguard/blob/master/Shared/Const.swift#L37

Please note this app is not really maintained anymore since the official client for Wireguard is released. But if you prefer to use this App over the official client I can make a new release with this feature if you like.

@digeratus
Copy link
Author

digeratus commented Dec 16, 2019 via email

@aequitas
Copy link
Owner

No problem. Do I understand correctly that the binary is in the same place as with Homebrew /usr/local/ and only the config is in /opt/local/ or are both under /opt/local/?

@digeratus
Copy link
Author

digeratus commented Dec 17, 2019 via email

@aequitas
Copy link
Owner

In that case there is already a workaround, you can try:

sudo defaults write WireGuardStatusbarHelper brewPrefix /opt/local

This will change the prefix for both the binary and the config to /opt/local. You might get a warning from the App that Wireguard is not installed, but that can be ignored.

Let me know if this works for you.

@digeratus
Copy link
Author

digeratus commented Dec 17, 2019 via email

@digeratus
Copy link
Author

digeratus commented Dec 18, 2019 via email

@Fastidious
Copy link

I know this is quite old, but I am using WireGuard installed by brew, and this app works like a charm. Thank you so much for creating it, @aequitas!

@Fastidious
Copy link

@aequitas I just got a new machine, able to run Catalina. I tried the official WireGuard app, and it worked, mostly. I have two server profiles, one for mesh and one for full VPN. The mesh one (which uses Unbound) will not work for most websites. It is supposed not to use WireGuard for anything, but for IPs the WireGuard server hands out (hence mesh).

Installing WireGuard with brew, and using your app made it work like a charm, as intended, just as it did on my previous machine with High Sierra. There are advantages on using your app instead of the official client and, for me, using your app was vital to get my setup running as wanted.

@aequitas
Copy link
Owner

aequitas commented Sep 1, 2020

Good to hear :). I still plan on fixing the underlying issue of using different/custom paths for the Wireguard executable sometime, so I'll keep the issue open for now.

@alexanderharm
Copy link

Hello there, it would be great if you could find the time to update this app. The official app is out but it only supports one active tunnel at anytime which I find a nuissance. I like your app since it simply does the job and does it right. Thank you!

@thenktor
Copy link

thenktor commented Feb 7, 2024

I also found this because I need to start multiple tunnels, which does not work with the official app. But sadly it does not work with wireguard-tools from Macports.

@alexanderharm
Copy link

You create simply create a symlinks in the expected places to make it work... e. g.

create a symlink for the binaries into /usr/local/bin and the configs to /usr/local/etc/wireguard

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

5 participants