If a username / password is not required in order to connect, then rename the .ovpn files to have an extension of .conf.
OpenVPN should connect on boot, even without autostart=all.
If a username/password is required,
edit the .conf file
edit auth-user-pass user-password-filename
Create a file containing:
username
password
If you want to connect with Network Manager, make sure you first do:
sudo apt-get install network-manager-openvpn
Make sure your Ubuntu is at least 14.04. This doesn't work on 12.04.
If you don't have your ca.crt, client.crt, etc, extract them from .conf.
With Network Manager, create a new VPN connection or import your conf.
Add the certificates and ta.key.
Routes, use connection only for resources on its network.
Edit your Internet connection with network manager. Choose connect with VPN, then choose your VPN connection.
nano
forgedit
, but I can't use nm-applet to store credentials in the keyring. – Jonathan Y. Dec 10 '14 at 21:40AUTOSTART="all"
attempts to start every.conf
file in/etc/openvpn
(I'd love to have confirmation, though). An answer to (ii) is also reasonably scoped withing this question--you can't automatically initiate a VPN connection unless the secrets are available without user input (keychain being preferable to plain-text for obvious reasons). I admit that (iii) is extracurricular and might well merit a new question. None of them are answered in these links, that I can see, though. – Jonathan Y. Dec 11 '14 at 12:46