From owner-freebsd-questions Sat Jan 16 20:50:05 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA02380 for freebsd-questions-outgoing; Sat, 16 Jan 1999 20:50:05 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA02301 for ; Sat, 16 Jan 1999 20:49:58 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.1/8.9.1) id WAA30226; Sat, 16 Jan 1999 22:49:47 -0600 (CST) Date: Sat, 16 Jan 1999 22:49:47 -0600 From: Dan Nelson 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> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: ; from "Sean T. Lamont .lost." on Sat Jan 16 18:09:04 GMT 1999 X-OS: FreeBSD 3.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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