TonyB
2005-02-12 00:22:56 UTC
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.
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.