Date: Thu, 13 Nov 1997 22:00:59 -0500 From: "Norman C. Rice" <nrice@emu.sourcee.com> To: freebsd-questions@FreeBSD.ORG Subject: user-mode ppp server with mgetty Message-ID: <346BBEEB.41C67EA6@emu.sourcee.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?346BBEEB.41C67EA6>
