Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Importin openvpn connections into network manager on (x)ubuntu
# 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