From owner-freebsd-questions@FreeBSD.ORG Tue Oct 28 08:19:10 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5AB7616A4CF for ; Tue, 28 Oct 2003 08:19:10 -0800 (PST) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [66.30.200.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id A1BAA43FEC for ; Tue, 28 Oct 2003 08:19:09 -0800 (PST) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: by be-well.ilk.org (Postfix, from userid 1147) id 1F3C03AB7; Tue, 28 Oct 2003 11:19:09 -0500 (EST) Sender: lowell@be-well.ilk.org To: 'Lewis Thompson' References: <20031028143531.GH288@lewiz.org> <001101c39d61$4778bf30$0501a8c0@canada> <20031028144509.GM288@lewiz.org> From: Lowell Gilbert Date: 28 Oct 2003 11:19:08 -0500 In-Reply-To: <20031028144509.GM288@lewiz.org> Message-ID: <44oew1cp37.fsf@be-well.ilk.org> Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: 'FreeBSD-questions' Subject: Re: Complicated ipfw/ipf forwarding. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: 'FreeBSD-questions' List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2003 16:19:10 -0000 'Lewis Thompson' writes: > On Tue, Oct 28, 2003 at 09:39:23AM -0500, Jason Lavigne wrote: > > > Could I have red.foo.bar forwarded to 192.168.0.2, pink.foo.bar > > forwarded to 192.168.0.3 and say blue.foo.bar go to the local machine > > > > wouldn't you use DNS (bind) for this? > > How? I only have one external IP address (say 1.2.3.4) but behind the > NAT machine I have many. However, I have a.foo.com, b.foo.com and > c.foo.com. I want some IP forwarding software to rewrite the > destination address from 1.2.3.4 based on the CNAME entry (in the same > way Apache can do). How would the IP forwarding software *know* about the CNAME entry? In Apache's case, the HTTP request tells it, but other protocols don't necessarily include the domain name that the client is using.