Re: Problems with `/etc/resolv.conf' after OpenVPN connection setup



Hi Thomas,

look at https://bugs.launchpad.net/bugs/96260 I posted I fix there for
your problem.

Am Donnerstag, den 24.05.2007, 12:38 +0200 schrieb Thomas Schwinge:
> [I'm not subscribed, so please keep me cced.]
> 
> 
> Hello!
> 
> I've been successfully using the NetworkManager on Ubuntu Feisty Fawn :-)
> and just now gave its OpenVPN module a try.  After having sorted out some
> difficulties with the certificates (see
> <https://bugs.launchpad.net/ubuntu/+source/network-manager-openvpn/+bug/91615>)
> there is -- so far ;-) -- only one problem remaining:
> 
> I connect to my university's wlan network and receive the following dns data:
> 
> #v+
> $ cat /etc/resolv.conf
> # generated by NetworkManager, do not edit!
> 
> search rus.uni-stuttgart.de
> 
> 
> nameserver 129.69.1.28
> nameserver 141.58.231.9
> #v-
> 
> If I now, however, establish the OpenVPN connection, all the ``search''
> and ``nameserver'' lines disappear, so dns is in a non-functioning state.
> If I re-add those lines to `/etc/resolv.conf', everything is fine again.
> 
> Here is what the log shows:
> 
> #v+
> May 24 12:17:50 dirichlet NetworkManager: <information>^IWill activate VPN connection 'Universität Stuttgart (default gateway)', service 'org.freedesktop.NetworkManager.openvpn', user_name 'thomas', vpn_data 'connection-type / x509userpass / dev / tun / remote / openvpn.rus.uni-stuttgart.de / port / 1194 / proto / udp / ca / /fs/data/mount/home/thomas/tmp/vpn/userca.pem / cert / /fs/data/mount/home/thomas/tmp/vpn/usercert.pem / key / /fs/data/mount/home/thomas/tmp/vpn/userkey.pem / comp-lzo / yes / shared-key /  / local-ip /  / remote-ip /  / username / etk43509 / cipher / AES-256-CBC', route ''. 
> May 24 12:17:50 dirichlet NetworkManager: <information>^IVPN Activation (Universität Stuttgart (default gateway)) Stage 1 of 4 (Connection Prepare) scheduled... 
> May 24 12:17:50 dirichlet NetworkManager: <information>^IVPN Activation (Universität Stuttgart (default gateway)) Stage 1 of 4 (Connection Prepare) ran VPN service daemon org.freedesktop.NetworkManager.openvpn (PID 7140) 
> May 24 12:17:50 dirichlet NetworkManager: <information>^IVPN Activation (Universität Stuttgart (default gateway)) Stage 1 of 4 (Connection Prepare) complete. 
> May 24 12:17:50 dirichlet NetworkManager: <information>^IVPN Activation (Universität Stuttgart (default gateway)) Stage 2 of 4 (Connection Prepare Wait) scheduled... 
> May 24 12:17:50 dirichlet NetworkManager: <information>^IVPN service 'org.freedesktop.NetworkManager.openvpn' signaled state change 1 -> 6. 
> May 24 12:17:50 dirichlet NetworkManager: <information>^IVPN Activation (Universität Stuttgart (default gateway)) Stage 2 of 4 (Connection Prepare Wait) waiting... 
> May 24 12:17:50 dirichlet NetworkManager: <information>^IVPN Activation (Universität Stuttgart (default gateway)) Stage 2 of 4 (Connection Prepare Wait) complete. 
> May 24 12:17:50 dirichlet NetworkManager: <information>^IVPN Activation (Universität Stuttgart (default gateway)) Stage 3 of 4 (Connect) scheduled... 
> May 24 12:17:50 dirichlet NetworkManager: <information>^IVPN Activation (Universität Stuttgart (default gateway)) Stage 3 of 4 (Connect) sending connect request. 
> May 24 12:17:50 dirichlet NetworkManager: <information>^IVPN Activation (Universität Stuttgart (default gateway)) Stage 3 of 4 (Connect) request sent, waiting for reply... 
> May 24 12:17:50 dirichlet NetworkManager: <information>^IVPN service 'org.freedesktop.NetworkManager.openvpn' signaled state change 6 -> 3. 
> May 24 12:17:50 dirichlet NetworkManager: <information>^IVPN Activation (Universität Stuttgart (default gateway)) Stage 3 of 4 (Connect) reply received. 
> May 24 12:17:50 dirichlet NetworkManager: <information>^IVPN Activation (Universität Stuttgart (default gateway)) Stage 4 of 4 (IP Config Get) timeout scheduled... 
> May 24 12:17:50 dirichlet NetworkManager: <information>^IVPN Activation (Universität Stuttgart (default gateway)) Stage 3 of 4 (Connect) complete, waiting for IP configuration... 
> May 24 12:17:50 dirichlet nm-openvpn[7147]: OpenVPN 2.0.9 i486-pc-linux-gnu [SSL] [LZO] [EPOLL] built on Mar  2 2007
> May 24 12:17:50 dirichlet nm-openvpn[7147]: WARNING: file '/fs/data/mount/home/thomas/tmp/vpn/userkey.pem' is group or others accessible
> May 24 12:17:50 dirichlet nm-openvpn[7147]: LZO compression initialized
> May 24 12:17:50 dirichlet nm-openvpn[7147]: UDPv4 link local: [undef]
> May 24 12:17:50 dirichlet nm-openvpn[7147]: UDPv4 link remote: 129.69.90.133:1194
> May 24 12:17:51 dirichlet nm-openvpn[7147]: [openvpn.rus.uni-stuttgart.de] Peer Connection Initiated with 129.69.90.133:1194
> May 24 12:17:52 dirichlet nm-openvpn[7147]: ECHO:+-------------- important notes --------------+
> May 24 12:17:52 dirichlet nm-openvpn[7147]: ECHO:|
> May 24 12:17:52 dirichlet nm-openvpn[7147]: ECHO:| - this box will be used to deliver
> May 24 12:17:52 dirichlet nm-openvpn[7147]: ECHO:| important notes to you
> May 24 12:17:52 dirichlet nm-openvpn[7147]: ECHO:|
> May 24 12:17:52 dirichlet nm-openvpn[7147]: ECHO:+----------------- sincerely your vpn-admin --+
> May 24 12:17:52 dirichlet nm-openvpn[7147]: TUN/TAP device tun0 opened
> May 24 12:17:52 dirichlet nm-openvpn[7147]: ifconfig tun0 129.69.205.114 pointopoint 129.69.205.113 mtu 1500
> May 24 12:17:52 dirichlet nm-openvpn[7147]: /usr/lib/network-manager-openvpn/nm-openvpn-service-openvpn-helper tun0 1500 1558 129.69.205.114 129.69.205.113 init
> May 24 12:17:52 dirichlet NetworkManager: <information>^IVPN Activation (Universität Stuttgart (default gateway)) Stage 4 of 4 (IP Config Get) reply received. 
> May 24 12:17:52 dirichlet NetworkManager: <WARNING>^I nm_system_vpn_device_set_from_ip4_config (): nm_system_device_set_from_ip4_config(): error -17 returned from rtnl_addr_add(): Netlink Error (errno = File exists) 
> May 24 12:17:52 dirichlet nm-openvpn[7147]: ERROR: Linux route add command failed: shell command exited with error status: 7
> May 24 12:17:52 dirichlet nm-openvpn[7147]: Initialization Sequence Completed
> May 24 12:17:53 dirichlet NetworkManager: <information>^IClearing nscd hosts cache. 
> May 24 12:17:53 dirichlet NetworkManager: <WARNING>^I nm_spawn_process (): nm_spawn_process('/usr/sbin/nscd -i hosts'): could not spawn process. (Failed to execute child process "/usr/sbin/nscd" (No such file or directory))  
> May 24 12:17:53 dirichlet NetworkManager: <information>^IVPN Activation (Universität Stuttgart (default gateway)) Stage 4 of 4 (IP Config Get) complete. 
> May 24 12:17:53 dirichlet NetworkManager: <information>^IVPN Activation (Universität Stuttgart (default gateway)) successful. 
> May 24 12:17:53 dirichlet NetworkManager: <information>^IVPN service 'org.freedesktop.NetworkManager.openvpn' signaled state change 3 -> 4. 
> #v-
> 
> To me, these logs suggest that setting up a new route failed, because
> there is already one set up.  But I didn't investigate further.
> 
> 
> Any ideas?  Just ask if you need further data.
> 
> 
> Regards,
>  Thomas
> _______________________________________________
> 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]