From owner-freebsd-hackers Sun Sep 7 22:24:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA07312 for hackers-outgoing; Sun, 7 Sep 1997 22:24:10 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA07304 for ; Sun, 7 Sep 1997 22:24:05 -0700 (PDT) Received: from word.smith.net.au (lot.atrad.adelaide.edu.au [203.20.121.21]) by genesis.atrad.adelaide.edu.au (8.8.5/8.7.3) with ESMTP id OAA24290 for ; Mon, 8 Sep 1997 14:54:01 +0930 (CST) Received: from word.smith.net.au ([127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id KAA00615; Mon, 8 Sep 1997 10:45:29 +1000 (EST) Message-Id: <199709080045.KAA00615@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: doconnor@Ist.flinders.edu.au cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Divert sockets.. In-reply-to: Your message of "Sun, 07 Sep 1997 18:23:32 +0930." <199709070853.SAA03149@holly.rd.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 08 Sep 1997 10:45:18 +1000 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > 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). You could hang something off a divert socket to do this. > I know ijppp can do this, but I have problems with ijppp =) Fix your problems. 8) > 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 :) Bingo. You would have to configure an interface before any packets would be submitted to it. mike