pppd gotcha with ATT GPRS service using SE GC82

This is a discussion on pppd gotcha with ATT GPRS service using SE GC82 within the Linux Networking forums, part of the Linux Forums category; I recently got the Sony Ericsson GC82 EGPRS card w/ ATT Wireless service to work on Linux. However, it required ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-02-2004
Phil Buonadonna
 
Posts: n/a
Default pppd gotcha with ATT GPRS service using SE GC82

I recently got the Sony Ericsson GC82 EGPRS card w/ ATT Wireless
service
to work on Linux. However, it required modifications to pppd.

The present version of pppd does some checking on recieved IP
addresses
negotiated when establishing a link. That is, it does not allow
addresses that are in the loopback or multicast domains.

However, ATT wireless w/ the Sony Ericsson GC82 tries to negotiate
127.0.0.2 as the remote peer IP address. Unmodified versions of pppd
refuse to accept this address. If I comment out the check in
'bad_ip_addrs' in auth.c (see below) everything works ok (see log
below).

A quick review of RFC 1331/1332 doesn't seem to indicate that
127.0.0.x
are excluded from PPP links.

The question(s) are: Is the reason I'm getting 127.0.0.2 as the remote
IP a configuration error on my part? Is it unique to this GPRS
hardware? Is it unique to ATT?

Perhaps a new option to pppd would be to bypass the ip address checks?



My changes to 'pppd/auth.c':
/*
* bad_ip_adrs - return 1 if the IP address is one we don't want
* to use, such as an address in the loopback net or a multicast
address.
* addr is in network byte order.
*/
int
bad_ip_adrs(addr)
u_int32_t addr;
{
addr = ntohl(addr);
/* return (addr >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET
|| IN_MULTICAST(addr) || IN_BADCLASS(addr); */
return 0.

}


Log of GPRS connection:

Serial connection established.
using channel 5
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS3
rcvd [LCP ConfReq id=0x4c <mru 1500> <asyncmap 0x0> <auth pap> <magic
0xbc2ae1> <pcomp> <accomp>]
sent [LCP ConfReq id=0x3 <asyncmap 0x0> <magic 0xc9399c77> <pcomp>
<accomp>]
sent [LCP ConfAck id=0x4c <mru 1500> <asyncmap 0x0> <auth pap> <magic
0xbc2ae1> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x3 <asyncmap 0x0> <magic 0xc9399c77> <pcomp>
<accomp>]
sent [LCP EchoReq id=0x0 magic=0xc9399c77]
sent [PAP AuthReq id=0x2 user="guest" password=<hidden>]
rcvd [LCP EchoRep id=0x0 magic=0xc9399c77]
appear to have received our own echo-reply!
rcvd [PAP AuthAck id=0x2 "PAP access OK"]
Remote message: PAP access OK
PAP authentication succeeded
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x3 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3
0.0.0.0>]
rcvd [IPCP ConfReq id=0x4c <addr 127.0.0.2> <compress VJ 0f 01>
<ms-dns1 10.250.1.10> <ms-dns3 10.250.1.11>]
sent [IPCP ConfRej id=0x4c <compress VJ 0f 01> <ms-dns1 10.250.1.10>
<ms-dns3 10.250.1.11>]
rcvd [LCP ProtRej id=0x4d 80 fd 01 02 00 0f 1a 04 78 00 18 04 78 00 15
03 2f]
rcvd [IPCP ConfNak id=0x3 <addr 10.80.146.176> <ms-dns1 10.250.1.10>
<ms-dns3 10.250.1.11>]
sent [IPCP ConfReq id=0x4 <addr 10.80.146.176> <ms-dns1 10.250.1.10>
<ms-dns3 10.250.1.11>]
rcvd [IPCP ConfReq id=0x4d <addr 127.0.0.2>]
sent [IPCP ConfAck id=0x4d <addr 127.0.0.2>]
rcvd [IPCP ConfAck id=0x4 <addr 10.80.146.176> <ms-dns1 10.250.1.10>
<ms-dns3 10.250.1.11>]
local IP address 10.80.146.176
remote IP address 127.0.0.2
primary DNS address 10.250.1.10
secondary DNS address 10.250.1.11
appear to have received our own echo-reply!
Reply With Quote
  #2 (permalink)  
Old 03-03-2004
Clifford Kite
 
Posts: n/a
Default Re: pppd gotcha with ATT GPRS service using SE GC82

Phil Buonadonna <pbuonado@intel-research.net> wrote:
> I recently got the Sony Ericsson GC82 EGPRS card w/ ATT Wireless
> service to work on Linux. However, it required modifications
> to pppd.


> The present version of pppd does some checking on recieved IP
> addresses negotiated when establishing a link. That is, it does
> not allow addresses that are in the loopback or multicast domains.


> However, ATT wireless w/ the Sony Ericsson GC82 tries to negotiate
> 127.0.0.2 as the remote peer IP address. Unmodified versions of pppd
> refuse to accept this address. If I comment out the check in
> 'bad_ip_addrs' in auth.c (see below) everything works ok (see log
> below).


Have you tried requesting an IP address to use for the peer that's in
another reserved IP address range? If not then try doing that, e.g.,
adding the pppd option "192.168.0.1:" (without the quotes, of course).
It might be a good idea to avoid using an IP address in the 10.0.0.0/8
range since it appears, from the IP addresses the peer offers for DNS
servers, that range is being used on the remote side.

Ordinarily it _shouldn't_ make any difference to the peer what remote
IP address is used in the PPP interface on your end. But you can only
request to use another IP address for it locally, and the peer's PPP
implementation could be configured to allow only the one it requested.

> A quick review of RFC 1331/1332 doesn't seem to indicate that
> 127.0.0.x are excluded from PPP links.


> The question(s) are: Is the reason I'm getting 127.0.0.2 as the remote
> IP a configuration error on my part? Is it unique to this GPRS
> hardware? Is it unique to ATT?


It's not a configuration error on your part, although the suggestion
above may serve as a work-around for the problem.

I know of no good reason for an IP address in the 127.0.0.0/8 range to
be used at all. But apparently, from reading other posts regarding
problems with PPP and GPRS, the GPRS implementations are often not of
very good quality.

> Perhaps a new option to pppd would be to bypass the ip address checks?


I hope not.

--
Clifford Kite Email: "echo xvgr_yvahk-ccc@ri1.arg|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
/* My confidence in this answer (X), on a scale of 0 to 10:
|----|----|----|----|----|----|----|----|----|---X|
0----1----2----3----4----5----6----7----8----9----10 */

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:01 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0