Electrotek

From programming to day dreaming

NetworkManager’s OpenVPN plugin problems on Ubuntu

After trying to connect to OpenVPN using NetworkManager on Ubuntu 10.04 LTS (Lucid Lynx) I got an error:

The VPN connection “XXX” failed because there were no valid VPN secrets

Nothing seemed to help, but after some google’ing I have found a fix that worked for me:

1. Edit /etc/dbus-1/system.d/nm-openvpn-service.conf and add additional policy:

<policy user="at_console">
    <allow own="org.freedesktop.NetworkManager.vpnc"/>
    <allow send_destination="org.freedesktop.NetworkManager.vpnc"/>
</policy>

2. Restart the NetworkManager after the new policy is added: sudo /etc/init.d/network-manager restart

After these steps the VPN started to work.

3 Responses to NetworkManager’s OpenVPN plugin problems on Ubuntu

  1. P.R. Manjee 2011-02-18 at 08:09:17

    WOW THANK YOU ! Do you have any idea how long I beat my skull against my desk to get this issue resolved? YOU’RE MY HERO ! Thanks again man !

  2. chris 2011-05-27 at 04:32:35

    you==pure(awesome);

  3. Rups J Sivo 2011-09-13 at 02:49:22

    Saved my day… Thanks heaps!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.