Discussion:
pppd T-Mobile GPRS connecting scripts
(too old to reply)
TonyB
2005-02-12 00:22:56 UTC
Permalink
I am trying to setup a cellular PPP connection on my server and this is
what I have so far. It sets the PPP options file and uses gprs-on as a
net start script to invoke pppd+chat

It WORKS & CONNECTS my COM1 to a T-Mobile Access Point. But then
the peer and my client start the configuration dialog and it fails in
Auth PAP, as shown in the output at the end of this post. I suspect
it might be because of my pap-secrets (but it allows anybody: * * "")
or maybe my dhclient config file???

Has any one setup a successfull Slackware T-Mobile PPP connection???

Thanks in advance,
TonyB


FILE: /etc/ppp/gprs-on
----------------------
#!/bin/sh
PPPID=$(/sbin/pidof /usr/sbin/pppd)

if [ ! "$PPPID" = "" ]; then
echo "NET-ON: pppd is already running."
exit 1
fi

# pppd is slow, so we fork its initialization.
#
/usr/sbin/pppd /dev/modem 115200 demand persist holdoff 5 idle 3600 \
connect '/usr/sbin/chat -v -f /etc/ppp/tmobile-on'

FILE: /etc/ppp/options
----------------------
/dev/modem # PPP device
115200 # Line speed
defaultroute # Use cellular network for our default route.
usepeerdns # Use the DNS servers from the remote network.
crtscts # Use hardware flow control.
noauth # Do not require other end to authenticate itself.
nodetach # Keep pppd in the foreground
local # Don't use the modem control lines.
lock # Lock the serial port for exclusive access.
connect "/usr/sbin/chat -v -f /etc/ppp/tmobile-on"
disconnect "/usr/sbin/chat -v -f /etc/ppp/tmobile-off"
noipdefault # peer to supply local IP during IPCP negotiations
nodeflate # Disable Deflate packet compression
novj # Disable Van Jacobson TCP/IP header compression
novjccomp # Disable Van Jacobson TCP/IP header compression
nobsdcomp # Disable Van Jacobson TCP/IP header compression
user ""
ipcp-accept-local
ipcp-accept-remote
lcp-echo-interval 65535
lcp-echo-failure 4
lcp-max-configure 3
lcp-max-failure 3
debug

FILE: /etc/ppp/tmobile-on
-------------------------
# Modem Aborts
#
TIMEOUT 6
#ECHO ON
ABORT 'BUSY'
ABORT 'ERROR'
ABORT 'NO ANSWER'

# Open Modem
#
TIMEOUT 12
SAY 'Starting GPRS connect\n'
#'' '\rAT+CFUN=1,1'
#'' '\rAT'

# E0=No echo, V1=English result codes
#
#OK 'ATE1V1'
'' 'ATE1V1'

# Set Access Point Name (APN)
#
SAY 'Setting APN\n'
OK 'AT+CGDCONT=1,"IP","internet2.voicestream.com"'

# ISPnumber
#
ABORT 'NO CARRIER'
SAY 'Dialing...\n'
OK 'ATD*99***1#'

# ispconnect
#
CONNECT ''

# Done.

OUTPUT GENERATED WHEN EXECUTING gprs-on:
----------------------------------------
Using interface ppp0
local IP address 10.64.64.64
remote IP address 10.112.112.112
Starting link
Starting GPRS connect
Setting APN
Dialing...
Serial connection established.
using channel 5
Connect: ppp0 <--> /dev/modem
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x1c8ba927> <pcomp>
<accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0xa0000> <auth pap>]
sent [LCP ConfRej id=0x1 <auth pap>]
rcvd [LCP ConfRej id=0x1 <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x1c8ba927>]
rcvd [LCP ConfReq id=0x2 <asyncmap 0xa0000>]
sent [LCP ConfAck id=0x2 <asyncmap 0xa0000>]
rcvd [LCP ConfNak id=0x2 <asyncmap 0xa0000>]
sent [LCP ConfReq id=0x3 <asyncmap 0xa0000> <magic 0x1c8ba927>]
sent [LCP ConfReq id=0x3 <asyncmap 0xa0000> <magic 0x1c8ba927>]
sent [LCP ConfReq id=0x3 <asyncmap 0xa0000> <magic 0x1c8ba927>]
LCP: timeout sending Config-Requests
Connection terminated.

Sending break to the modem

PDP context detached
Serial link disconnected.
E. Charters
2005-02-16 00:13:23 UTC
Permalink
I don't have direct experience with wireless connects. Any trouble I
have had with cable connects was from two sources. DHCP troubles,
surprisingly usually at the ISP end, and authentication. I had always
set noauth but that is something to try. You might try having both a PAP
and CHAP secrets file. Authorization type could be the problem. There
are three basic kinds, or four counting straight text logon and
Microsoft type CHAP too I believe. (I don't know if you can connect with
a seyon type program and see if what the connect strings are.)

EC<:-}
Post by TonyB
I am trying to setup a cellular PPP connection on my server and this is
what I have so far. It sets the PPP options file and uses gprs-on as a
net start script to invoke pppd+chat
noauth # Do not require other end to authenticate itself.
nodetach # Keep pppd in the foreground
local # Don't use the modem control lines.
lock # Lock the serial port for exclusive access.
connect "/usr/sbin/chat -v -f /etc/ppp/tmobile-on"
Connect: ppp0 <--> /dev/modem
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x1c8ba927> <pcomp>
<accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0xa0000> <auth pap>]
sent [LCP ConfRej id=0x1 <auth pap>]
rcvd [LCP ConfRej id=0x1 <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x1c8ba927>]
rcvd [LCP ConfReq id=0x2 <asyncmap 0xa0000>]
LCP: timeout sending Config-Requests
Connection terminated.
Sending break to the modem
PDP context detached
Serial link disconnected.
null
2005-02-16 03:07:07 UTC
Permalink
Post by TonyB
Has any one setup a successfull Slackware T-Mobile PPP connection???
Yes, but with kppp.
TonyB
2005-02-16 03:18:47 UTC
Permalink
Yeah, saw that in some google search I did. KDE is a memory
hog and too big for my purposes. It has to run and start
the GPRS connection unattended for a net of Linux boxes on
a roaming set of Recreational Vehicles...

Interesting project, getting close. Maybe I will find
what the problem is soon. I do get a PPP connection,
with the uplink, but the peer negotiations fail.
Gona try to add a chap-secrets file same as pap-secrets.

TonyB
E. Charters
2005-02-16 04:16:50 UTC
Permalink
There are a whack of ppp options from auth to no auth to
passive, mru, mtu <n> xonxoff etc.. you can experiment with
-pap +pap -chap +chap etc..

You are getting connection so perhaps things like passive, mru and
xonxoff are superfluous auth noauth as well I would think.

it could even be the lcp-echo-interval
Post by TonyB
Yeah, saw that in some google search I did. KDE is a memory
hog and too big for my purposes. It has to run and start
the GPRS connection unattended for a net of Linux boxes on
a roaming set of Recreational Vehicles...
Interesting project, getting close. Maybe I will find
what the problem is soon. I do get a PPP connection,
with the uplink, but the peer negotiations fail.
Gona try to add a chap-secrets file same as pap-secrets.
TonyB
Loading...