cannot connect to PPTP server with iPhone

Bug #663184 reported by Ivars Strazdiņš
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
network-manager-pptp (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Binary package hint: network-manager-pptp

Hi,
I have a MacBook Pro with dualboot and Ubuntu 10.10 as second OS.
I suspect there is something wrong with iPhone / PPTP interaction.
I am not sure this is the correct place for a bug report, but you can always point me to the right direction, correct?

OSX + pptp + iphone => OK
OSX + pptp + wireless => OK
Ubuntu 10.10 + pptp + wireless => OK
Ubuntu 10.10 + pptp + iphone ≠ doesn't work

In other words - the same iPhone works with PPTP VPN connection from OSX and the same VPN connection works over wireless in both OSX and Linux. But PPTP over iPhone in Ubuntu doesn't work. Connection times out. This happens both with USB and Bluetooth connection.

Comparing two connection logs - failed and successful, I see that "PPTP_SET_LINK_INFO received from peer_callid 0" message is never received from PPTP server and messages file has this record
Oct 19 12:43:30 poga-linux pppd[3470]: LCP: timeout sending Config-Requests

Logfiles are below.

Message log for failed connection attempt:

Oct 19 12:42:59 poga-linux pppd[3470]: Plugin /usr/lib/pppd/2.4.5//nm-pptp-pppd-plugin.so loaded.
Oct 19 12:42:59 poga-linux pppd[3470]: pppd 2.4.5 started by root, uid 0
Oct 19 12:42:59 poga-linux pppd[3470]: Using interface ppp0
Oct 19 12:42:59 poga-linux pppd[3470]: Connect: ppp0 <--> /dev/pts/1
Oct 19 12:43:30 poga-linux pppd[3470]: LCP: timeout sending Config-Requests
Oct 19 12:43:30 poga-linux pppd[3470]: Connection terminated.
Oct 19 12:43:30 poga-linux pppd[3470]: Modem hangup
Oct 19 12:43:30 poga-linux pppd[3470]: Exit.

Daemon log for succesful connection via wireless:

Oct 19 12:40:12 poga-linux NetworkManager[1007]: <info> Starting VPN service 'org.freedesktop.NetworkManager.pptp'...
Oct 19 12:40:12 poga-linux NetworkManager[1007]: <info> VPN service 'org.freedesktop.NetworkManager.pptp' started (org.freedesktop.NetworkManager.pptp), PID 3121
Oct 19 12:40:12 poga-linux NetworkManager[1007]: <info> VPN service 'org.freedesktop.NetworkManager.pptp' appeared, activating connections
Oct 19 12:40:12 poga-linux NetworkManager[1007]: <info> VPN plugin state changed: 1
Oct 19 12:40:22 poga-linux NetworkManager[1007]: <info> VPN plugin state changed: 3
Oct 19 12:40:22 poga-linux NetworkManager[1007]: <info> VPN connection 'VPN' (Connect) reply received.
Oct 19 12:40:22 poga-linux modem-manager: (net/ppp0): could not get port's parent device
Oct 19 12:40:22 poga-linux NetworkManager[1007]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Oct 19 12:40:22 poga-linux NetworkManager[1007]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
Oct 19 12:40:23 poga-linux pptp[3128]: nm-pptp-service-3121 log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Oct 19 12:40:24 poga-linux pptp[3135]: nm-pptp-service-3121 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Oct 19 12:40:25 poga-linux pptp[3135]: nm-pptp-service-3121 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Oct 19 12:40:25 poga-linux pptp[3135]: nm-pptp-service-3121 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Oct 19 12:40:25 poga-linux pptp[3135]: nm-pptp-service-3121 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Oct 19 12:40:25 poga-linux pptp[3135]: nm-pptp-service-3121 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Oct 19 12:40:25 poga-linux pptp[3135]: nm-pptp-service-3121 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 39142).
Oct 19 12:40:27 poga-linux pptp[3135]: nm-pptp-service-3121 log[ctrlp_disp:pptp_ctrl.c:950]: PPTP_SET_LINK_INFO received from peer_callid 0
Oct 19 12:40:27 poga-linux pptp[3135]: nm-pptp-service-3121 log[ctrlp_disp:pptp_ctrl.c:953]: send_accm is 00000000, recv_accm is FFFFFFFF
Oct 19 12:40:27 poga-linux pptp[3135]: nm-pptp-service-3121 warn[ctrlp_disp:pptp_ctrl.c:956]: Non-zero Async Control Character Maps are not supported!
Oct 19 12:40:31 poga-linux NetworkManager[1007]: <info> VPN connection 'VPN' (IP Config Get) reply received.
Oct 19 12:40:31 poga-linux NetworkManager[1007]: <info> VPN Gateway: x.x.x.x
Oct 19 12:40:31 poga-linux NetworkManager[1007]: <info> Tunnel Device: ppp0
Oct 19 12:40:31 poga-linux NetworkManager[1007]: <info> Internal IP4 Address: x.x.x.x
Oct 19 12:40:31 poga-linux NetworkManager[1007]: <info> Internal IP4 Prefix: 32
Oct 19 12:40:31 poga-linux NetworkManager[1007]: <info> Internal IP4 Point-to-Point Address: x.x.x.x
Oct 19 12:40:31 poga-linux NetworkManager[1007]: <info> Maximum Segment Size (MSS): 0
Oct 19 12:40:31 poga-linux NetworkManager[1007]: <info> Internal IP4 DNS: x.x.x.x
Oct 19 12:40:31 poga-linux NetworkManager[1007]: <info> Internal IP4 DNS: x.x.x.x
Oct 19 12:40:31 poga-linux NetworkManager[1007]: <info> DNS Domain: '(none)'
Oct 19 12:40:32 poga-linux NetworkManager[1007]: <info> (ppp0): writing resolv.conf to /sbin/resolvconf
Oct 19 12:40:32 poga-linux NetworkManager[1007]: <info> VPN connection 'VPN' (IP Config Get) complete.
Oct 19 12:40:32 poga-linux NetworkManager[1007]: <info> (ppp0): writing resolv.conf to /sbin/resolvconf
Oct 19 12:40:32 poga-linux NetworkManager[1007]: <info> Policy set 'VPN' (ppp0) as default for IPv4 routing and DNS.
Oct 19 12:40:32 poga-linux NetworkManager[1007]: <info> VPN plugin state changed: 4
Oct 19 12:40:32 poga-linux nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/01ifupdown' exited with error status 1.

