gray button for saving "editing VPN connection" in network-manager

Solution 1:

One solution is to start:

nm-connection-editor

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

Solution 2:

I ran into this issue with LUbuntu 18.04. To try to add my VPN from a ovpn file, I ran:

sudo nm-connection-editor

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:

 Could not load editor VPN plugin for “org.freedesktop.NetworkManager.openvpn” (missing plugin file "/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-vpn-plugin-openvpn-editor.so"

I was able to solve the problem by installing an additional package that was missing:

sudo apt-get install network-manager-openvpn-gnome

Solution 3:

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:

sudo -H gedit /usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy

You need to change the action:

<action id="org.freedesktop.NetworkManager.settings.modify.own">
.
.
.
<allow_inactive>no</allow_inactive>

to read

<allow_inactive>auth_admin</allow_inactive>

or

<allow_inactive>yes</allow_inactive>

logout to activate.

Solution 4:

As Enrique said in this post: https://askubuntu.com/a/143491/98277

Make sure these fields are populated:
    User Certificate
    CA certificate
    Private Key

Your Save button will work then.