ChristianOlsen Posted October 11, 2020 Share Posted October 11, 2020 (edited) WireGuard Control Simple workflow that toggle on/off any existing WireGuard VPN tunnels. The workflow is written in bash, so it should be pretty robust against OS updates etc. New release Version 1.1.2 released! Improvements: 1) VPN connections are sorted so the results are always in the same order. 2) Filtering of the results, by user input, enabled. 3) WireGuard is now spelled correctly (Capital G). Download: https://alfred.app/workflows/christianolsen/wireguard-control/ Instructions: Use the keyword "wguard" to activate the workflow. Edited March 27, 2023 by ChristianOlsen pat-s, punkypangolin, GrimlocK and 1 other 4 Link to comment
punkypangolin Posted December 22, 2020 Share Posted December 22, 2020 This is fantastic. Thanks for building and sharing! Link to comment
Melc Posted December 25, 2020 Share Posted December 25, 2020 Works great! Thanks for building! 😄 Link to comment
punkypangolin Posted April 7, 2021 Share Posted April 7, 2021 @ChristianOlsen did this stop working with a recent version of WireGuard? When I attempt it now, Alfred seems to "forget" that it's a custom action, and it wants to search for the keyword. (It starts out with the Wireguard icon.) Debugging shows this: [22:51:00.130] Wireguard Control[Script Filter] Queuing argument '(null)' [22:51:00.221] Wireguard Control[Script Filter] Script with argv '(null)' finished [22:51:00.223] Wireguard Control[Script Filter] {"items":[]} Not sure what's changed on my end since it was working last. (And, unfortunately, I forgot I had it installed so haven't been using it much.) I tried deleting and reinstalling and get the same behaviour. Thanks! Link to comment
godbout Posted April 8, 2021 Share Posted April 8, 2021 way faster than checking through the network connections. great one. thanks. Link to comment
ChristianOlsen Posted April 11, 2021 Author Share Posted April 11, 2021 (edited) On 4/6/2021 at 10:56 PM, punkypangolin said: @ChristianOlsen did this stop working with a recent version of WireGuard? When I attempt it now, Alfred seems to "forget" that it's a custom action, and it wants to search for the keyword. (It starts out with the Wireguard icon.) Debugging shows this: [22:51:00.130] Wireguard Control[Script Filter] Queuing argument '(null)' [22:51:00.221] Wireguard Control[Script Filter] Script with argv '(null)' finished [22:51:00.223] Wireguard Control[Script Filter] {"items":[]} Not sure what's changed on my end since it was working last. (And, unfortunately, I forgot I had it installed so haven't been using it much.) I tried deleting and reinstalling and get the same behaviour. Thanks! I'm running v.1.0.12, which is the newest version in the Mac app store. Everything works fine for me! What version of Wiregaurd are you running? Do you have Wiregaurd tunnels installed? The fact that {"items":[]} is empty means that no Wiregaurd tunnels were found! Edited April 11, 2021 by ChristianOlsen Link to comment
punkypangolin Posted July 8, 2021 Share Posted July 8, 2021 (edited) On 4/10/2021 at 9:54 PM, ChristianOlsen said: I'm running v.1.0.12, which is the newest version in the Mac app store. Everything works fine for me! What version of Wiregaurd are you running? Do you have Wiregaurd tunnels installed? The fact that {"items":[]} is empty means that no Wiregaurd tunnels were found! Sorry, Christian. Missed the notification and forgot about this. I'm running the latest of everything. Wireguard 1.0.13 (24), macOS 11.4. The empty items is strange, as I definitely have a Wireguard tunnel installed and active and functional. (I use it every day, and know it's working.) I get no response for this though: ❯ scutil --nc list ─╯ Available network connection services in the current set (*=enabled): So… my tunnel is somehow not showing up where it's expected? I've done a bit of googling and I'm not seeing anything obvious. Doesn't seem like an issue with your workflow, though, so that's good (for the workflow) Only thing I'm wondering is if there's some conflict with my other settings (Docker, Lulu, network profile / custom DNS, … maybe something else I'm not thinking about). But that'll be an exploration for another day! Edited July 8, 2021 by punkypangolin adding speculation; changed a word. Link to comment
ChristianOlsen Posted July 8, 2021 Author Share Posted July 8, 2021 1 hour ago, punkypangolin said: Sorry, Christian. Missed the notification and forgot about this. I'm running the latest of everything. Wireguard 1.0.13 (24), macOS 11.4. The empty items is strange, as I definitely have a Wireguard tunnel installed and active and functional. (I use it every day, and know it's working.) I get no response for this though: ❯ scutil --nc list ─╯ Available network connection services in the current set (*=enabled): So… my tunnel is somehow not showing up where it's expected? I've done a bit of googling and I'm not seeing anything obvious. Doesn't seem like an issue with your workflow, though, so that's good (for the workflow) Only thing I'm wondering is if there's some conflict with my other settings (Docker, Lulu, network profile / custom DNS, … maybe something else I'm not thinking about). But that'll be an exploration for another day! Does your WireGuard tunnel show up in Preferences-->Network? I must admit that I'm not really an expect in VPN connections! If you haven't been able to find anything on google, I probably won't either. Sorry! Link to comment
punkypangolin Posted July 13, 2021 Share Posted July 13, 2021 On 7/8/2021 at 11:26 AM, ChristianOlsen said: Does your WireGuard tunnel show up in Preferences-->Network? It does. As far as I can tell, it works exactly how it should. I've used Wireguard on a few different computers and … yeah. Looks totally normal If I have the time and this frustrates me enough, I'll eventually try to track it down and update this thread, in case anybody else has this same issue. Thanks again! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now