Re: NetworkManager doesnt save the ip address



On Wed, 2009-03-18 at 12:11 +0100, Patrick Steiner wrote:
> Hi,
> 
> meanwhile i figured the following out.
> 
> If i add the keys local-ip and remote-ip to the my gconf, networkmanager
> breaks a few steps later.

Odd; shouldn't happen.  Try this (as root):

1) killall -TERM nm-openvpn-service
2) /usr/libexec/nm-openvpn-service
3) (as your user) try to activate the VPN connection

Let me know what the output of nm-openvpn-service is.  Debugging it this
way lets the stdout/stderr of openvpn itself be seen.

Dan


> here is a output of my /var/log/messages file:
> 
> 
> Mar 18 12:08:51 hostX ntpd[2314]: Deleting interface #8 tun0,
> 192.168.11.31#123, interface stats: received=0, sent=0, dropped=0,
> active_time=980 secs
> Mar 18 12:08:52 hostX NetworkManager: <info>  Starting VPN service
> 'org.freedesktop.NetworkManager.openvpn'...
> Mar 18 12:08:52 hostX NetworkManager: <info>  VPN service
> 'org.freedesktop.NetworkManager.openvpn' started
> (org.freedesktop.NetworkManager.openvpn), PID 1671
> Mar 18 12:08:52 hostX NetworkManager: <info>  VPN service
> 'org.freedesktop.NetworkManager.openvpn' just appeared, activating
> connections
> Mar 18 12:08:52 hostX NetworkManager: <info>  VPN plugin state changed: 1
> Mar 18 12:08:52 hostX NetworkManager: <info>  VPN plugin state changed: 3
> Mar 18 12:08:52 hostX nm-openvpn[1673]: OpenVPN 2.1_rc15
> i386-redhat-linux-gnu [SSL] [LZO2] [EPOLL] built on Nov 30 2008
> Mar 18 12:08:52 hostX nm-openvpn[1673]: NOTE: the current
> --script-security setting may allow this configuration to call
> user-defined scripts
> Mar 18 12:08:52 hostX nm-openvpn[1673]: LZO compression initialized
> Mar 18 12:08:52 hostX NetworkManager: <info>  VPN connection 'vpnA'
> (Connect) reply received.
> Mar 18 12:08:52 hostX kernel: tun0: Disabled Privacy Extensions
> Mar 18 12:08:52 hostX nm-openvpn[1673]: TUN/TAP device tun0 opened
> Mar 18 12:08:52 hostX nm-openvpn[1673]: /sbin/ip link set dev tun0 up
> mtu 1500
> Mar 18 12:08:52 hostX nm-openvpn[1673]: /sbin/ip addr add dev tun0 local
> 192.168.11.31 peer 192.168.11.30
> Mar 18 12:08:52 hostX nm-openvpn[1673]:
> /usr/libexec/nm-openvpn-service-openvpn-helper tun0 1500 1545
> 192.168.11.31 192.168.11.30 init
> Mar 18 12:08:52 hostX NetworkManager: <info>  VPN plugin failed: 2
> Mar 18 12:08:52 hostX nm-openvpn[1673]: script failed: external program
> exited with error status: 1
> Mar 18 12:08:52 hostX nm-openvpn[1673]: Exiting
> Mar 18 12:08:52 hostX NetworkManager: <info>  VPN plugin failed: 1
> Mar 18 12:08:52 hostX NetworkManager: <info>  VPN plugin state changed: 6
> Mar 18 12:08:52 hostX NetworkManager: <info>  VPN plugin state change
> reason: 0
> Mar 18 12:08:52 hostX NetworkManager: <WARN> 
> connection_state_changed(): Could not process the request because no VPN
> connection was active.
> Mar 18 12:08:52 hostX NetworkManager: <info>  Policy set 'System eth0'
> (eth0) as default for routing and DNS.
> 
> So it looks like the openvpn plugin is broken.
> 
> I'll try to figure out more later...
> 
> regards,
>  patrick
> 
> Robert Vogelgesang wrote:
> > Hello,
> >
> > On Fri, Mar 13, 2009 at 09:15:02AM +0100, Patrick Steiner wrote:
> >> Hi,
> >>
> >> i have setup a openvpn tunnel and if i setup this via a simple openvpn
> >> config file all works fine. But if i try to import (or build from
> >> scratch) to the nm-connection-editor the Local IP Address gets lost. It
> >> also isnt saved into the gconf file. If I open the nm-connection-editor
> >> again I get the following error:
> >>
> >
> > a few minutes ago I've reported an issue with the "hmac auth" option
> > support of the openvpn plugin that seems to be based on the same grounds,
> > i. e. an option set in the GUI is not saved in the gconf file.
> >
> >
> >> I had a similar bug a few versions ago with the pptp-vpn settings. So
> >> could that also be such a bug?
> >>
> >> I am using NetworkManger with Fedora 10:
> >
> > Yup, me too.
> >
> > 	Robert
> >
> > _______________________________________________
> > NetworkManager-list mailing list
> > NetworkManager-list gnome org
> > http://mail.gnome.org/mailman/listinfo/networkmanager-list
> >
> 
> _______________________________________________
> NetworkManager-list mailing list
> NetworkManager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]