Re: Portmaster 3e <---> pppd running on Linux (2.0.18) (fwd)

Systemverwalter u. -hacker (adamsh@server.ecomp.de)
Sun, 20 Jul 1997 14:35:06 +0200 (MET DST)

>>But for heaven's sake, none of both fires up LCP. WHY?

>Can you get the debug from the *portmaster* side? If you capute that
>you can even feed it into the decoder on our website and it will translate
>to english (well, geeklish) for you.
(Anyway, its native tongue will be much more fluent than Bloody Foreigners'
English of mine. ;-?)

Though PM starts to send garbage, there is simply no indication that
connection is about to be started or initiated.

============================================================================

pm3> version
Livingston PortMaster PM-3 ComOS 3.5
System uptime is 4 days 14 hours 8 minutes
pm3>

============ 1 === Started by dip ==== 1 =================== 1 ===============

[root@firewall adamsh]# dip -v ./dip.cua1.ppp
DIP: Dialup IP Protocol Driver version 3.3.7o-uri (8 Feb 96)
Written by Fred N. van Kempen, MicroWalt Corporation.

DIP: name=root home=/tmp
host=firewall.ecomp.de IP=195.122.132.61
prot=SLIP MTU=296

Modem set to "HAYES".
>> get $free_times 10
About to set variable $free_times to 10
>> get $paid_times 3
About to set variable $paid_times to 3
>> port cua1
PORT: terminal port set to "cua1".
DIP: tty_open: /dev/cua1 (4) DIP: tty_open: IBUF=1024 OBUF=1020
DIP: tty: set_speed: 38400
DIP: tty: set_databits: 8
DIP: tty: set_stopbits: 1
DIP: tty: set_parity: N
>> databits 8
DIP: tty: set_databits: 8
>> chatkey NO\sDIAL\sTONE 5
Added chat response keyword 'NO DIAL TONE' with code '5'
>> chatkey BUSY 6
Added chat response keyword 'BUSY' with code '6'
>> chatkey RINGING\r\n\r\nRINGING\r\n\r\nRINGING 7
Added chat response keyword 'RINGING

RINGING

RINGING' with code '7'
>> chatkey VOICE 8
Added chat response keyword 'VOICE' with code '8'
>> echo on
Display modem output: enabled
>> send ATZ1
>> wait OK 3
ATZ1>> print

>> if $errlvl == 0 goto dial
Got label `dial' at pos 00000D01
>> print

>> print Dialling ECOMP Livingston
Dialling ECOMP Livingston
>> dial 0615181100
>> if $errlvl == 0 goto othererr
>> if $errlvl == 1 goto connect
Got label `voice' at pos 00001121
Got label `ringing' at pos 00001153
Got label `busy' at pos 00001188
Got label `nodialtone' at pos 000011B4
Got label `nocarrier' at pos 000011E7
Got label `timeout' at pos 0000122A
Got label `othererr' at pos 00001273
Got label `free_redial' at pos 000013A4
Got label `paid_redial' at pos 00001419
Got label `connect' at pos 00001566
>> print

>> print Dial-up and log-on completed
Dial-up and log-on completed
>> sleep 3
>> mode PPP
[root@firewall adamsh]# dip -v ./dip.cua1.ppp
DIP: Dialup IP Protocol Driver version 3.3.7o-uri (8 Feb 96)
Written by Fred N. van Kempen, MicroWalt Corporation.

DIP: name=root home=/tmp
host=firewall.ecomp.de IP=195.122.132.61
prot=SLIP MTU=296

Modem set to "HAYES".
>> get $free_times 10
About to set variable $free_times to 10
>> get $paid_times 3
About to set variable $paid_times to 3
>> port cua1
PORT: terminal port set to "cua1".
DIP: tty_open: /dev/cua1 (4) DIP: tty_open: IBUF=1024 OBUF=1020
DIP: tty: set_speed: 38400
DIP: tty: set_databits: 8
DIP: tty: set_stopbits: 1
DIP: tty: set_parity: N
>> databits 8
DIP: tty: set_databits: 8
>> chatkey NO\sDIAL\sTONE 5
Added chat response keyword 'NO DIAL TONE' with code '5'
>> chatkey BUSY 6
Added chat response keyword 'BUSY' with code '6'
>> chatkey RINGING\r\n\r\nRINGING\r\n\r\nRINGING 7
Added chat response keyword 'RINGING

RINGING

RINGING' with code '7'
>> chatkey VOICE 8
Added chat response keyword 'VOICE' with code '8'
>> echo on
Display modem output: enabled
>> send ATZ1
>> wait OK 3
ATZ1>> print

>> if $errlvl == 0 goto dial
Got label `dial' at pos 00000D01
>> print

