No pptp vpn connection with 10.10 amd64

Bug #681739 reported by malheum
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
network-manager-pptp (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: network-manager-pptp

Hello,

I did a fresh install of Ubuntu 10.10 amd64 on my laptop. I use a pptp vpn connection to the ipredator service. network-manager-pptp gives me some bogus message about a timeout and deconnects, even though the connection is clearly established.

$ ifconfig ppp0
ppp0 Link encap:Punkt-zu-Punkt-Verbindung
          inet Adresse:93.182.149.43 P-z-P:93.182.149.2 Maske:255.255.255.255
          UP PUNKTZUPUNKT RUNNING NOARP MULTICAST MTU:1496 Metrik:1
          RX packets:67 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:3
          RX bytes:6147 (6.1 KB) TX bytes:102 (102.0 B)

Connection is established. So I am very sure that the settings are correct.

$ route -n
Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
93.182.149.2 192.168.10.1 255.255.255.255 UGH 0 0 0 wlan0
93.182.149.2 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.10.0 0.0.0.0 255.255.255.0 U 2 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlan0
0.0.0.0 192.168.10.1 0.0.0.0 UG 0 0 0 wlan0

The default route is still the old one over the wireless interface. It should be substituted by a new default route over ppp0.

After the deconnection by network-manager the routing table looks like this:
$ route -n
Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
93.182.149.2 192.168.10.1 255.255.255.255 UGH 0 0 0 wlan0
192.168.10.0 0.0.0.0 255.255.255.0 U 2 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlan0
0.0.0.0 192.168.10.1 0.0.0.0 UG 0 0 0 wlan0

Clearly the host route to 93.182.149.2 should be deleted on cleanup, which is a bug too, imho.

This is from /var/log/syslog during the time that the connection is started and then terminated.
Nov 26 11:24:27 tuxtux NetworkManager[1019]: <info> VPN service 'org.freedesktop.NetworkManager.pptp' started (org.freedesktop.NetworkManager.pptp), PID 2442
Nov 26 11:24:27 tuxtux NetworkManager[1019]: <info> VPN service 'org.freedesktop.NetworkManager.pptp' appeared, activating connections
Nov 26 11:24:27 tuxtux NetworkManager[1019]: <info> VPN plugin state changed: 3
Nov 26 11:24:27 tuxtux NetworkManager[1019]: <info> VPN connection 'ipredator pptp' (Connect) reply received.
Nov 26 11:24:27 tuxtux pppd[2445]: Plugin /usr/lib/pppd/2.4.5//nm-pptp-pppd-plugin.so loaded.
Nov 26 11:24:27 tuxtux pppd[2445]: pppd 2.4.5 started by root, uid 0
Nov 26 11:24:28 tuxtux NetworkManager[1019]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Nov 26 11:24:28 tuxtux NetworkManager[1019]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
Nov 26 11:24:28 tuxtux pppd[2445]: Using interface ppp0
Nov 26 11:24:28 tuxtux pppd[2445]: Connect: ppp0 <--> /dev/pts/0
Nov 26 11:24:28 tuxtux modem-manager: (net/ppp0): could not get port's parent device
Nov 26 11:24:28 tuxtux pptp[2450]: nm-pptp-service-2442 log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Nov 26 11:24:28 tuxtux pptp[2458]: nm-pptp-service-2442 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Nov 26 11:24:28 tuxtux pptp[2458]: nm-pptp-service-2442 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Nov 26 11:24:28 tuxtux pptp[2458]: nm-pptp-service-2442 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Nov 26 11:24:29 tuxtux pptp[2458]: nm-pptp-service-2442 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Nov 26 11:24:29 tuxtux pptp[2458]: nm-pptp-service-2442 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Nov 26 11:24:29 tuxtux pptp[2458]: nm-pptp-service-2442 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 4608).
Nov 26 11:24:29 tuxtux pppd[2445]: CHAP authentication succeeded
Nov 26 11:24:29 tuxtux kernel: [ 1538.050917] padlock: VIA PadLock Hash Engine not detected.
Nov 26 11:24:29 tuxtux modprobe: FATAL: Error inserting padlock_sha (/lib/modules/2.6.35-23-generic/kernel/drivers/crypto/padlock-sha.ko): No such device
Nov 26 11:24:29 tuxtux kernel: [ 1538.073795] PPP MPPE Compression module registered
Nov 26 11:24:29 tuxtux pppd[2445]: MPPE 128-bit stateless compression enabled
Nov 26 11:24:30 tuxtux pppd[2445]: Cannot determine ethernet address for proxy ARP
Nov 26 11:24:30 tuxtux pppd[2445]: local IP address 93.182.149.43
Nov 26 11:24:30 tuxtux pppd[2445]: remote IP address 93.182.149.2
Nov 26 11:24:30 tuxtux pppd[2445]: primary DNS address 93.182.182.85
Nov 26 11:24:30 tuxtux pppd[2445]: secondary DNS address 93.182.182.85
Nov 26 11:25:08 tuxtux NetworkManager[1019]: <warn> VPN connection 'ipredator pptp' (IP Config Get) timeout exceeded.
Nov 26 11:25:10 tuxtux pppd[2445]: Terminating on signal 15
Nov 26 11:25:10 tuxtux pppd[2445]: Connect time 0.7 minutes.
Nov 26 11:25:10 tuxtux pppd[2445]: Sent 0 bytes, received 12874 bytes.
Nov 26 11:25:10 tuxtux NetworkManager[1019]: <info> Policy set 'Auto Alice Wlan' (wlan0) as default for IPv4 routing and DNS.
Nov 26 11:25:10 tuxtux pppd[2445]: MPPE disabled
Nov 26 11:25:10 tuxtux pppd[2445]: Child process /usr/sbin/pptp vpn.ipredator.se --nolaunchpppd --loglevel 0 --logstring nm-pptp-service-2442 (pid 2447) terminated with signal 15
Nov 26 11:25:10 tuxtux pppd[2445]: Connection terminated.
Nov 26 11:25:10 tuxtux avahi-daemon[1018]: Withdrawing workstation service for ppp0.
Nov 26 11:25:10 tuxtux NetworkManager[1019]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Nov 26 11:25:10 tuxtux pptp[2450]: nm-pptp-service-2442 warn[decaps_hdlc:pptp_gre.c:204]: short read (-1): Input/output error
Nov 26 11:25:10 tuxtux pptp[2450]: nm-pptp-service-2442 warn[decaps_hdlc:pptp_gre.c:216]: pppd may have shutdown, see pppd log
Nov 26 11:25:10 tuxtux pptp[2458]: nm-pptp-service-2442 log[callmgr_main:pptp_callmgr.c:234]: Closing connection (unhandled)
Nov 26 11:25:10 tuxtux pptp[2458]: nm-pptp-service-2442 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Nov 26 11:25:10 tuxtux pptp[2458]: nm-pptp-service-2442 log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
Nov 26 11:25:11 tuxtux pppd[2445]: Exit.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: network-manager-pptp 0.8.1+git.20100810t192516.1e6db5a-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-23.40-generic 2.6.35.7
Uname: Linux 2.6.35-23-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Fri Nov 26 11:25:40 2010
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
 LANGUAGE=de_DE:de:en_GB:en
 PATH=(custom, user)
 LANG=de_DE.utf8
 SHELL=/bin/bash
