From owner-freebsd-questions@FreeBSD.ORG Tue Oct 28 14:34:15 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 68F8316A4CF for ; Tue, 28 Oct 2003 14:34:15 -0800 (PST) Received: from mail.vonostingroup.com (ip209-154.digitalrealm.net [216.144.209.154]) by mx1.FreeBSD.org (Postfix) with SMTP id DD94E43FDD for ; Tue, 28 Oct 2003 14:34:13 -0800 (PST) (envelope-from laszlof@vonostingroup.com) Received: (qmail 86103 invoked by uid 89); 28 Oct 2003 22:35:33 -0000 Received: from unknown (HELO pcp01193849pcs.waldlk01.mi.comcast.net) (laszlof@68.62.82.158) by ip209-154.digitalrealm.net with SMTP; 28 Oct 2003 22:35:33 -0000 From: Frank Laszlo To: Andras Kende In-Reply-To: <200310282030.h9SKUd86000643@kende.dyndns.org> References: <200310282030.h9SKUd86000643@kende.dyndns.org> Content-Type: text/plain Organization: Message-Id: <1067380572.3789.13.camel@star.vonostingroup.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.3 Date: 28 Oct 2003 17:36:12 -0500 Content-Transfer-Encoding: 7bit cc: 'Lewis Thompson' cc: 'FreeBSD-questions' 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 22:34:15 -0000 X-List-Received-Date: Tue, 28 Oct 2003 22:34:15 -0000 I suppose something like this might be possible with squid, Though im not sure how to do it. -Frank On Tue, 2003-10-28 at 17:30, Andras Kende wrote: > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Lewis Thompson > Sent: Tuesday, October 28, 2003 8: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.