From owner-freebsd-questions Sat Apr 25 16:36:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA10176 for freebsd-questions-outgoing; Sat, 25 Apr 1998 16:36:17 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from kweetal.tue.nl (kweetal.tue.nl [131.155.2.7]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA10148 for ; Sat, 25 Apr 1998 16:35:54 -0700 (PDT) (envelope-from jbackus@plex.nl) Received: from ascend1p21.urc.tue.nl [131.155.211.51] by kweetal.tue.nl (8.8.8) for id BAA05922 (ESMTP). Sun, 26 Apr 1998 01:35:50 +0200 (MET DST) Received: (qmail 417 invoked by uid 1000); 26 Apr 1998 23:27:29 -0000 Message-ID: <19980427012729.A392@mp-c.com> Date: Mon, 27 Apr 1998 01:27:29 +0200 From: Jos Backus To: freebsd-questions@FreeBSD.ORG Subject: -current PPP question Reply-To: Jos Backus Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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