From owner-freebsd-questions@FreeBSD.ORG Tue Oct 28 06:39:28 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 D686116A4CE for ; Tue, 28 Oct 2003 06:39:28 -0800 (PST) Received: from bwlogic.com (H27.C226.tor.velocet.net [216.138.226.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 803D643FE0 for ; Tue, 28 Oct 2003 06:39:27 -0800 (PST) (envelope-from jlavigne@bwlogic.com) Received: (qmail 581 invoked by uid 89); 28 Oct 2003 14:39:23 -0000 Received: from unknown (HELO canada) (192.168.1.5) by h27.c226.tor.velocet.net with SMTP; 28 Oct 2003 14:39:23 -0000 From: "Jason Lavigne" To: "'Lewis Thompson'" , "'FreeBSD-questions'" Date: Tue, 28 Oct 2003 09:39:23 -0500 Message-ID: <001101c39d61$4778bf30$0501a8c0@canada> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-reply-to: <20031028143531.GH288@lewiz.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 Importance: Normal Subject: RE: Complicated ipfw/ipf forwarding. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2003 14:39:29 -0000 > 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? cheers Jay -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Lewis Thompson Sent: Tuesday, October 28, 2003 9:36 AM To: FreeBSD-questions Subject: Complicated ipfw/ipf forwarding. Hi, I have a public IP address and a couple of machines sitting behind a FreeBSD router doing NAT. I'm using ipnat and ipf right now (although I used to use natd/ipfw so I don't mind switching -- I started using ipf/ipnat because of an odd problem with 5.1-RELEASE but I'm switching back to 4.9 now) and wondered if it was possible to do forwarding based on DNS. For example Apache is clever enough to support virtual hosts based on the address requested. Is there any way at all to do this for forwarding on the router? For example if I had three CNAMES for the same IP red, pink and blue. 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 (i.e. the router)? Thanks very much, -lewiz. -- I was so much older then, I'm younger than that now. --Bob Dylan, 1964. ------------------------------------------------------------------------ -| msn:purple@lewiz.net | jabber:lewiz@jabber.org | url:www.lewiz.org |-