>> print Dialling ECOMP Livingston
Dialling ECOMP Livingston
>> dial 0615181100
>> if $errlvl == 0 goto othererr
>> if $errlvl == 1 goto connect
Got label `voice' at pos 00001121
Got label `ringing' at pos 00001153
Got label `busy' at pos 00001188
Got label `nodialtone' at pos 000011B4
Got label `nocarrier' at pos 000011E7
Got label `timeout' at pos 0000122A
Got label `othererr' at pos 00001273
Got label `free_redial' at pos 000013A4
Got label `paid_redial' at pos 00001419
Got label `connect' at pos 00001566
>> print

>> print Dial-up and log-on completed
Dial-up and log-on completed
>> sleep 3
>> mode PPP
[root@firewall adamsh]#

-------------------------------------------------------------------------------

dsct_stats (1): RIR<08> RESE
dsct_stats (1): SR1<13> RSLIP
dsct_stats (1): RIR<08> RESE
dsct_stats (1): SR1<13> RSLIP
dsct_stats (1): RIR<08> RESE
dsct_stats (1): SR1<13> RSLIP
dsct_stats (1): RIR<20> JALT
dsct_stats (1): RIR<20> JALT
dsct_stats (1): RIR<20> JALT
dsct_stats (1): RIR<20> JALT
dsct_stats (1): RIR<08> RESE
dsct_stats (1): SR1<13> RSLIP
dsct_stats (1): RIR<20> JALT
dsct_stats (1): RIR<20> JALT
dsct_stats (1): RIR<08> RESE
dsct_stats (1): SR1<13> RSLIP
dsct_stats (1): RIR<08> RESE
dsct_stats (1): SR1<13> RSLIP
dsct_stats (1): RIR<08> RESE
dsct_stats (1): SR1<13> RSLIP
dsct_stats (1): RIR<20> JALT

------------------------------------------------------------------------------

Jul 20 22:03:37 firewall dip[613]: tty_notlocal: file0: /dev/ttyp4 flle4 /dev/cua1
Jul 20 22:03:38 firewall pppd[613]: pppd 2.2.0 started by root, uid 0
Jul 20 22:03:38 firewall kernel: ppp_tty_ioctl: set flags to 70000
Jul 20 22:03:38 firewall kernel: ppp_tty_ioctl: set flags to 70000
Jul 20 22:03:38 firewall pppd[613]: Using interface ppp0
Jul 20 22:03:38 firewall pppd[613]: Connect: ppp0 <--> /dev/cua1
Jul 20 22:03:38 firewall kernel: ppp_tty_ioctl: set xasyncmap
Jul 20 22:03:38 firewall kernel: ppp_tty_ioctl: set xmit asyncmap ffffffff
Jul 20 22:03:38 firewall kernel: ppp_tty_ioctl: set flags to a070000
Jul 20 22:03:38 firewall kernel: ppp_tty_ioctl: set mru to 5dc
Jul 20 22:03:38 firewall kernel: ppp_tty_ioctl: set rcv asyncmap 0
Jul 20 22:03:38 firewall kernel: ppp_tty_ioctl: set flags to a070010
Jul 20 22:03:44 firewall kernel: ppp: channel ppp0 closing.
Jul 20 22:03:44 firewall pppd[613]: Hangup (SIGHUP)
Jul 20 22:03:44 firewall pppd[613]: Modem hangup
Jul 20 22:03:44 firewall pppd[613]: Connection terminated.
Jul 20 22:03:44 firewall pppd[613]: Exit.

===== 2 ======== 2 === started by pppd /chat ==== 2 ======== 2 ===========

[root@firewall adamsh]# sh -x mypppstart.sh
+ pppd connect chat "" "ATZ1" OK ATD0615181100 ogin: EBlink1 assword:
<OurPasswd> /dev/cua1 -detach -d crtscts modem asyncmap 0
[root@firewall adamsh]#

--------------------------------------------------------------------------
dsct_stats (1): RIR<20> JALT
dsct_stats (1): RIR<20> JALT
dsct_stats (1): RIR<20> JALT
dsct_stats (1): RIR<20> JALT
dsct_stats (1): RIR<20> JALT
dsct_stats (1): RIR<08> RESE
dsct_stats (1): SR1<13> RSLIP
dsct_stats (1): RIR<08> RESE
dsct_stats (1): SR1<13> RSLIP
dsct_stats (1): RIR<20> JALT
dsct_stats (1): RIR<08> RESE
dsct_stats (1): SR1<13> RSLIP
dsct_stats (1): RIR<08> RESE
dsct_stats (1): SR1<13> RSLIP

---------------------------------------------------------------------------

Jul 20 22:25:34 firewall kernel: ppp: channel ppp0 closing.
Jul 20 22:25:34 firewall pppd[661]: Hangup (SIGHUP)
Jul 20 22:25:34 firewall pppd[661]: Modem hangup
Jul 20 22:25:34 firewall pppd[661]: Connection terminated.
Jul 20 22:25:34 firewall pppd[661]: Exit.
Jul 20 22:29:39 firewall pppd[672]: pppd 2.2.0 started by root, uid 0
Jul 20 22:30:26 firewall pppd[672]: Exit.

---------------------------------------------------------------------------