Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jan 1999 22:49:47 -0600
From:      Dan Nelson <dnelson@emsphone.com>
To:        lamont@abstractsoft.com
Cc:        questions@FreeBSD.ORG
Subject:   Re: Since I have had two "what are you talking about" e-mails...
Message-ID:  <19990116224947.A30115@dan.emsphone.com>
In-Reply-To: <Pine.BSF.4.02.9901161802200.26918-100000@itchy.serv.net>; from "Sean T. Lamont   .lost." on Sat Jan 16 18:09:04 GMT 1999
References:  <Pine.BSF.4.02.9901161802200.26918-100000@itchy.serv.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jan 16), Sean T. Lamont   .lost. said:
> 
> I am forced to refine my question.
> 
> What I want to do is force certain (rfc1918) dialup IP#'s to go
> towards an internal web page, one that is completely independent from
> anything on the internet at large.
> 
> If I can duplicate the following functionality
> 
> ifconfig lan0 1.1.1.1 255.255.255.255 alias
> ifconfig lan0 1.1.1.2 255.255.255.255 alias
> 
> ... 4 billion lines later...
> 
> ifconfig lan0 255.255.255.255 255.255.255.255 alias

Sounds like you want an ipfw "fwd" rule.

ipfw add 100 fwd 1.2.3.4 tcp from 10.0.0.0/8 to any 80

Then you set your web server up on 1.2.3.4 to catch the packets.  Only
connections from the 10.* subnet get redirected.  The fwd rule was
designed to work with Squid to create a transparent proxy cache, but
should do what you want.

	-Dan Nelson
	dnelson@emsphone.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



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