SourcePackage: network-manager-pptp

Revision history for this message
malheum (maxheise) wrote :
Revision history for this message
malheum (maxheise) wrote :

The pptp connection works reliably if I enter one single of the many ip addresses of the ipredator vpn gateway instead of the dns name.

vpn.ipredator.se resolves to quite a lot of ip addresses. So either network-manager-pptp has a general bug with the dns resolver, or it has problems with multi homed hosts.

$ dig @8.8.8.8 vpn.ipredator.se

; <<>> DiG 9.7.1-P2 <<>> @8.8.8.8 vpn.ipredator.se
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40086
;; flags: qr rd ra; QUERY: 1, ANSWER: 20, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;vpn.ipredator.se. IN A

;; ANSWER SECTION:
vpn.ipredator.se. 557 IN A 93.182.130.2
vpn.ipredator.se. 557 IN A 93.182.133.2
vpn.ipredator.se. 557 IN A 93.182.146.2
vpn.ipredator.se. 557 IN A 93.182.147.2
vpn.ipredator.se. 557 IN A 93.182.148.2
vpn.ipredator.se. 557 IN A 93.182.149.2
vpn.ipredator.se. 557 IN A 93.182.150.2
vpn.ipredator.se. 557 IN A 93.182.151.2
vpn.ipredator.se. 557 IN A 93.182.152.2
vpn.ipredator.se. 557 IN A 93.182.153.2
vpn.ipredator.se. 557 IN A 93.182.164.2
vpn.ipredator.se. 557 IN A 93.182.179.2
vpn.ipredator.se. 557 IN A 93.182.180.2
vpn.ipredator.se. 557 IN A 93.182.181.2
vpn.ipredator.se. 557 IN A 93.182.185.2
vpn.ipredator.se. 557 IN A 93.182.186.2
vpn.ipredator.se. 557 IN A 93.182.187.2
vpn.ipredator.se. 557 IN A 93.182.188.2
vpn.ipredator.se. 557 IN A 93.182.189.2
vpn.ipredator.se. 557 IN A 93.182.190.2

