Love this? Please consider supporting its creator by starring or sponsoring this project on GitHub!
From the project's README:
Alfred workflow to list configured VPN profiles and connect to/disconnect from a selected one (support IKEv2 service)
Built-in Mac CLI tools (
networksetup) do not work with IKEv2 services at the moment. Refer to https://blog.timac.org/2018/0719-vpnstatus/ for more details. Special treatment is requried to support IKEv2 services. This workflow solves the problem.
npm install --global alfred-vpnutil
In Alfred, type
vpn, all configured VPN profiles will display in a list with their connection status.
Continue typing Space, and your query to filter the list.
Select an item and press Enter to connect/disconnect based on the current connection status.