Date: Sun, 6 Jul 1997 08:20:15 -0400 (EDT) From: Nathan Dorfman <nathan@senate.org> To: pss@gloom.te.net.ua (Sergey Pukach), freebsd-questions@freebsd.org Subject: Re: ppp question Message-ID: <199707061220.IAA01695@deimos.senate.org> In-Reply-To: <199707061136.OAA00265@gloom.te.net.ua> from Sergey Pukach at "Jul 6, 97 02:36:07 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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 >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707061220.IAA01695>
