Hi. I tried this guide.. I think i did everything right, but i might have missed something...
https://wiki.mobian-project.org/doku.php...networking
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
.
2. Import your OpenVPN .ovpn file by running
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
. Then, below the [vpn] block, add the following:
[vpn-secrets]
password={your vpn password}
4. Obtain the UUID of your VPN connection by running
; 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
for the changes to take effect.
The thing is.. I seem to need to activate
https://wiki.mobian-project.org/doku.php...networking
Always-On VPN
VPN functionality will be added to Gnome-Control-Center in the future, but for now you can configure this via
Code:
nmcli
1. Add OpenVPN support for NetworkManager by running
Code:
sudo apt install network-manager-openvpn
2. Import your OpenVPN .ovpn file by running
Code:
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
Code:
password-flags
Code:
username={your username}
[vpn-secrets]
password={your vpn password}
4. Obtain the UUID of your VPN connection by running
Code:
sudo nmcli con show {your vpn connection name}
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:
Code:
secondaries={UUID};
6. Restart NetworkManager with
Code:
sudo systemctl restart NetworkManager
The thing is.. I seem to need to activate
Code:
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.