I am trying to set up a script driven VPN connection with nmcli on Lubuntu 12.10 using Openconnect and NetworkManager and I cannot seem to get it to connect either with the saved credentials or via sudo with



as I've seen suggested many places.

Any ideas on how to bypass the connect dialog?

  • Have you looked into openconnect CLI with vpnc-scripts?
    – earthmeLon
    Feb 15 '16 at 18:24

Assuming you've installed openvpn, if not start with install :

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install openvpn

then you should Edit /etc/default/openvpn.

so issue this : sudo gedit /etc/default/openvpn

then Uncomment the AUTOSTART="all" line.

enter image description here

these steps are issued from this link : Starting OpenVPN client automatically at boot

save and close.

If a username/password is required,

edit the .conf file

edit auth-user-pass user-password-filename

Create a file containing:



save and close. reboot your system.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.