This is a **VERY** advanced topic with some creative tricks to simplify getting the config added to NetworkManager. You're on your own. The author *strongly* recommends reading through this and adapting to other services well ahead of any real need(s). ## Inspiration / Sources - [https://vpn.ac/ovpn](https://vpn.ac/ovpn) ## Prep Work Download OpenVPN configs, drop them in a good place on the filesystem and script import. ### Download OpenVPN Template Files ``` bash mkdir -p /etc/vpn.ac cd /etc/vpn.ac mkdir openvpn-strong cd openvpn-strong wget https://vpn.ac/ovpn/AES-256-UDP.zip unzip AES-256-UDP.zip cd .. wget https://vpn.ac/ovpn/ca.crt
# NetworkManager Gnome is *required* to get a missing library on xenial # OMIT Gnome item if you can get away with it... apt update apt install network-manager-openvpn network-manager-openvpn-gnome
Import the cleaned up, provided OpenVPN profiles. This will require intervention on your part after the profile is created in NetworkManager to ensure it can connect properly.
nmcli connection import type openvpn file /etc/vpn.ac/openvpn-strong/AES-256-UDP/[con_name].ovpn nmcli con show vim /etc/NetworkManager/system-connections/[con_name]
id=vpn.ac - [con_name] [vpn] password-flags=0 user-name=[your_username] [vpn-secrets] password=[your_password]
# Reload For Changes nmcli connection reload [uuid_from_above] # Connect nmcli con up [uuid_from_above]
TODO : Verify this is a reasonable subset
https://ipx.ac/ (tool provided by VPN.ac)