paul's picture

I recently did a new Kubuntu install on my desktop. Today I was reinstalling openvpn that I use to get access to serveral remote networks. As always, there are issue with openvpn client setup:

  • Install openvpn for command-line and Network Manager. I installed network-manager-openvpn-kde (if you are using gnome - install network-manager-openvpn-gnome). This will install all the required packages including what is needed for the comand-line interface.
  • I then create my networkmanager openvpn entry for the office concern. When I try to connect, I find that the connection fails.
  • Trying from command line - I find that the connection works but the DNS is not set - so I need to use ip address instead of the url.

The problem is two fold:

  • It seems that there is a error in the /etc/dbus-1/system.d/nm-openvpn-service.conf file. As a result of a missing entry - only root can connect using network-manger openvpn plugin. The following lines had to be added to this file
  •        <policy user="at_console"> 
                <allow own="org.freedesktop.NetworkManager.vpnc"/> 
                <allow send_destination="org.freedesktop.NetworkManager.openvpn"/> 
            </policy>
    Thank to the many pages on the internet telling what to do to fixed this problem.

As for the command prompt problem - I needed to install the package resolvconf for it to work.