Daemon log for failed connection via iPhone:

Oct 19 12:42:49 poga-linux NetworkManager[1007]: <info> Starting VPN service 'org.freedesktop.NetworkManager.pptp'...
Oct 19 12:42:49 poga-linux NetworkManager[1007]: <info> VPN service 'org.freedesktop.NetworkManager.pptp' started (org.freedesktop.NetworkManager.pptp), PID 3467
Oct 19 12:42:49 poga-linux NetworkManager[1007]: <info> VPN service 'org.freedesktop.NetworkManager.pptp' appeared, activating connections
Oct 19 12:42:59 poga-linux NetworkManager[1007]: <info> VPN plugin state changed: 3
Oct 19 12:42:59 poga-linux NetworkManager[1007]: <info> VPN connection 'VPN' (Connect) reply received.
Oct 19 12:42:59 poga-linux modem-manager: (net/ppp0): could not get port's parent device
Oct 19 12:42:59 poga-linux NetworkManager[1007]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Oct 19 12:42:59 poga-linux NetworkManager[1007]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
Oct 19 12:43:01 poga-linux pptp[3474]: nm-pptp-service-3467 log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Oct 19 12:43:02 poga-linux pptp[3481]: nm-pptp-service-3467 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Oct 19 12:43:02 poga-linux pptp[3481]: nm-pptp-service-3467 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Oct 19 12:43:02 poga-linux pptp[3481]: nm-pptp-service-3467 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Oct 19 12:43:03 poga-linux pptp[3481]: nm-pptp-service-3467 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Oct 19 12:43:03 poga-linux pptp[3481]: nm-pptp-service-3467 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Oct 19 12:43:03 poga-linux pptp[3481]: nm-pptp-service-3467 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 49476).
Oct 19 12:43:30 poga-linux NetworkManager[1007]: <warn> VPN plugin failed: 1
Oct 19 12:43:30 poga-linux avahi-daemon[1014]: Withdrawing workstation service for ppp0.
Oct 19 12:43:30 poga-linux NetworkManager[1007]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Oct 19 12:43:30 poga-linux pptp[3474]: nm-pptp-service-3467 warn[decaps_hdlc:pptp_gre.c:204]: short read (-1): Input/output error
Oct 19 12:43:30 poga-linux pptp[3474]: nm-pptp-service-3467 warn[decaps_hdlc:pptp_gre.c:216]: pppd may have shutdown, see pppd log
Oct 19 12:43:30 poga-linux pptp[3481]: nm-pptp-service-3467 log[callmgr_main:pptp_callmgr.c:234]: Closing connection (unhandled)
Oct 19 12:43:30 poga-linux pptp[3481]: nm-pptp-service-3467 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Oct 19 12:43:30 poga-linux pptp[3481]: nm-pptp-service-3467 log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
Oct 19 12:43:31 poga-linux NetworkManager[1007]: <warn> VPN plugin failed: 1
Oct 19 12:43:31 poga-linux NetworkManager[1007]: <warn> VPN plugin failed: 1
Oct 19 12:43:31 poga-linux NetworkManager[1007]: <info> VPN plugin state changed: 6
Oct 19 12:43:31 poga-linux NetworkManager[1007]: <info> VPN plugin state change reason: 0
Oct 19 12:43:31 poga-linux NetworkManager[1007]: <warn> error disconnecting VPN: Could not process the request because no VPN connection was active.
Oct 19 12:43:31 poga-linux NetworkManager[1007]: <info> (eth2): writing resolv.conf to /sbin/resolvconf
Oct 19 12:43:31 poga-linux NetworkManager[1007]: <info> Policy set 'Auto eth2' (eth2) as default for IPv4 routing and DNS.

Revision history for this message
Ivars Strazdiņš (ivars-strazdins) wrote :
Revision history for this message
Ivars Strazdiņš (ivars-strazdins) wrote :

I can reproduce this on another Ubuntu Maverick 10.10 32-bit

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Marking as Triaged/Medium, I'm pretty sure this is the standard issue where you can't use the PPTP vpn on some types of connections. I'll try to find the upstream bug for that.

Changed in network-manager-pptp (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Ivars Strazdiņš (ivars-strazdins) wrote :

Just verified, same problem on 10.04 (iPhone over bluetooth).

Revision history for this message
John Wiesel (n-john) wrote :

I have the same problem on 12.04 and 12.10... Log file looks identical. Any pointers?

Revision history for this message
Ivars Strazdiņš (ivars-strazdins) wrote :

Dear Neil,
I appreciate your reply, but do you realise how old exatcly this bug is?
I don't remeber anything about it, I use Ubuntu 18.x now (occasionally) and I have a completely different phone now.
Thanks anyway.

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

Other bug subscribers

Bug attachments

Remote bug watches

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