I have installed 12.04 and setting up the OpenVPN via network manager. the network-manager-openvpn-gnome is installed, and I can open "configure VPN..." and see "Add VPN", however I can not save my settings. The "Save.." button is gray and "Apply to all users" is selected and gray too.
Is this a bug ?
One solution is to start:
in the terminal. Terminal messages will tell you which entries of the connection are considered as invalid.
Source: https://bugs.launchpad.net/ubuntu/+source/network-manager-openvpn/+bug/990765/comments/27
I ran into this issue with LUbuntu 18.04. To try to add my VPN from a ovpn file, I ran:
But when I tried to add from the existing ovpn file, the save icon was grayed out. I noticed on the command line I saw this error:
I was able to solve the problem by installing an additional package that was missing:
Read this thread. The problem originates from the security policy implemented in Ubuntu. You will be required to change this as described in the displayed thread.
The file is
/usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy
, edit it with:You need to change the action:
to read
or
logout to activate.
As Enrique said in this post: https://askubuntu.com/a/143491/98277
I know this is super old, but I recently ran into the same issue. And there is no actual answer here, just a bunch of things to try.
I have found the answer:
The Apply button is disabled if the current settings don't pass validation.
If you run
nm-connection-editor
by itself, then select your VPN connection, you will see an error that explains what can't be saved.Correct those issues and the Apply button will become enabled.
In my case, I found that I didn't have a user name in the Identity > Authentication > User name field. Once I added my user name, the Apply button instantly enabled.
Hope this helps.
Are you sure you need exactly OpenVPN? In case you need to have vpn connection only with login and password (no certificate needed) try using PPTP.
Click to NetworkManager -> Configure VPN -> +Add -> Point-To-Point Tunneling Protocol (PPTP) in VPN section.
I had the same issue on Ubuntu Mate 16.10
Turns out it wouldn't work while connected from a Windows PC through xRDP. I tried it on the box locally and I was able to save the OpenVPN configuration and managed to connect.
TLDR: Disconnect from xRDP and try to save it locally
I had a similar problem with creating an openvpn connection in the gnome network manager.
I discovered that it expects you to enter a password in the "Private Key Password:" field. If your openvpn server doesn't require a password, then you need to click on the tiny little icon on the right side of the "Private Key Password:" field and select "The password is not required". You will then be able to click the "Save" button.
The question was asked almost 8 years ago, now Ubuntu 19 is available, but there is still a mess with VPN GUI in Linux world. I have recently tested different distributions, and here are the results.
Below are problems that you might experience:
You can, of course, like me, try adding different repos, play with different versions of those GUIs, debug connections, etc.
I found that only in KDE VPN GUI is reliable. Connection manager in current MX Linux (19.1) works fine.
But in case you have GUI problem I suggest you go reliable way - create connection without GUI. This requires minimal time and is pretty simple. Example is taken from this manual.
Create connection file
/etc/ppp/peers/your_connection_name
, with this contents:You might want to secure it with
chmod
as described in the article. To start connection usesudo pon your_connection_name
, andsudo poff your_connection_name
to stop. You can check connection status withip a
, monitor connection progress withwatch 'ip a | grep ppp'
, or check statistics withpppstats
.You might find some more complex and probably more correct ways of defining VPN connection without GUI, but this one is very simple and straightforward - just what typical GUI user is looking for.
After running it on the terminal while trying to get Cisco OpenConnect working in Ubuntu 21.10 it showed error:
and I managed to fix it by installing:
I had previously only installed
network-manager-openconnect
.Without the
-gnome
package, the VPN tab was missing entirely, and I couldn't enter the mandatory "Gateway" field.