From owner-freebsd-questions Wed Aug 4 17:25:53 1999 Delivered-To: freebsd-questions@freebsd.org Received: from awfulhak.org (dynamic-111.max1-du-ws.dialnetwork.pavilion.co.uk [212.74.8.111]) by hub.freebsd.org (Postfix) with ESMTP id 4F8B615496 for ; Wed, 4 Aug 1999 17:25:46 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from keep.lan.Awfulhak.org (root@keep.lan.Awfulhak.org [172.16.0.8]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id BAA00382; Thu, 5 Aug 1999 01:21:59 +0100 (BST) (envelope-from brian@lan.awfulhak.org) Received: from keep.lan.Awfulhak.org (brian@localhost.lan.Awfulhak.org [127.0.0.1]) by keep.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id BAA04905; Thu, 5 Aug 1999 01:24:22 +0100 (BST) (envelope-from brian@keep.lan.Awfulhak.org) Message-Id: <199908050024.BAA04905@keep.lan.Awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Mark Ovens Cc: Brian Somers , questions@FreeBSD.ORG Subject: Re: ppp won't write log In-reply-to: Your message of "Thu, 05 Aug 1999 00:40:23 BST." <19990805004023.C739@marder-1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 05 Aug 1999 01:24:22 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Thu, Aug 05, 1999 at 12:25:22AM +0100, Brian Somers wrote: > > > I've started getting a strange error/warning when connecting to my ISP: > > > > > > Working in interactive mode > > > Using interface: tun0 > > > ppp ON marder-1> dial > > > ppp ON marder-1> Connect: Received: CONNECT 46667/ARQ > > > Connect: Received: are an unauthorized user, DISCONNECT > > > PPp ON marder-1> > > > PPP ON marder-1> > > > > > > Although it says ``DISCONNECT'' it still connects. I enabled logging > > > > This is probably because the last expect string in your dial chat is > > CONNECT, and that's what it finds - so the script's complete. > > > > It is: > > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT&F \ > OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT \\c \\n" > > but, if my ISP is sending ``DISCONNECT'' does that not mean that > it (my ISP) is disconnecting? > > > You could upgrade to the latest ppp and do a ``set cd 1!'' to make > > ppp require carrier. An immediate disconnect should then be detected > > rather than ppp assuming that the device doesn't do CD. > > > > Yes, but it's *not* disconnecting, it just says it is. Exactly. As far as ppp is concerned, it's seeing CONNECT and testing for carrier. Carrier isn't present ('cos your ISP has disconnected) so ppp assumes that your hardware doesn't support carrier and ignorantly continues, thinking that everything's ok. With later versions of ppp you can insist on carrier with the ``!'' in ``set cd 1!''. Ppp will then notice that there's no link after your ISP immediately drops it and will correctly close the modem and notice the failure. -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message