PINE64
VPN always on - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: PostmarketOS on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=124)
+---- Thread: VPN always on (/showthread.php?tid=19313)



VPN always on - zeb11 - 06-25-2024

The new update is great, I configured wireguard for VPN but I canĀ“t figure out how to have it always on. I am using Phosh and Postmarketos 24.06. Any hints greatly apreciated Cool


RE: VPN always on - Pavlos1 - 06-26-2024

Here's an OpenRC-based guide you can try: https://serverfault.com/questions/1084907/wireguard-on-alpine-automatically-mount-wg0-after-boot


RE: VPN always on - zeb11 - 06-29-2024

Thanks for your link. I tried both methods sugested in the post but without success. Maybe it is because I did not configure manually but loaded a wg config file in the GNOME settings > Network > VPN tab.


RE: VPN always on - Pavlos1 - 07-02-2024

Ah, yes if you're doing it through the GUI you can't use that guide. See if the VPN shows up in `nmcli c show`, get its* ID, then run something like `nmcli c ID set connection.autoconnect yes`.


RE: VPN always on - zeb11 - 07-18-2024

Thank you for this.

I was able to activate the conection with 'nmcli con mod name connection.autoconnect yes'

Now I have to switch the VPN conection on when I boot up the device but then it stays on.