Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Sep 1997 19:26:36 +0930
From:      Greg Lehey <grog@lemis.com>
To:        doconnor@Ist.flinders.edu.au
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Divert sockets..
Message-ID:  <19970907192636.59178@lemis.com>
In-Reply-To: <199709070853.SAA03149@holly.rd.net>; from Daniel J. O'Connor on Sun, Sep 07, 1997 at 06:23:32PM %2B0930
References:  <199709070853.SAA03149@holly.rd.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970907192636.59178>