From owner-freebsd-stable@FreeBSD.ORG Mon Mar 22 09:31:03 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46F5A16A4CE for ; Mon, 22 Mar 2004 09:31:03 -0800 (PST) Received: from murdock.sectornotfound.com (unknown [24.84.228.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id BED8F43D31 for ; Mon, 22 Mar 2004 09:31:02 -0800 (PST) (envelope-from eli@gopostal.ca) Received: from gopostal.ca (localhost [127.0.0.1])i2MHV0ae076002 for ; Mon, 22 Mar 2004 09:31:01 -0800 (PST) (envelope-from eli@gopostal.ca) Message-ID: <405F2344.4050309@gopostal.ca> Date: Mon, 22 Mar 2004 09:32:52 -0800 From: "Eli K. Breen" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031208 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: natd & virtual hosting X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 17:31:03 -0000 I'm trying to host a few services under a few different domain names and need to be running multiple webservers to do it (apache 1.3x and 2.x). If I have a single IP, will nat with FreeBSD 4.9 allow me to separate requests by domain name even if they share an IP? Synopsis: Apache 1.3 - bound to 192.168.5.1 Apache 2.x - bound to 192.168.5.2 natd entries: redirect_port tcp 192.168.5.1:80 www.foobar.com:80 redirect_port tcp 192.168.5.2:80 www.otherfoo.com:80 I've noticed with older versions of FreeBSD that natd will simply resolve the names to the IP and as such it sees the natd entries as follows: redirect_port tcp 192.168.5.1:80 123.123.123.123:80 redirect_port tcp 192.168.5.2:80 123.123.123.123:80 ...it will then use the last entry for a given IP (the 192.168.5.2 entry in this case) which effectively breaks this setup. Is there any way to work around this? Does IPFW2 allow for redirection by name? Thanks! -E-