*BSD News Article 53038


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!oleane!tank.news.pipex.net!pipex!dispatch.news.demon.net!demon!palmer.demon.co.uk!palmer.demon.co.uk!not-for-mail
From: gary@palmer.demon.co.uk (Gary Palmer)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: ppp problems (filters and chat)
Date: 19 Oct 1995 21:16:23 +0100
Organization: none
Lines: 35
Message-ID: <466bmn$1gg@palmer.demon.co.uk>
References: <461771$469@shellx.best.com>
NNTP-Posting-Host: pc.my.org
X-NNTP-Posting-Host: palmer.demon.co.uk

In article <461771$469@shellx.best.com>,
David Paigen <paigen@shellx.best.com> wrote:
>First, what is this about filters?  The man page mentions three,
>ifilter, ofilter, and dfilter.  Are these input, output, and dial
>filters?  I.e. what can come in, what can go out, and what will
>cause a dial?  Also, I saw in an article here mention of an 'afilter',
>would that be a keep alive filter, i.e. these packets should not
>keep the link alive?

Top of the class sir! Pefect understanding.

>What are good things to filter?

Depends on your situation. I don't dial out (i.e. dfilter) ICMP
packets, DNS and sendmail activity. You may want to do things
differently.

>Second, on occasion the login chat with my provider fails.  I think
>this is because the modems don't link properly (e.g. bad parity or
>speed, etc).  When that happens ppp keeps trying to dial and login
>every few seconds, but never drops the line so it is always conversing
>with my ISP, not my modem.  Here are the relevant entries from my
>ppp.conf:

> set dial "ABORT BUSY ABORT NO\\sCARRIR TIMEOUT 5 \"\" AT OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT"

Try:

 set dial "ABORT BUSY ABORT NO\\sCARRIER ABORT NO\\sDIAL\\sTONE TIMEOUT 7 \"\" AT OK-AT-OK-+++\\c-OK \\dATDT\\T TIMEOUT 30 CONNECT"

A couple of changes: abort on more conditions, and if the modem doesn't
respond to ``AT'', then try to disconnect with ``+++''.

Gary