Date: Mon, 15 Dec 1997 02:14:01 -0800 (PST) From: Burton Sampley <bsampley@best.com> To: questions@freebsd.org Subject: how get user ppp to talk to slirp -P Message-ID: <Pine.BSF.3.96.971215015025.27774A-100000@shell9.ba.best.com>
index | next in thread | raw e-mail
Greetings,
I've been attempting to get FBSD (2.2.5 fresh install) to talk ppp to my
school's system. Unfortunately my school uses slirp -P for ppp. I've
followed the directions from the handbook, searched the archives, reviewed
the man pages for ppp and chat, turned on all of the appropriate loggings
in my ppp.conf file and reviewed /var/log/ppp/log. Basically, right now
I'm stuck.
The current roadblock is how to correctly escape a space character in the
login sequence. I've tried \s as the chat man page states, but when I
review the logs, it appears that ppp has just omitted the '\' and placed
the 's' character where I need the ' ' character. I don't know if there
are more problems because I can't seem to get past this.
Is there any easier way to initiate ppp using slirp? In the script in my
ppp.conf I'm having ppp look for the '%" from the shell then I want ppp to
execute 'slirp -P'.
Here's my /etc/ppp/ppp.conf:
default:
set device /dev/cuaa0
set speed 115200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0M0
OK-AT-OK\\dATDT\\T TIMEOUT 40 CONNECT"
set log Phase Chat Connect Carrier LCP IPCP CCP hdlc tun
haywire:
set phone "8852300"
set login "TIMEOUT 10 ts1> haywire gin:-BREAK-gin: bsampley word:
MY_PASSWORD % slirp\s-P"
set timeout 300
deny lqr
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
delete ALL
add 0 0 HISADDR
Here's my ppp.linkup:
haywire:
delete ALL
add 0 0 HISADDR
Here's the log from my last attempt:
Dec 15 01:20:11 bsampley ppp[491]: tun0: Phase: Using interface: tun0
Dec 15 01:20:11 bsampley ppp[491]: tun0: Phase: PPP Started.
Dec 15 01:20:17 bsampley ppp[491]: tun0: Chat: Expecting
Dec 15 01:20:17 bsampley ppp[491]: tun0: Chat: sending: ATE1Q0M0^M
Dec 15 01:20:17 bsampley ppp[491]: tun0: Chat: Expecting OK-AT-OK
Dec 15 01:20:17 bsampley ppp[491]: tun0: Chat: Wait for (5): OK --> OK
Dec 15 01:20:17 bsampley ppp[491]: tun0: Connect: ATE1Q0M0^M^M
Dec 15 01:20:17 bsampley ppp[491]: tun0: Connect: OK
Dec 15 01:20:17 bsampley ppp[491]: tun0: Phase: Phone: 8852300
Dec 15 01:20:17 bsampley ppp[491]: tun0: Chat: sending: ATDT8852300^M
Dec 15 01:20:17 bsampley ppp[491]: tun0: Chat: Expecting CONNECT
Dec 15 01:20:17 bsampley ppp[491]: tun0: Chat: Wait for (40): CONNECT -->
CONNEC
T
Dec 15 01:20:17 bsampley ppp[491]: tun0: Connect: ^M
Dec 15 01:20:38 bsampley ppp[491]: tun0: Connect: ATDT8852300^M^M
Dec 15 01:20:38 bsampley ppp[491]: tun0: Connect: CONNECT
Dec 15 01:20:38 bsampley ppp[491]: tun0: Chat: Expecting ts1>
Dec 15 01:20:38 bsampley ppp[491]: tun0: Chat: Wait for (10): ts1> -->
ts1>
Dec 15 01:20:38 bsampley ppp[491]: tun0: Connect: 115200^M
Dec 15 01:20:39 bsampley ppp[491]: tun0: Connect: Welcome to the CSUH
Terminal
Server 1^M
Dec 15 01:20:39 bsampley ppp[491]: tun0: Connect: ^M
Dec 15 01:20:39 bsampley ppp[491]: tun0: Connect: ts1>
Dec 15 01:20:39 bsampley ppp[491]: tun0: Chat: sending: haywire^M
Dec 15 01:20:39 bsampley ppp[491]: tun0: Chat: Expecting gin:-BREAK-gin:
Dec 15 01:20:39 bsampley ppp[491]: tun0: Chat: Wait for (10): gin: -->
gin:
Dec 15 01:20:39 bsampley ppp[491]: tun0: Connect: haywire^M
Dec 15 01:20:39 bsampley ppp[491]: tun0: Connect: Trying
haywire.csuhayward.edu
(134.154.5.50)... Open^M
Dec 15 01:20:40 bsampley ppp[491]: tun0: Connect: ^M
Dec 15 01:20:40 bsampley ppp[491]: tun0: Connect: ^M
Dec 15 01:20:40 bsampley ppp[491]: tun0: Connect: UNIX(r) System V Release
4.0 (
haywire)^M
Dec 15 01:20:40 bsampley ppp[491]: tun0: Connect: ^M^M
Dec 15 01:20:41 bsampley ppp[491]: tun0: Connect: ^Mlogin:
Dec 15 01:20:41 bsampley ppp[491]: tun0: Chat: sending: bsampley^M
Dec 15 01:20:41 bsampley ppp[491]: tun0: Chat: Expecting word:
Dec 15 01:20:41 bsampley ppp[491]: tun0: Chat: Wait for (10): word: -->
word:
Dec 15 01:20:41 bsampley ppp[491]: tun0: Connect: bsampley^M
Dec 15 01:20:41 bsampley ppp[491]: tun0: Connect: Password:
Dec 15 01:20:41 bsampley ppp[491]: tun0: Chat: sending: MY_PASSWORD^M
Dec 15 01:20:41 bsampley ppp[491]: tun0: Chat: Expecting %
Dec 15 01:20:41 bsampley ppp[491]: tun0: Chat: Wait for (10): % --> %
Dec 15 01:20:41 bsampley ppp[491]: tun0: Connect: ^M
Dec 15 01:20:42 bsampley ppp[491]: tun0: Connect: 18 news items.^M
Dec 15 01:20:42 bsampley ppp[491]: tun0: Connect: haywire%
Dec 15 01:20:42 bsampley ppp[491]: tun0: Chat: sending: slirps-P^M
Dec 15 01:20:42 bsampley ppp[491]: tun0: Phase: *Connected!
Dec 15 01:20:42 bsampley ppp[491]: tun0: IPCP: Using trigger address
255.255.255
.0
Dec 15 01:20:42 bsampley ppp[491]: tun0: LCP: State change Initial -->
Closed
Dec 15 01:20:42 bsampley ppp[491]: tun0: LCP: LcpSendConfigReq
Dec 15 01:20:42 bsampley ppp[491]: tun0: LCP: ACFCOMP
Dec 15 01:20:42 bsampley ppp[491]: tun0: LCP: PROTOCOMP
Dec 15 01:20:42 bsampley ppp[491]: tun0: LCP: ACCMAP [6] 00000000
Dec 15 01:20:42 bsampley ppp[491]: tun0: LCP: MRU [4] 1500
Dec 15 01:20:42 bsampley ppp[491]: tun0: LCP: MAGICNUM [6] c3330e4f
Dec 15 01:20:42 bsampley ppp[491]: tun0: HDLC: HdlcOutput
Dec 15 01:20:42 bsampley ppp[491]: tun0: HDLC: ff 03 c0 21
Dec 15 01:20:42 bsampley ppp[491]: tun0: LCP: State change Closed -->
Req-Sent
Dec 15 01:20:43 bsampley ppp[491]: tun0: HDLC: HdlcInput:
Dec 15 01:20:43 bsampley ppp[491]: tun0: HDLC: ff 03 c0 21 01 01 00 18 08
02 07 02 02 06 00 00
Dec 15 01:20:43 bsampley ppp[491]: tun0: HDLC: 00 00 01 04 05 dc 05 06 c3
33 0e
4f d5 92
Dec 15 01:20:43 bsampley ppp[491]: tun0: LCP: Received Configure Request
(1) sta
te = Req-Sent (6)
Dec 15 01:20:43 bsampley ppp[491]: tun0: LCP: ACFCOMP
Dec 15 01:20:43 bsampley ppp[491]: tun0: LCP: PROTOCOMP
Dec 15 01:20:43 bsampley ppp[491]: tun0: LCP: ACCMAP 00000000
Dec 15 01:20:43 bsampley ppp[491]: tun0: LCP: MRU 1500
Dec 15 01:20:43 bsampley ppp[491]: tun0: LCP: MAGICNUM c3330e4f
Dec 15 01:20:43 bsampley ppp[491]: tun0: LCP: Magic is same (c3330e4f) - 1
times
Dec 15 01:20:44 bsampley ppp[491]: tun0: LCP: SendConfigNak(Req-Sent)
Dec 15 01:20:44 bsampley ppp[491]: tun0: LCP: MAGICNUM c3330e4f
Dec 15 01:20:44 bsampley ppp[491]: tun0: HDLC: HdlcOutput
Dec 15 01:20:44 bsampley ppp[491]: tun0: HDLC: ff 03 c0 21
Dec 15 01:20:44 bsampley ppp[491]: tun0: HDLC: HdlcInput:
Dec 15 01:20:44 bsampley ppp[491]: tun0: HDLC: ff 03 c0 21 03 01 00 0a 05
06 c3
33 0e 4f fa 68
Dec 15 01:20:44 bsampley ppp[491]: tun0: LCP: Received Configure Nak (1)
state =
Req-Sent (6)
Dec 15 01:20:44 bsampley ppp[491]: tun0: LCP: MAGICNUM c3330e4f
Dec 15 01:20:44 bsampley ppp[491]: tun0: LCP: MAGICNUM magic c3330e4f has
NAKed
Dec 15 01:20:44 bsampley ppp[491]: tun0: LCP: LcpSendConfigReq
Dec 15 01:20:44 bsampley ppp[491]: tun0: LCP: ACFCOMP
Dec 15 01:20:44 bsampley ppp[491]: tun0: LCP: PROTOCOMP
Dec 15 01:20:44 bsampley ppp[491]: tun0: LCP: ACCMAP [6] 00000000
Dec 15 01:20:44 bsampley ppp[491]: tun0: LCP: MRU [4] 1500
Dec 15 01:20:44 bsampley ppp[491]: tun0: LCP: MAGICNUM [6] aebdfb77
Dec 15 01:20:44 bsampley ppp[491]: tun0: HDLC: HdlcOutput
Dec 15 01:20:44 bsampley ppp[491]: tun0: HDLC: ff 03 c0 21
Dec 15 01:20:44 bsampley ppp[491]: tun0: HDLC: HdlcInput:
Dec 15 01:20:44 bsampley ppp[491]: tun0: HDLC: ff 03 c0 21 01 02 00 18 08
02 07
02 02 06 00 00
Dec 15 01:20:44 bsampley ppp[491]: tun0: HDLC: 00 00 01 04 05 dc 05 06 ae
bd fb
77 78 b1
Dec 15 01:20:44 bsampley ppp[491]: tun0: LCP: Received Configure Request
(2) sta
te = Req-Sent (6)
Dec 15 01:20:44 bsampley ppp[491]: tun0: LCP: ACFCOMP
Dec 15 01:20:44 bsampley ppp[491]: tun0: LCP: PROTOCOMP
Dec 15 01:20:44 bsampley ppp[491]: tun0: LCP: ACCMAP 00000000
Dec 15 01:20:44 bsampley ppp[491]: tun0: LCP: MRU 1500
Dec 15 01:20:44 bsampley ppp[491]: tun0: LCP: MAGICNUM aebdfb77
Dec 15 01:20:44 bsampley ppp[491]: tun0: LCP: Magic is same (aebdfb77) - 2
times
Dec 15 01:20:46 bsampley ppp[491]: tun0: LCP: SendConfigNak(Req-Sent)
Dec 15 01:20:46 bsampley ppp[491]: tun0: LCP: MAGICNUM aebdfb77
Dec 15 01:20:46 bsampley ppp[491]: tun0: HDLC: HdlcOutput
Dec 15 01:20:46 bsampley ppp[491]: tun0: HDLC: ff 03 c0 21
Dec 15 01:20:46 bsampley ppp[491]: tun0: HDLC: HdlcInput:
Dec 15 01:20:46 bsampley ppp[491]: tun0: HDLC: ff 03 c0 21 03 02 00 0a 05
06 ae
bd fb 77 1a 0f
Dec 15 01:20:46 bsampley ppp[491]: tun0: LCP: Received Configure Nak (2)
state =
Req-Sent (6)
Dec 15 01:20:46 bsampley ppp[491]: tun0: LCP: MAGICNUM aebdfb77
Dec 15 01:20:46 bsampley ppp[491]: tun0: LCP: MAGICNUM magic aebdfb77 has
NAKed
Dec 15 01:20:46 bsampley ppp[491]: tun0: LCP: LcpSendConfigReq
Dec 15 01:20:46 bsampley ppp[491]: tun0: LCP: ACFCOMP
Dec 15 01:20:46 bsampley ppp[491]: tun0: LCP: PROTOCOMP
Dec 15 01:20:46 bsampley ppp[491]: tun0: LCP: ACCMAP [6] 00000000
Dec 15 01:20:46 bsampley ppp[491]: tun0: LCP: MRU [4] 1500
Dec 15 01:20:46 bsampley ppp[491]: tun0: LCP: MAGICNUM [6] b05cfd82
Dec 15 01:20:46 bsampley ppp[491]: tun0: HDLC: HdlcOutput
Dec 15 01:20:46 bsampley ppp[491]: tun0: HDLC: ff 03 c0 21
Dec 15 01:20:46 bsampley ppp[491]: tun0: HDLC: HdlcInput:
Dec 15 01:20:46 bsampley ppp[491]: tun0: HDLC: ff 03 c0 21 01 03 00 18 08
02 07
02 02 06 00 00
Dec 15 01:20:46 bsampley ppp[491]: tun0: HDLC: 00 00 01 04 05 dc 05 06 b0
5c fd
82 dd f2
Dec 15 01:20:46 bsampley ppp[491]: tun0: LCP: Received Configure Request
(3) sta
te = Req-Sent (6)
Dec 15 01:20:46 bsampley ppp[491]: tun0: LCP: ACFCOMP
Dec 15 01:20:46 bsampley ppp[491]: tun0: LCP: PROTOCOMP
Dec 15 01:20:46 bsampley ppp[491]: tun0: LCP: ACCMAP 00000000
Dec 15 01:20:46 bsampley ppp[491]: tun0: LCP: MRU 1500
Dec 15 01:20:46 bsampley ppp[491]: tun0: LCP: MAGICNUM b05cfd82
Dec 15 01:20:46 bsampley ppp[491]: tun0: LCP: Magic is same (b05cfd82) - 3
times
Dec 15 01:20:48 bsampley ppp[491]: tun0: LCP: SendConfigNak(Req-Sent)
Dec 15 01:20:48 bsampley ppp[491]: tun0: LCP: MAGICNUM b05cfd82
Dec 15 01:20:48 bsampley ppp[491]: tun0: HDLC: HdlcOutput
Dec 15 01:20:48 bsampley ppp[491]: tun0: HDLC: ff 03 c0 21
Dec 15 01:20:49 bsampley ppp[491]: tun0: HDLC: HdlcInput:
Dec 15 01:20:49 bsampley ppp[491]: tun0: HDLC: ff 03 c0 21 03 03 00 0a 05
06 b0
5c fd 82 8b 88
Dec 15 01:20:49 bsampley ppp[491]: tun0: LCP: Received Configure Nak (3)
state =
Req-Sent (6)
Dec 15 01:20:49 bsampley ppp[491]: tun0: LCP: MAGICNUM b05cfd82
Dec 15 01:20:49 bsampley ppp[491]: tun0: LCP: MAGICNUM magic b05cfd82 has
NAKed
Dec 15 01:20:49 bsampley ppp[491]: tun0: LCP: LcpSendConfigReq
Dec 15 01:20:49 bsampley ppp[491]: tun0: LCP: ACFCOMP
Dec 15 01:20:49 bsampley ppp[491]: tun0: LCP: PROTOCOMP
Dec 15 01:20:49 bsampley ppp[491]: tun0: LCP: ACCMAP [6] 00000000
Dec 15 01:20:49 bsampley ppp[491]: tun0: LCP: MRU [4] 1500
Dec 15 01:20:49 bsampley ppp[491]: tun0: LCP: MAGICNUM [6] b2084ec6
Dec 15 01:20:49 bsampley ppp[491]: tun0: HDLC: HdlcOutput
Dec 15 01:20:49 bsampley ppp[491]: tun0: HDLC: ff 03 c0 21
Dec 15 01:22:59 bsampley ppp[491]: tun0: Phase: Disconnected!
Dec 15 01:22:59 bsampley ppp[491]: tun0: Phase: Connect time: 137 secs
Dec 15 01:22:59 bsampley ppp[491]: tun0: Phase: NewPhase: Dead
Dec 15 01:22:59 bsampley ppp[491]: tun0: LCP: State change Req-Sent -->
Starting
Dec 15 01:23:00 bsampley ppp[491]: tun0: Phase: PPP Terminated (normal).
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971215015025.27774A-100000>
