From owner-freebsd-questions@FreeBSD.ORG Sun Feb 6 09:17:27 2005 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 477B716A4CE for ; Sun, 6 Feb 2005 09:17:27 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFA7443D45 for ; Sun, 6 Feb 2005 09:17:26 +0000 (GMT) (envelope-from freebsd99@gmail.com) Received: by wproxy.gmail.com with SMTP id 58so609803wri for ; Sun, 06 Feb 2005 01:17:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=n1OTVeTu8vVUr3sah7o788BLloIHywSD743cseHysBwnDsB2u9oiPH+Cn0JxEMNlyn8ezngZ3lDjIpEyRq08KttooGqCy4WHQ2NgM69cmAtErfGi3fryN+aUsNyjASc62TiVLo0ruFMwXgrL00jFUoxRz/oW0IDDO6wJtRH6w3I= Received: by 10.54.53.71 with SMTP id b71mr185229wra; Sun, 06 Feb 2005 01:17:25 -0800 (PST) Received: by 10.54.2.60 with HTTP; Sun, 6 Feb 2005 01:17:25 -0800 (PST) Message-ID: Date: Sun, 6 Feb 2005 17:17:25 +0800 From: r p To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Redirect based on domain name X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: r p List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Feb 2005 09:17:27 -0000 Hi, I've set up two jails on my system. I'm wondering if it's possible to redirect incoming traffic to a particular jail based on the domain name? So, if someone connected to "first.com" they would be directed to the 192.168.0.1 jail, and if they connected to "second.com" they would be directed to the 192.168.0.2 jail. I'd like to do it for www and ssh. Someone suggested to me that maybe squid could be employed for the www part. At the moment I'm achieving this by listening for non-standard ports on my firewall/gateway box and then redirecting to the correct jail based on what port is connected to. Any ideas, or pointers? --- Rick