Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Oct 1997 08:02:20 +0100
From:      Sigi <sigi@remsmurr.de>
To:        Brian Somers <brian@awfulhak.org>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: (3) UserPPP Problem by hang up
Message-ID:  <1.1.27101997.080220.120.0.BC.0@mail.remsmurr.de>

next in thread | raw e-mail | index | archive | help
>> 
>> 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 <brian@Awfulhak.org>, <brian@FreeBSD.org>, <bri@OpenBSD.org>
>> >      <http://www.Awfulhak.org>;
>> >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 </dev/ttyi$ci$i -clocal crtscts 57600 cs8 hupcl -istrip
    stty </dev/ttyl$ci$i -clocal crtscts 57600 cs8 hupcl -istrip
    stty </dev/cuai$ci$i -clocal crtscts 57600 cs8 hupcl -istrip
    stty </dev/cual$ci$i -clocal crtscts 57600 cs8 hupcl -istrip
  done
--- /dev ---
tunx ..., cuax ..., ttydx ...
--- snip end ---

>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 <brian@Awfulhak.org>, <brian@FreeBSD.org>, <bri@OpenBSD.org>
>      <http://www.Awfulhak.org>;
>Don't _EVER_ lose your sense of humour....

Thanks for helping.
Sigi.




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