From owner-freebsd-net Thu Jan 24 5:10:38 2002 Delivered-To: freebsd-net@freebsd.org Received: from Awfulhak.org (gw.Awfulhak.org [217.204.245.18]) by hub.freebsd.org (Postfix) with ESMTP id B7BA337B402; Thu, 24 Jan 2002 05:10:29 -0800 (PST) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [fec0::1:12]) by Awfulhak.org (8.11.6/8.11.6) with ESMTP id g0ODASm35415; Thu, 24 Jan 2002 13:10:28 GMT (envelope-from brian@freebsd-services.com) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.6/8.11.6) with ESMTP id g0ODAOl49131; Thu, 24 Jan 2002 13:10:24 GMT (envelope-from brian@freebsd-services.com) Message-Id: <200201241310.g0ODAOl49131@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: zaks@prioris.mini.pw.edu.pl Cc: freebsd-net@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG, brian@freebsd-services.com Subject: Re: PPP callback and SecurID In-Reply-To: Message from Slawek Zak of "Sat, 19 Jan 2002 13:35:12 +0100." <87ofjqo6wv.fsf@pf39.warszawa.sdi.tpnet.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 24 Jan 2002 13:10:24 +0000 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org You could probably ``set cd off'' to get the desired effect. Alternatively, configure your machine to be able to receive incoming connections and let the initial ppp session drop when the peer hangs up. > I've a problem with my callback. I'd like to automate it somehow, but there is a > problem with LCP. > > The hard way is to do something like: > > # ppp ras > ppp ON pf39> term > deflink: Entering terminal mode on /dev/cuaa1 > Type `~?' for help > atdt > CONNECT 57600 > > > User Access Verification > > Username: > Enter PASSCODE: > > Callback initiated - line is disconnected > > NO CARRIER > > RING > > RING > > ATA > ...... (the connection) > > I tried to do something like this: > > [ppp.conf] > ... > callback: > disable pap > disable chap > set speed 57600 > set phone > set cd off > set device /dev/cuaa1 > allow users * > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 10 \"\" ATZ OK ATDT\\T TIMEOUT 40 CONNECT" > set login "TIMEOUT 15 sername: szak PASSCODE: \"!/usr/X11R6/bin/ssh-askpass\" Callback ATA" > > But it bails out, because the connection is apparently considered open by ppp > after the disconnection, so I can't make the modem accept connections with ATA > command in this state. > > Does anyone have other ideas how to make it work without typing the sequence > everytime with term? > > Thanks, /S -- Brian http://www.freebsd-services.com/ Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message