end-4 / dots-hyprland

Modern, feature-rich and accessible desktop configuration.
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
3.1k stars 201 forks source link

[Feature] Manage VPN connections #513

Open Cu3PO42 opened 1 month ago

Cu3PO42 commented 1 month ago

What would you like to be added?

I'd love for the control panel on the right to also offer the option to connect to VPNs cofigured via Network Manager. I imagine it looking very similar to the menu already present for Wi-Fi connections, where clicking one would trigger a connection.

How will it help

I have several (corporate) VPNs that I might connect to (and disconnect from) multiple times a day. I currently use nm-applet for VPNs, but since Illogical Impulse already covers other networking, it would be nice to centraiize all network config there.

Extra Info

As far as I can tell, the networking service from AGS already exposes all the information about VPNs that is required.

Ghanshyam-shaktawat commented 1 month ago

hey greate idea. I also needed something like this as i have stuff i do with vpn. So I create my own version of it. I just create a toggle button on the right side menu next to the toggle wifi button which use the ags networking widget to connect to a praticular vpn connection. The vpn uuid is needed to be used for connection which i stored in userOptions.ags file. If u want i can share the code as a temperarly solution.

Altough about listening the vpn connections on the sidebar like wifi is not hard to do. Using nmcli we get get different vpn's and there uuid's which we can used to connect to with the help of ags network widget. I can implementing it and making a pr but i got exams and will be free after 3 June.

Cu3PO42 commented 1 month ago

You don't even need to invoke nmcli, you can directly use the NM library via GIR. It's also wrapped by AGS. What will take some care is that connecting to VPNs can also incur various prompts, for example providing credentials for external PKCS11 devices.