From owner-freebsd-questions Thu Nov 13 19:02:20 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA18079 for questions-outgoing; Thu, 13 Nov 1997 19:02:20 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from verdi.jlc.net (verdi.jlc.net [199.201.159.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA18067 for ; Thu, 13 Nov 1997 19:02:11 -0800 (PST) (envelope-from nrice@emu.sourcee.com) Received: from emu.sourcee.com (emu.sourcee.com [199.201.159.173]) by verdi.jlc.net (8.8.7/8.6.9) with SMTP id WAA22081 for ; Thu, 13 Nov 1997 22:01:58 -0500 (EST) Message-ID: <346BBEEB.41C67EA6@emu.sourcee.com> Date: Thu, 13 Nov 1997 22:00:59 -0500 From: "Norman C. Rice" X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.2.2-RELEASE i386) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: user-mode ppp server with mgetty Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I have a problem with using mgetty (AutoPPP) and user-mode ppp as a PPP server. Namely, ppp remains running after the connection is dropped and mgetty won't take control of the port (answer incoming calls) until I kill the ppp process. The log file indicates that the connection is dropped Nov 7 13:40:27 falcon ppp[16129]: Link: OsLinkdown: 205.181.248.230 Nov 7 13:40:28 falcon ppp[16129]: Phase: Disconnected! Nov 7 13:40:28 falcon ppp[16129]: Phase: Connect time: 1111 secs Nov 7 13:40:28 falcon ppp[16129]: Phase: NewPhase: Dead The ppp.conf file contains (the msext stuff is for Win95 clients) default: set device /dev/cuaa1 set speed 115200 set parity none set timeout 0 ppp: disable chap enable pap enable passwdauth enable proxy set ifaddr 205.181.248.185 205.181.248.230 255.255.255.255 enable msext set ns 205.181.248.185 199.201.159.5 set nbns 205.181.248.185 199.201.159.5 The ttys file is used to start mgetty as ttyd1 "/usr/local/sbin/mgetty -D" dialup on secure The mgetty login.config file contains /AutoPPP/ - - /etc/ppp/ppp-ppp The /etc/ppp/ppp-ppp file is executable and contains IDENT=`echo $0 | sed -e 's/^.*-\(.*\)$/\1/'` CALLEDAS="$IDENT" TTY=`tty` if [ x$IDENT = xdialup ]; then IDENT=`basename $TTY` fi echo "PPP for $CALLEDAS on $TTY" echo "Starting PPP for $IDENT" exec /usr/sbin/ppp -direct $IDENT The system is a Pentium 200 with 64M EDO and a Seagate 9G SCSI drive. It is running FreeBSD 2.2.2-RELEASE. I installed what I believe are the "latest" user-mode ppp binaries around November 2, 1997. ppp-971026-2.2-STABLE.bin.tar.gz I saw a question similar to this posted some time ago, but I never saw a response. My efforts to use the ! and !bg command within ppp.linkdown to kill the ppp process or even write to a file have been unsuccessful. I have tried setting the modem to auto answer (there are strong words against this in the mgetty docs) as an experiment, but I was still unable to make a connection after the first hang up (the initial connection works great). It appears that I am overlooking something. Before I take the effort to write a daemon to handle this problem, I would appreciate it if anyone could help. I apologize for the length of this plea for assistance, but I tried to include information that may help...and it is my first posting. Regards, Norman C. Rice, Jr. nrice@emu.sourcee.com