From owner-freebsd-questions Sun Oct 26 23:02:29 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA20343 for questions-outgoing; Sun, 26 Oct 1997 23:02:29 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from isk.de (manfred.remsmurr.de [194.97.228.5]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id XAA20338 for ; Sun, 26 Oct 1997 23:02:24 -0800 (PST) (envelope-from sigi@remsmurr.de) Received: (qmail 11098 invoked from network); 27 Oct 1997 07:02:20 -0000 Received: from unknown (HELO ?194.97.228.128?) (194.97.228.128) by manfred.remsmurr.de with SMTP; 27 Oct 1997 07:02:20 -0000 Date: Mon, 27 Oct 1997 08:02:20 +0100 From: Sigi Subject: Re: (3) UserPPP Problem by hang up X-Mailer: PostMe 1.1 To: Brian Somers Cc: freebsd-questions@FreeBSD.ORG Mime-Version: 1.0 Message-ID: <1.1.27101997.080220.120.0.BC.0@mail.remsmurr.de> X-Sender: n000001@mail.remsmurr.de (Unverified) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >> >> Hello Brian. >> >> >> >> >> Hi Freaks. >> >> >> >> I have a problem on FreeBSD 2.2.2 my dial-in machine with UserPPP >> >> from Toshiharu OHNO. "ttys" and "gettytab" and "ppplogin" and >> >> "ppp.conf" are taken from an other machine with older FreeBSD I >> want >> >> to migrate from (there is all working fine). All is working >> beatiful >> >> but when the user dials in and then hangs up the ppp process didn't >> >> notice that. The ppp goes off first at the timeout configured. >> >> >> >> Where must I look for to get this right handeld? >> >> Thanks for answers. >> > >> >It's now fixed. You can download & build the latest ppp from: >> > >> > http://www.freebsd.org/~brian. >> >> I downloaded this morning and installed. Made all dial-in user to >> group "network". And tested. IT'S THE SAME AS BEVOR !!! One thing is >> better: the dialog of taking log-level and tun-device doesn't more >> come up to the user, that's fine. BUT IF THE LINE GOES DOWN BY THE >> USER, PPP WORKS AND WAITS UNTIL HIS TIMEOUT COMES UP. IT DOESN'T TAKE >> ANY ACT OF THE LINE DOWN !!!??? >> >> >Make sure you read the README file :-) >> >> I did it. ;-) Now PPP works only with group "network". It maybe a >> secure job, but I don't like it. I have a few groups of different >> users wich I give several rights over the group define. That doesn't >> work anymore! > >I don't understand the problem here. Being part of group network >enables you to run ppp -direct and nothing else. It shouldn't >interfere with any other setup. It's a problem of my own insatllation not of the error or problem that the ppp doesn't work right on this new installation. For some work I could check the user GID to give hime some rights for something to do. Now I can't do it anyway because all users have the same GID "network". This I'm meaning. But it's not the problem, how I said. >> >> Sigi. >> >> >> > >> >-- >> >Brian , , >> > >> >Don't _EVER_ lose your sense of humour.... >> >> Thanks. BUT IT DOESN'T WORK. > >How have you got things set up ? Are you exec'ing ppp - ie, the ppp >-direct process should have a parent process id of 1. > >I'm assuming that this is over a modem link too. If you still can't >get it working, send me the details. You can get it, I seem it is a normal installation: --- /etc/passwd --- dummy:*:10003:69::0:0:Dummy:/home/dumy/./:/usr/local/bin/ppplogin --- /usr/local/bin/ppplogin --- #!/usr/local/bin/perl $USER = $ENV{"USER"}; $COMPORT = ...; # it's a little longer ;-) $OUT = $USER; or $OUT = $COMPORT; # with a little check between exec "/usr/sbin/ppp -direct $OUT"; --- /etc/ppp/ppp.conf --- default: disable pap deny pap disable chap deny chap disable lqr deny lqr disable pred1 deny pred1 disable passwdauth enable msext set log chat phase LCP IPCP set timeout 300 # after this timeout the connection goes down dummy: set ifaddr mydomain userdomain enable proxy ttyd0: set ifaddr mydomain ttydomain enable proxy --- /etc/ttys --- ttyd0 "/usr/libexec/getty ehh" ansi on insecure ... --- /etc/gettytab --- ehh|EHH Datalink Modem:\ :np:hw:to#40:ct#30:rt#900:sp#57600:\ :ic="" +++ "" "\p\p\p\pATH0\r" OK\r ATM0L0E1Q0V1&K3\r OK\r:\ :ac=RING\r ATA\r CONNECT: --- /etc/rc.serial --- modem() { ci=$1; shift co=$1; shift for i in $* do comcontrol /dev/tty$ci$i dtrwait 60 drainwait 10 stty There's info in the FAQ > > http://www.freebsd.org/FAQ/userppp.html > >about what log levels to set etc. I read it bevor. Logging is Ok. Log-Level is not the same as Function-Level, or? ;-) But PPP doesn't receive the line down to terminate the process. >> Sigi. >> > >Cheers. >-- >Brian , , > >Don't _EVER_ lose your sense of humour.... Thanks for helping. Sigi.