Subject: Re: pppd answer dial in calls
To: port mac68k <port-mac68k@netbsd.org>
From: T&B <list.mac68k@tandb.com.au>
List: port-mac68k
Date: 11/19/2001 10:40:32
Success!

I have set up my IIcx to the point where:

1) pppd answers incoming calls.
2) It checks for valid login user in the chap-secrets file.
3) It logs the user id, connect time etc in the /var/log/messages and the custom /var/log/pppanswer log files.

I have a few remaining issues, with which I hope someone can help:

4) The throughput speed (eg: ftp or http) is too slow at about 1kB/s. It's the same on a IIcx or IIvx, accessing local or Internet servers. By contrast, I get 2.5kB/s dialing into a IIvx running Mac OS 7.6 and Remote Access, with the same modem and cables. I get over 4kB/s dialing out through the same connections.

5) The /var/log/messages log file includes the date and time, but the custom /var/log/pppanswer log does not. I need to use the custom file since it only records the pppd data and since it doesn't turn over, but I need the time and date stamps.

6) Answering works with my Banksia Wave56 and Simple56 modems, but not a SupraFax33.6 (I get Serial Line Looped Back errors when it tries to initialise) I tried 38400 serial speed. The Supra works okay with Mac OS and Remote Access.

7) With at least one dial in user, when they drop the connection, their software reports that the connection is dropped, but the modems at each end keep the connection open.

My working files and sample logs are as below. I'll web publish all this when I get it going, since no-one else seems to have done it.

# cat /etc/ppp/options:
predictor1
vj-max-slots 16

# cat /etc/ppp/chap-secrets
tom             *       mypassword          192.168.3.199 *
lesley          *       theirpass           192.168.3.22

# cat /etc/ppp/peers/answer
init 'chat -f /etc/ppp/chat/answer'
persist
logfile /var/log/pppanswer
tty00 57600
lock
auth
idle 600
maxconnect 3600
maxfail 0

# cat /etc/ppp/chat/answer
ABORT   BUSY
ABORT   "NO CARRIER"
ABORT   "NO DIAL"
TIMEOUT 10
""      AT
OK      ATZ
OK      at&f&d0s0=2

TIMEOUT 60

# tail /var/log/messages
Nov 19 10:21:19 dialin1 pppd[5485]: Using interface ppp0
Nov 19 10:21:19 dialin1 pppd[5485]: Connect: ppp0 <--> /dev/tty00
Nov 19 10:21:25 dialin1 pppd[5485]: CHAP peer authentication succeeded for tom
Nov 19 10:21:25 dialin1 pppd[5485]: local  IP address 192.168.1.198
Nov 19 10:21:26 dialin1 pppd[5485]: remote IP address 192.168.3.199
Nov 19 10:21:38 dialin1 pppd[5485]: LCP terminated by peer (User request)
Nov 19 10:21:41 dialin1 pppd[5485]: Connection terminated.
Nov 19 10:21:41 dialin1 pppd[5485]: Connect time 0.4 minutes.
Nov 19 10:21:41 dialin1 pppd[5485]: Sent 380 bytes, received 397 bytes.
Nov 19 10:21:46 dialin1 pppd[5485]: Initializer script failed
Nov 19 10:21:51 dialin1 pppd[5485]: Serial port initialized.

# tail /var/log/pppanswer
Using interface ppp0
Connect: ppp0 <--> /dev/tty00
CHAP peer authentication succeeded for tom
local  IP address 192.168.1.198
remote IP address 192.168.3.199
LCP terminated by peer (User request)
Connection terminated.
Connect time 0.4 minutes.
Sent 380 bytes, received 397 bytes.
Initializer script failed
Serial port initialized.

Thanks for your help, especially to Bruce Anderson and Donald Lee.

Tom