From owner-freebsd-isp@FreeBSD.ORG Mon Jul 26 08:06:37 2004 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8553016A4CE for ; Mon, 26 Jul 2004 08:06:37 +0000 (GMT) Received: from mail.butovo-online.ru (mail.b-o.ru [212.5.78.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC2FD43D1F for ; Mon, 26 Jul 2004 08:06:36 +0000 (GMT) (envelope-from resident@b-o.ru) Received: from [212.5.78.81] (helo=212.5.78.81) by mail.butovo-online.ru with esmtp (Exim 4.24) id 1Bp0gb-000Jht-8c; Mon, 26 Jul 2004 12:18:17 +0400 Date: Mon, 26 Jul 2004 12:08:55 +0400 From: Andrew Riabtsev X-Mailer: The Bat! (v1.62i) Business X-Priority: 3 (Normal) Message-ID: <91167665580.20040726120855@b-o.ru> To: "Arie Gerszt" In-Reply-To: <000301c470ed$91015440$5b01a8c0@i8000> References: <000301c470ed$91015440$5b01a8c0@i8000> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-isp@freebsd.org Subject: Re: Apache - reverse proxy with freebsd X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Andrew Riabtsev List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jul 2004 08:06:37 -0000 Hello Arie, Friday, July 23, 2004, 11:45:11 PM, you wrote: AG> Hi AG> Currently I am running a standard setup with NameBased Virtualhosts with AG> HTTP 1.1 with a couple of Vhosts. Each has the same public IP. AG> What I would like to do: AG> - assign each vhosts a unique RFC1918 internal address AG> - do some nat / reverse proxy magic on the freebsd box (the AG> webserver itself) AG> - I want to use the same public IP AG> Is there a solution for that? What I could not figure out, how the AG> reverse proxy could distinghish / split up the http 1.1 individual AG> domains to internal ips. Without hardcore programming - no. First that come on my mind is you can write program, which is nats and splits IPs on packets recieved from divert-socket, or for example extend ip_nat.c with functions you need. Probably there is easyer netgraph solution with less pain but noone for ng_experts answeared you so this is the only way to start for now. :) Andrew, mailto:resident@b-o.ru proud ubah haxor lvl 9 (http://www.try2hack.nl/levels/)