From owner-freebsd-hackers Sat May 17 07:51:02 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA26238 for hackers-outgoing; Sat, 17 May 1997 07:51:02 -0700 (PDT) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA26233 for ; Sat, 17 May 1997 07:50:58 -0700 (PDT) Received: from awfulhak.demon.co.uk (localhost.lan.awfulhak.org [127.0.0.1]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id FAA21692; Sat, 17 May 1997 05:11:51 +0100 (BST) Message-Id: <199705170411.FAA21692@awfulhak.demon.co.uk> X-Mailer: exmh version 1.6.9 8/22/96 To: Sren Schmidt cc: hackers@FreeBSD.ORG (FreeBSD hackers) Subject: Re: bidirectional PPP possible ?? In-reply-to: Your message of "Fri, 16 May 1997 00:39:28 +0200." <199705152239.AAA17476@sos.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Date: Sat, 17 May 1997 05:11:50 +0100 From: Brian Somers Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id HAA26234 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > I have a problem... > > I want to have my PPP connection to my ISP demand dialed both ways, > ie the one who has some packets to deliver opens the line. > > I have it sortof running by using a ppp -auto as my demand dialer, > and having a ppp hanging off a ppp aware getty on the same modem. > > The problem is that the -auto ppp set a default route, which > points to tun0, now when a call comes in its answered and the ppp > comes up on tun1 which should now be the default, and as expected > this doesn't work :( > If I kill the ppp -auto when the call comes in, it works, but > I cannot get it to start a new one on exit, so I'm lost again... > > I have fixed IP# in both ends (which I can control), and I need > to route my little network over the line. > > Any ideas ?? sombody have this working ?? How about a ppp.linkup that does a my-in-label: ! sh -c "kill `cat /var/run/tun?.pid`" delete ALL add 0 0 HISADDR (or something) and a dialin .profile that says ppp -direct my-in-label exec ppp -auto my-out-label > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Søren Schmidt (sos@FreeBSD.org) FreeBSD Core Team > Even more code to hack -- will it ever end > .. -- Brian , Don't _EVER_ lose your sense of humour....