Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Apr 1998 01:27:29 +0200
From:      Jos Backus <jbackus@plex.nl>
To:        freebsd-questions@FreeBSD.ORG
Subject:   -current PPP question
Message-ID:  <19980427012729.A392@mp-c.com>

next in thread | raw e-mail | index | archive | help

I'm trying to get callback over ISDN to work.

/etc/start_if.tun0 contains:

ppp -auto tue-isdn

/etc/ppp/ppp.conf contains:

default:
 set log Phase Chat Connect Carrier LCP IPCP CCP tun
 set server 3000 ""
 set device /dev/modem
 set speed 115200
 set redial random 0

tue-isdn:
 set phone NUMBER
 accept chap
 accept pap
 set authname jbackus
 set authkey  mypass
 set timeout 0
 set redial 1 1
 set log Phase Chat Connect Carrier LCP IPCP CCP tun
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATZE0Q0 OK-ATZE0Q0-OK \\dATDI\\T TIMEOUT 40 CONNECT"
 set login "TIMEOUT 60 \"\" !/usr/local/sbin/isdn-auth CONNECT"
 set ifaddr 10.10.10.10/0 10.10.11.11/0 255.255.255.0
 add 0 0 10.10.11.11

tue-isdn-auth:
 accept chap
 accept pap
 set server 3001 ""
 set authname Cjbackus
 set authkey  mypass
 set timeout 0
 set log Phase Chat Connect Carrier LCP IPCP CCP tun

ppp.log excerpt of the ``ppp -direct tue-isdn-auth'' session:

Apr 27 01:13:04 jos ppp[376]: tun1: Phase: Listening at port 3001.
Apr 27 01:13:04 jos ppp[376]: tun1: Phase: PPP Started.
Apr 27 01:13:04 jos ppp[376]: tun1: Phase: Connected!
Apr 27 01:13:04 jos ppp[376]: tun1: Phase: Packet mode enabled
Apr 27 01:13:04 jos ppp[376]: tun1: LCP: State change Initial --> Closed
Apr 27 01:13:04 jos ppp[376]: tun1: LCP: State change Closed --> Stopped
Apr 27 01:13:04 jos ppp[376]: tun1: Error: DoLoop: select(): Bad file
descriptor
Apr 27 01:13:04 jos ppp[376]: tun1: Phase: Modem: Connect time: 0 secs: 0
octets in, 0 octets out
Apr 27 01:13:04 jos ppp[376]: tun1: Phase:  total 0 bytes/sec
Apr 27 01:13:05 jos ppp[376]: tun1: Phase: PPP Terminated (done).

/usr/local/sbin/isdn-auth contains:

#!/bin/sh

/usr/sbin/ppp -direct tue-isdn-auth
exit 0

This script authenticates me to the terminal server, so it will know who to
call back.

Now the problem:

When ppp is run at bootup, everything works.
But when I kill ppp and restart it with ``sh /etc/start_if.tun0'', I get the
above select()-related error. But when I run ``ppp tue-isdn' and give the dial
command, everything works again!

Hence the question:

Why does -auto only work at bootup?

Thanks,
-- 
Jos Backus                 _/  _/_/_/        "Modularity is not a hack."
                          _/  _/   _/                -- D. J. Bernstein
                         _/  _/_/_/             
                    _/  _/  _/    _/
jbackus@plex.nl     _/_/   _/_/_/            use Std::Disclaimer;

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980427012729.A392>