-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Support Mullvad auto-generated configurations #2
Comments
Hi, thanks for bringing this up. I tested this just now by copying one of my existing configs to If you (temporary) change the config file permissions to something more permissive ( If not could you maybe provide debug logs by using the Edit: I plan on moving the config file reading to the Helper so there are no permissions issues. But I can't promise yet when that can be released. |
I created a release which should not crash, in the list it will omit the details normally found in the configuration file (allowedips, peer address) if it cannot read the file. But enabled/disabling the tunnel should work normally: https://github.com/aequitas/macos-menubar-wireguard/releases/tag/1.7 |
Thanks so much! (Edited:) -A few problems and confusion were created either by a zombie wireguard configuration (process killed; utun1 still exists) caused by a bad .plist file I wrote, and/or by duplicates of all the config file in /etc/wireguard -The app now does not crash if /usr/local/etc/wireguard/* is not group readable, just shows only the config filename in the menu, as you described (I actually prefer this - I have too many configs!) -Icon coloring correctly reflects connectivity status, and selecting a config already checked correctly causes disconnect. Can you point to a quick ref on building Swift applications? I just installed Xcode.. Remaining asks: |
I tried to implement sorting a while back (https://github.com/aequitas/macos-menubar-wireguard/blob/master/Wireguard%20Statusbar/AppDelegate.swift#L167) but I think Swift does not keep dict entries sorted, so I think thats why it doesn't work. I will move this logic somewhere else. I just hit this myself recently when I added more configs. Building your own binary should be easy. Just run Other features I have planned for the short term are
If you have any further feedback let me know, feel free to open Github issues for separate problems. |
You are right, I posted the last comment without going back and checking whether I got Xcode working with a configured dev account. Having issues with Makefile and with running app via Xcode that I'll open another issue on. I will close this issue as you have resolved it. I may open another regarding menu sorting :) |
Hi,
Mullvad is one of a few commercial VPN providers that supports WireGuard.
They have a configuration setup script that dumps a bunch of named configuration files in /etc/wireguard/, of the form "mullvad-.conf". If these could be auto-detected and populated into the AppIcon dropdown menu, that would be awesome.
I did a quick and dirty test by moving the files from /etc/wireguard/ to /usr/local/etc/wireguard/ where your program looks, and found that the program hangs on startup (icon never appears, but Helper is left running in the background)
Further, if this were implemented I imagine Mullvad would consider using your tool as a recommended process for using WireGuard to connect to their service on MacOS.
The text was updated successfully, but these errors were encountered: