From owner-freebsd-questions Sun Jul 6 05:25:53 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA20856 for questions-outgoing; Sun, 6 Jul 1997 05:25:53 -0700 (PDT) Received: from deimos.senate.org (nathan@senate.org [204.141.125.38]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA20851 for ; Sun, 6 Jul 1997 05:25:49 -0700 (PDT) Received: (from nathan@localhost) by deimos.senate.org (8.8.5/8.8.5) id IAA01695; Sun, 6 Jul 1997 08:20:15 -0400 (EDT) From: Nathan Dorfman Message-Id: <199707061220.IAA01695@deimos.senate.org> Subject: Re: ppp question In-Reply-To: <199707061136.OAA00265@gloom.te.net.ua> from Sergey Pukach at "Jul 6, 97 02:36:07 pm" To: pss@gloom.te.net.ua (Sergey Pukach), freebsd-questions@freebsd.org Date: Sun, 6 Jul 1997 08:20:15 -0400 (EDT) X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Try compiling your kernel with a ppp0 interface and running pppd. If you set everything in /etc/ppp/options, and place a dialerscript such as the one I provide here in /etc/ppp/ppp-dialer or similar, you can simply pppd and it will establish the connection. To reconnect-on-disconnect is a little tougher. This depends on your modem; my old modem for example would just sit there and I'd have to call my other line to see if it was busy or ringing! My new Sportster does hangup if it gets a disconnect, pppd will die with a SIGHUP. This allows you to devise keep-alive methods. For example you can write a program that does a fork(), exec() on pppd, and then wait() for it to die, then loop back to the fork(). You can also devise something with the /etc/ttys file: ttyv5 "/usr/sbin/pppd" cons25 on secure This should work (i've never tried it) the bad news is it takes up a vty. You can still do something useful with it though, add to your /etc/syslog.conf: *.* /dev/ttyv5 This will have syslogd output ALL log messages onto that terminal. Extremely useful, especially with pppd, as it is a daemon and logs its messages instead of outputing. However I have not tried the /etc/ttys trick. Please e-mail me if you try it and it works. > Hi, > > I'm very confused - user process ppp can't stay on line even 5 min. > I need reconnect every time, and this time too often :( > There is no problem when I use some terminal prog to establish shell > access. I have a good telephone line, modem seems ok. Looks like > some ppp params need adjustment but I don't know which. > Here is part of my /etc/ppp/ppp.conf > > -- Cut -- > default: > set device /dev/cuaa1 > set speed 38400 > disable lqr > deny lqr > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\"AT&F1S6=10L0P OK-AT-OK \\dATDP\\T TIMEOUT 40 CONNECT" > > tenet: > set phone 068 > set login "TIMEOUT 5 gin:-BREAK-gin: pss word: xxxxxxxx de:> 3" > set timeout 20 > set ifaddr 0 195.138.80.60 > -- Cut -- > > Does anyone know what I'm doing wrong ? > Thanks. > > pss > > // Sergey Pukach > // pss@te.net.ua >