;; Query time: 33 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sat Dec 11 16:33:42 2010
;; MSG SIZE rcvd: 354

works => Gateway: 93.183.153.2
does not work => Gateway: vpn.ipredator.se

Revision history for this message
ds9 (stephane-lentz) wrote :

I face the same issue - other DNS name but also a name mapped to several IPs.
Others users facing the issue exist : http://ubuntuforums.org/showthread.php?p=10575345#post10575345

Revision history for this message
ds9 (stephane-lentz) wrote :

The problem occurs only on 64 bit systems.
The error seems to come from nm-pptp-service

NetworkManager[3329]: <warn> VPN connection 'HP VPN PPTP MUNICH' (IP Config Get) timeout exceeded.

** (nm-pptp-service:7272): WARNING **: <WARN> get_pptp_gw_address_as_gvalue(): couldn't look up PPTP VPN gateway IP address 'munich.mycompany.net' (-5)

** Message: <info> Terminated ppp daemon with PID 7302.

Terminating on signal 15
** Message: nm-pptp-ppp-plugin: (nm_phasechange): status 10 / phase 'terminate'
** Message: nm-pptp-ppp-plugin: (nm_phasechange): status 8 / phase 'network'
Connect time 0.7 minutes.
Sent 0 bytes, received 0 bytes.
NetworkManager[3329]: <info> Policy set 'Auto eth0' (eth0) as default for IPv4 routing and DNS.
MPPE disabled
** Message: nm-pptp-ppp-plugin: (nm_phasechange): status 10 / phase 'terminate'
** Message: nm-pptp-ppp-plugin: (nm_phasechange): status 5 / phase 'establish'
** Message: nm-pptp-ppp-plugin: (nm_phasechange): status 5 / phase 'establish'
Child process /usr/sbin/pptp munich.tunnel.hp.net --nolaunchpppd --loglevel 0 --logstring nm-pptp-service-7272 (pid 7304) terminated with signal 15
** Message: nm-pptp-ppp-plugin: (nm_phasechange): status 11 / phase 'disconnect'
Connection terminated.
NetworkManager[3329]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
** Message: nm-pptp-ppp-plugin: (nm_phasechange): status 1 / phase 'dead'
** Message: nm-pptp-ppp-plugin: (nm_exit_notify): cleaning up

** (nm-pptp-service:7272): WARNING **: <WARN> pppd_watch_cb(): pppd exited with error code 5

Revision history for this message
hariprasad (hariprasad) wrote :

I have similar problem on Ubuntu 10.04 x86-64. When Notebook with Win XP is connected, then connection is established, when i use my desktop with Ubuntu, than not. Configuration is of cause the same.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.