Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-25-2011, 11:09 PM   #1
Registered: Aug 2009
Distribution: linux
Posts: 527

Rep: Reputation: 51
NetworkManager OpenVpn issue


I have an openvpn account. I am able to access the connection if I load the conf file from cli directly with openvpn. However, if using networkmanger the connection fails.

 NetworkManager[1485]: <info> Starting VPN service 'org.freedesktop.NetworkManager.openvpn'...
 NetworkManager[1485]: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' started (org.freedesktop.NetworkManager.openvpn), PID 7153
 NetworkManager[1485]: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' appeared, activating connections
 NetworkManager[1485]: <info> VPN plugin state changed: 1
 NetworkManager[1485]: <info> VPN plugin state changed: 3
 NetworkManager[1485]: <info> VPN connection 'openAIR' (Connect) reply received.
 nm-openvpn[7156]: OpenVPN 2.1.0 x86_64-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [MH] [PF_INET6] [eurephia] built on Jul 12 2010
 nm-openvpn[7156]: WARNING: No server certificate verification method has been enabled.  See for more info.
 nm-openvpn[7156]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
 nm-openvpn[7156]: WARNING: file '/etc/openvpn/air/user.key' is group or others accessible
 nm-openvpn[7156]: /usr/bin/openssl-vulnkey -q -b 2048 -m <modulus omitted>
 nm-openvpn[7156]: LZO compression initialized
 nm-openvpn[7156]: Attempting to establish TCP connection with [AF_INET] [nonblock]
 nm-openvpn[7156]: TCP connection established with [AF_INET]
 nm-openvpn[7156]: TCPv4_CLIENT link local: [undef]
 nm-openvpn[7156]: TCPv4_CLIENT link remote: [AF_INET]
 nm-openvpn[7156]: [server] Peer Connection Initiated with [AF_INET]
 NetworkManager[1485]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/tun0, iface: tun0)
 NetworkManager[1485]:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/tun0, iface: tun0): no ifupdown configuration found.
 modem-manager: (net/tun0): could not get port's parent device
 nm-openvpn[7156]: TUN/TAP device tun0 opened
 nm-openvpn[7156]: /sbin/ifconfig tun0 pointopoint mtu 1500
 nm-openvpn[7156]: /usr/lib/network-manager-openvpn/nm-openvpn-service-openvpn-helper tun0 1500 1560 init
 NetworkManager[1485]: <warn> VPN connection 'openAIR' (IP Config Get) timeout exceeded.
 nm-openvpn[7156]: Initialization Sequence Completed
 nm-openvpn[7156]: event_wait : Interrupted system call (code=4)
 nm-openvpn[7156]: /sbin/ifconfig tun0
 NetworkManager[1485]: <info> Policy set 'Auto elif' (wlan0) as default for IPv4 routing and DNS.
 avahi-daemon[1478]: Withdrawing workstation service for tun0.
 NetworkManager[1485]:    SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/tun0, iface: tun0)
 nm-openvpn[7156]: SIGTERM[hard,] received, process exiting
The above is when launching via the networkmanager gui. The CLI via openvpn works just fine.

I use Ubuntu. However, newtworkmanager is used in many distros. I figure this has something to do with networkmanager. I would appreciate any help.
Old 02-27-2011, 09:58 AM   #2
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Here's some related info for you:
1 members found this post helpful.
Old 02-27-2011, 11:21 AM   #3
Registered: Aug 2009
Distribution: linux
Posts: 527

Original Poster
Rep: Reputation: 51
Thanks for posting that. I still have not figured it out. I just launch openVPN and pont it to the need info. Its something to do with NetworkManger's plugin for OpenVPN connections.
Old 02-27-2011, 12:04 PM   #4
Registered: Aug 2009
Distribution: linux
Posts: 527

Original Poster
Rep: Reputation: 51
ok, welll this is odd. It works now. Even more strange, I didnt perform an update. I am thinking a gremlin fixed it or something. However, I have no way of debugging or anything cause I have no idea what changed. My /etc/alternatives changed too. O well. Guess I will mark as solved. Sorry I cant post the reason it works now.

However, you can debug it by forcing the plugin to run under a few diff conditions ( this when I noticed it worked ). What you can do is make sure that the plugin is not running with:
ps -C nm-openvpn-service
Next, kill the service with:
sudo killall nm-openvpn-service
Next, youi can load the plugin using 32bit or 64bit plugins I am guessing. However, I am not sure if it makes a difference. All I know is the same file exist in multiple locations. In my case ( gremlins ) made all of them work. Essentially, run each of the below snippets in the terminal THEN use the NetworkManger gui to try and connect. The NetworkManager site at gnome showed this as the way to debug things. I just had to change the location of the libs used. For some reason the ones on the debug how to didnt exist.
sudo OPENVPN_DEBUG=1 /usr/lib64/network-manager-openvpn/nm-openvpn-service
sudo OPENVPN_DEBUG=1 /usr/lib/network-manager-openvpn/nm-openvpn-service
sudo OPENVPN_DEBUG=1 /usr/lib32/network-manager-openvpn/nm-openvpn-service

Hope this helps anyone else.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Networkmanager + OpenVPN : timeout problem (Fedora 10) jonaskellens Linux - Networking 5 11-02-2011 09:30 AM
[SOLVED] OpenVPN issue qwertyjjj Linux - Software 18 01-07-2010 08:06 AM
OpenVPN Issue greenb1rd Linux - Networking 5 11-06-2009 11:25 AM
openVPN issue deibertine Linux - Server 3 09-24-2009 09:59 PM
Configure NetworkManager OpenVPN - Import Configuration Fails morbo77 Linux - Networking 3 09-18-2009 07:08 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration