Always-On VPN issues at boot. Need to manually activate it.. What did i miss..
Hi. I tried this guide.. I think i did everything right, but i might have missed something...

Always-On VPN
VPN functionality will be added to Gnome-Control-Center in the future, but for now you can configure this via
. This guide will explain how to import an OpenVPN connection, and then configure other connections to require it as a “secondary”. (see the always great Arch wiki for more on this)
1. Add OpenVPN support for NetworkManager by running
sudo apt install network-manager-openvpn
2. Import your OpenVPN .ovpn file by running
sudo nmcli connection import type openvpn file {yourovpnfile.ovpn}

3. Until this is integrated with gnome-keyring, you must store your username and password in the .nmconnection file (currently insecure due to lack of disk encryption, which is coming in the future as well). Edit your VPN config in /etc/NetworkManager/system-connections, where the file is {youropenvpnfilename}.nmconnection. Change the
to 0. At the bottom of the [vpn] block, add
username={your username}
. Then, below the [vpn] block, add the following:
password={your vpn password}
4. Obtain the UUID of your VPN connection by running
sudo nmcli con show {your vpn connection name}
; the UUID is the second line.
5. In the same directory, you can now modify any connection, including your cellular one, to bring up and require the VPN connection by adding this to the end of the [connection] block:
(dont forget the trailing semi-colon).
6. Restart NetworkManager with
sudo systemctl restart NetworkManager
for the changes to take effect.

The thing is.. I seem to need to activate
sudo systemctl restart NetworkManager at every reboot.. My original ip is showing at boot it seems like, but is fixed with that command. What could the issue be?
Is this the best way to set up an ovpn file at the moment? Thanks in advance.

Possibly Related Threads…
Thread Author Replies Views Last Post
  p-boot images Flin 1 146 09-05-2021, 12:58 PM
Last Post: Flin
  Anyone find a work around for the brightness issues from kernels 5.13/14? ragreenburg 2 190 09-01-2021, 08:49 AM
Last Post: ragreenburg
  receive a blank screen after expanding SD on first boot ~Daniel~ 1 307 07-02-2021, 08:24 PM
Last Post: ~Daniel~
  Remote desktop, video playback issues Zebulon Walton 13 2,443 06-17-2021, 06:57 AM
Last Post: aus
  Restore Mobian Boot Splash MtnSk8 0 593 03-24-2021, 10:01 PM
Last Post: MtnSk8
  Issues with Mobian 20210314 (data and updates) IMSAI8080 5 2,167 03-20-2021, 04:14 AM
Last Post: IMSAI8080
  Mobian Issues Csanderson0313 13 3,005 03-02-2021, 04:57 AM
Last Post: Gribouille
  UFW (uncomplicated firewall) Start On Boot - Mobian (working) theD0ctor 2 877 02-28-2021, 09:58 PM
Last Post: theD0ctor
  Phone won't boot after update: red LED 3x5co 7 1,620 02-16-2021, 01:34 PM
Last Post: 3x5co
  Modem Firmware: update manually or wait? sfb 4 1,610 02-06-2021, 05:14 AM
Last Post: sfb

Forum Jump:

Users browsing this thread: 1 Guest(s)