From owner-freebsd-questions@FreeBSD.ORG Wed Sep 27 17:54:22 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 3BE5C16A4DD for ; Wed, 27 Sep 2006 17:54:22 +0000 (UTC) (envelope-from snagit@cbpratt.prohosting.com) Received: from n054.sc0.cp.net (smtpout1109.sc0.he.tucows.com [64.97.144.109]) by mx1.FreeBSD.org (Postfix) with ESMTP id E278543DC3 for ; Wed, 27 Sep 2006 17:53:48 +0000 (GMT) (envelope-from snagit@cbpratt.prohosting.com) Received: from [192.168.1.100] (67.47.213.85) by n054.sc0.cp.net (7.2.069.1) (authenticated as eagletree@hughes.net) id 4519C87D00029F8F for freebsd-questions@freebsd.org; Wed, 27 Sep 2006 17:53:39 +0000 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <20060927172833.GA23474@dfwdamian.vail> References: <20060927172833.GA23474@dfwdamian.vail> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Chris Date: Wed, 27 Sep 2006 10:53:26 -0700 To: FreeBSD Questions X-Mailer: Apple Mail (2.752.2) Subject: Re: rewrite of multiple incoming IPs into a single IP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Sep 2006 17:54:22 -0000 On Sep 27, 2006, at 10:28 AM, Damian Wiest wrote: > On Tue, Sep 26, 2006 at 06:49:50PM -0700, Chris wrote: >> I have spent the day trying to get multiple IP addresses rewritten to >> a single address using IPFW and NATD. Is there a simple way to do > > If I understand your problem correctly, you're trying to host multiple > websites, each with its own IP address, on one server. Why not use IP > aliasing (see ifconfig(8)) with multiple instances of Apache? For > example, > in rc.conf add some lines like: The difficulty comes in using a jail without applying non-supported hacks to allow for multiple IP addresses. I think I blew it by not putting that in this post. The intent to create a single jail supporting multiple legacy sites with their own IPs, was to avoid duplicating the memory footprint of httpd and other services by running a jail for each IP. One can go to a single IP for all the sites, but that may incur resistance that has nothing to do with the technical aspects. It appears the natd solution I posted is working in test anyway. Thank you and sorry I didn't clarify completely on the original post. Chris