Created
August 21, 2021 17:15
-
-
Save janeklb/1dd1657a68deaf1b32a9002db94f6d40 to your computer and use it in GitHub Desktop.
Importin openvpn connections into network manager on (x)ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install openvpn network manager | |
# `network-manager-openvpn-gnome` is required for password management + interation with keyring | |
sudo apt install network-manager network-manager-openvpn network-manager-openvpn-gnome | |
# import .ovpn file into network manager | |
nmcli connection import type openvpn file <PATH-TO-OVPN-FILE> | |
# set username | |
nmcli connection modify openvpn-connection +vpn.data username=<USERNAME> | |
# set password | |
nmcli connection modify openvpn-connection +vpn.secrets password=<PASSWORD> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment