PPP connection from Pocket PC to Linux fails



I am trying to create a PPP link between a PocketPC (client) and a
linux pppd server but this keeps failing at the same point.

I have created a dial-up connection on the PocketPC using RAPI
provisioning. Here is the xml for that:

************************************************************************************
<wap-provisioningdoc>
<characteristic type="CM_PPPEntries">
<characteristic type="OwasysPPPLink">
<!-- Destination network: The Internet -->
<parm name="DestId" value="{436EF144-B4FB-4863-
A041-8F905A62C572}" />
<!-- Phone num -->
<parm name="Phone" value="" />
<!-- Specify IP address - 0=off, 1=on -->
<parm name="SpecificIpAddr" value="0" />
<!-- Specify DNS servers, 0=off, 1=on -->
<parm name="SpecificNameServers" value="0" />
<!-- Specify PPP -->
<parm name="Framing" value="1" />
<!-- Specify device -->
<parm name="DeviceType" value="direct" />
<parm name="DeviceName" value="Serial Cable on COM1:" />
<!-- Enable -->
<parm name="Enabled" value="1" />
<!-- No security/authentication -->
<parm name="Secure" value="0" />
<parm name="RequirePw" value="0" />
<!-- Compression 0=off, 1=on -->
<parm name="IpHeaderCompression" value="1" />
<parm name="SwCompression" value="1" />
<!-- -->
<parm name="RemoteDefaultGateway" value="1" />
<!-- Modem spec -->
<characteristic type="DevSpecificUnimodem">
<parm name="BaudRate" value="57600" />
<parm name="ByteSize" value="8" />
<parm name="StopBits" value="1" />
<parm name="Parity" value="0" />
<parm name="Compression" Value="0" />
<parm name="FlowControlHard" value="1" />
<parm name="FlowControlSoft" value ="0" />
<parm name="ToneDial" value="1" />
<parm name="BlindDial" value="1" />
<parm name="CallSetupFailTimer" value="0" />
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
****************************************************************************************

The pppd server is configured with the following options:

*****************************************************************************
# pppd options file for incoming connection from PocketPC/PDA
# -----------------------------------------------------------
# The name of the link
linkname pda
# log the contents of all control packets sent/received in readable
form
debug
# The file to log to
logfile /tmp/pppDebug
# The device the modem is connected to
/dev/ttyS3
# Create a lock for the device to ensure exclusive access to the
device
lock
# The port peed (baud rate)
57600
# Specify HW flow control
crtscts
# Hide the password in communications
hide-password
# Do not require the peer to authenticate itself
noauth
# Don't detach from the controlling terminal
nodetach
# IP addresses and DNS servers:
# ----------------------------
# local IP address : remote IP address
192.168.2.1:192.168.2.2
# Set the interface netmask
netmask 255.255.255.0
# Supply DNS addresses to Microsoft Windows clients
ms-dns 195.167.65.194
ms-dns 213.249.17.11
# Do not add a default route to the system routing tables
nodefaultroute
# Add an entry to the system's arp table. this will have the effect of
making
# the peer appear to other systems to be on the local ethernet.
proxyarp
# Set the ACCM map for this end of the link
asyncmap 0
# With this option, pppd will accept all control characters from the
peer,
# including those marked in the receive asyncmap. Without this option,
pppd
# will discard those characters as specified in RFC1662. This option
should
# only be needed if the peer is buggy (can be useful for Microsoft
Windows clients)
receive-all
# Specify a script to setup the connection.
# This script uses the chat program to initialise the connection to
# a Microsoft Windows client
connect "chat 'CLIENT' 'CLIENTSERVER\\c'"
*******************************************************************************************
This is the pppd log from the connection attempt:

********************************* Log 1
***********************************
Trying to setdtr to 0.
setdtr to 0.
Serial connection established.
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS3
rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <pcomp> <accomp>]
Warning - secret file /etc/ppp/pap-secrets has world and/or group
access
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x86517350> <pcomp>
<accomp>]
sent [LCP ConfAck id=0x0 <asyncmap 0x0> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x86517350> <pcomp>
<accomp>]
sent [IPCP ConfReq id=0x1 <addr 192.168.2.1> <compress VJ 0f 01>]
rcvd [CCP ConfReq id=0x0 < 12 06 00 00 00 01>]
sent [CCP ConfReq id=0x1]
sent [CCP ConfRej id=0x0 < 12 06 00 00 00 01>]
rcvd [IPCP ConfReq id=0x0 <compress VJ 0f 00> <addr 0.0.0.0> <ms-dns1
0.0.0.0> <ms-wins 0.0.0.0> <ms-dns3 0.0.0.0> <ms-wins 0.0.0.0>]
sent [IPCP ConfRej id=0x0 <ms-wins 0.0.0.0> <ms-wins 0.0.0.0>]
rcvd [proto=0x8057] 01 00 00 0e 01 0a 02 30 05 ff fe b6 3b 71
Unsupported protocol 0x8057 received
sent [LCP ProtRej id=0x2 80 57 01 00 00 0e 01 0a 02 30 05 ff fe b6 3b
71]
rcvd [IPCP ConfAck id=0x1 <addr 192.168.2.1> <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x1 <addr 192.168.2.1> <compress VJ 0f 01>]
sent [CCP ConfReq id=0x1]
sent [IPCP ConfReq id=0x1 <addr 192.168.2.1> <compress VJ 0f 01>]
sent [CCP ConfReq id=0x1]
sent [IPCP ConfReq id=0x1 <addr 192.168.2.1> <compress VJ 0f 01>]
sent [CCP ConfReq id=0x1]
sent [IPCP ConfReq id=0x1 <addr 192.168.2.1> <compress VJ 0f 01>]
sent [CCP ConfReq id=0x1]
sent [IPCP ConfReq id=0x1 <addr 192.168.2.1> <compress VJ 0f 01>]
sent [CCP ConfReq id=0x1]
sent [IPCP ConfReq id=0x1 <addr 192.168.2.1> <compress VJ 0f 01>]
sent [CCP ConfReq id=0x1]
sent [IPCP ConfReq id=0x1 <addr 192.168.2.1> <compress VJ 0f 01>]
sent [CCP ConfReq id=0x1]
sent [IPCP ConfReq id=0x1 <addr 192.168.2.1> <compress VJ 0f 01>]
sent [CCP ConfReq id=0x1]
sent [IPCP ConfReq id=0x1 <addr 192.168.2.1> <compress VJ 0f 01>]
sent [CCP ConfReq id=0x1]
sent [IPCP ConfReq id=0x1 <addr 192.168.2.1> <compress VJ 0f 01>]
CCP: timeout sending Config-Requests
IPCP: timeout sending Config-Requests
sent [LCP TermReq id=0x3 "No network protocols running"]
sent [LCP TermReq id=0x4 "No network protocols running"]
Connection terminated.
***************************************************************************­
****************

After sending the last ConfAck the Pocket PC displays the message "the
answering modem has disconnected" and terminates the link even though
the link is obviously still live (the pppd server keeps sending
requests).

I also tried disabling CCP (used the noccp option in the pppd option
file). The negotiation completed successfully, but the PocketPC
immediately displayed the message "the answering modem has
disconnected" and the link went down on its side. The server, however,
does not detect this and the server side stays open indefinitely (no
further connection attempts possible).

********************************** Log2
************************************************
Serial connection established.
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS3
rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <pcomp> <accomp>]
Warning - secret file /etc/ppp/pap-secrets has world and/or group
access
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xefb5415d> <pcomp>
<accomp>]
sent [LCP ConfAck id=0x0 <asyncmap 0x0> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xefb5415d> <pcomp>
<accomp>]
sent [IPCP ConfReq id=0x1 <addr 192.168.2.1> <compress VJ 0f 01>]
rcvd [CCP ConfReq id=0x0 < 12 06 00 00 00 01>]
Unsupported protocol 'Compression Control Protocol' (0x80fd) received
sent [LCP ProtRej id=0x2 80 fd 01 00 00 0a 12 06 00 00 00 01]
rcvd [IPCP ConfReq id=0x0 <compress VJ 0f 00> <addr 0.0.0.0> <ms-dns1
0.0.0.0> <ms-wins 0.0.0.0> <ms-dns3 0.0.0.0> <ms-wins 0.0.0.0>]
sent [IPCP ConfRej id=0x0 <ms-wins 0.0.0.0> <ms-wins 0.0.0.0>]
rcvd [proto=0x8057] 01 00 00 0e 01 0a 02 30 05 ff fe b6 3b 71
Unsupported protocol 0x8057 received
sent [LCP ProtRej id=0x3 80 57 01 00 00 0e 01 0a 02 30 05 ff fe b6 3b
71]
rcvd [IPCP ConfAck id=0x1 <addr 192.168.2.1> <compress VJ 0f 01>]
rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 00> <addr 0.0.0.0> <ms-dns1
0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfNak id=0x1 <addr 192.168.2.2> <ms-dns1 195.167.65.194>
<ms-dns3 213.249.17.11>]
rcvd [IPCP ConfReq id=0x2 <compress VJ 0f 00> <addr 192.168.2.2> <ms-
dns1 195.167.65.194> <ms-dns3 213.249.17.11>]
sent [IPCP ConfAck id=0x2 <compress VJ 0f 00> <addr 192.168.2.2> <ms-
dns1 195.167.65.194> <ms-dns3 213.249.17.11>]
Cannot determine ethernet address for proxy ARP
local IP address 192.168.2.1
remote IP address 192.168.2.2
Script /etc/ppp/ip-up started (pid 144)
Script /etc/ppp/ip-up finished (pid 144), status = 0x0
**********************************************************************************

Does anyone have any ideas what could be the problem here? I do not
see anything strange in the PPP log.

Also, is there an equivalent log on the Pocket PC? Can it be read
somehow?

.



Relevant Pages

  • Re: dialup solution (as seconary connection / iptables )
    ... ip-down is launched by pppd only after the PPP link no longer available ... first with MINICOM or is PAP and script not mutualy exclusive? ... do have to "make the connection first with MINICOM." ... If you use the Linux box and route the news IP address to it on each ...
    (comp.os.linux.networking)
  • Re: pppd is up, but cannot ping/traceroute/connect to internet - help please
    ... You cannot ping by IP address, even the peer's (ISP connection host's) ... But there was a default route through the PPP interface, ... route at the time of the PPP connection then pppd wouldn't assign a PPP ... A conflict between the NIC IRQ and the serial device IRQ might cause ...
    (comp.os.linux.networking)
  • [SLE] PPP connection keeps dropping, and another related problem
    ... My ppp connection keeps dropping. ... pppd: IPCP terminated by peer ... disconnects. ...
    (SuSE)
  • Re: PPP over GPRS trouble
    ... It was a times when I opened the question about troubles of popular version of PPPD ... The connection seems to be begun, the phone itself displays the icon about the Internet connection has been started, but connection does not work. ... The trouble begines with disability of PPPD and mobile phone to nagotiate the map for replacement of special characters. ...
    (comp.os.linux.misc)
  • PCMCIA Ethernet card
    ... Problem 1: No automatic network connection ... Problem 2: No ADSL connection ... pppd: Plugin pppoe.so loaded. ...
    (comp.os.linux.networking)