From owner-freebsd-hackers Sun Sep 7 02:57:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA11261 for hackers-outgoing; Sun, 7 Sep 1997 02:57:16 -0700 (PDT) Received: from nico.telstra.net (nico.telstra.net [139.130.204.16]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id CAA11256 for ; Sun, 7 Sep 1997 02:57:11 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by nico.telstra.net (8.6.10/8.6.10) with ESMTP id TAA17109; Sun, 7 Sep 1997 19:56:37 +1000 Received: (grog@localhost) by freebie.lemis.com (8.8.7/8.6.12) id TAA14483; Sun, 7 Sep 1997 19:26:36 +0930 (CST) Message-ID: <19970907192636.59178@lemis.com> Date: Sun, 7 Sep 1997 19:26:36 +0930 From: Greg Lehey To: doconnor@Ist.flinders.edu.au Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Divert sockets.. References: <199709070853.SAA03149@holly.rd.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199709070853.SAA03149@holly.rd.net>; from Daniel J. O'Connor on Sun, Sep 07, 1997 at 06:23:32PM +0930 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, Sep 07, 1997 at 06:23:32PM +0930, Daniel J. O'Connor wrote: > Hi, > I was wondering if its possible to write a program which would do > 'dial on demand', by grabbing packets, and seeing if they are destined > to go out of the system, and if so, run a script(which would cause a > dialup). I know ijppp can do this, but I have problems with ijppp =) Maybe you should first address your problems with iijppp. Are you the bloke who gets a line drop after 30 seconds? Did you follow up Brian's suggestions? What happened? > The only problem I can see is that since a default route wouldn't be > established yet(since you aren't dialed up), the packets would be > killed off before they pass through a divert socket.(I don't know much > about how that stuff works :) You can establish the default route with 'route add default' if you want. you need to do that for iijppp as well. But before you do any of that, you should ask yourself why you want to do it this way. If you ask us, you should tell us the answer to that 'why'. So far, I can't see what you're trying to achieve that iijppp won't do for you a whole lot better. Greg -- Greg Lehey LEMIS grog@lemis.com PO Box 460 Tel: +61-8-8388-8286 Echunga SA 5153 Fax: +61-8-8388-8725 Australia