From owner-freebsd-questions@FreeBSD.ORG Thu Nov 6 16:47:02 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 2734A16A4CE for ; Thu, 6 Nov 2003 16:47:02 -0800 (PST) Received: from cp4.myhostdns.org (cp4.myhostdns.org [64.5.40.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4DF6643FF7 for ; Thu, 6 Nov 2003 16:47:01 -0800 (PST) (envelope-from bsdnewbie@coolarrow.com) Received: from max3-61.ip.realtime.net ([205.238.179.61] helo=system) by cp4.myhostdns.org with esmtp (Exim 4.24) id 1AHum8-00063u-OA for freebsd-questions@freebsd.org; Thu, 06 Nov 2003 18:46:57 -0600 Message-ID: <200311061846510371.1323BFE7@cp4.myhostdns.org> X-Mailer: Courier 3.50.00.01.1088 (http://www.rosecitysoftware.com) (P) Date: Thu, 06 Nov 2003 18:46:51 -0600 From: "Chris" To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cp4.myhostdns.org X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - coolarrow.com Subject: 4.9-RELEASE jails and named 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: Fri, 07 Nov 2003 00:47:02 -0000 Greetings, I have a server which will host 3 websites, and is assigned a single local= IP address (one from the 192.168.x.x group). I created 3 jails which are= up and running, and each website will be contained entirely within it's= own jail. The jail hostname reflects the domain of the website it will= host. The only daemons running in each jail (for now) are cron and sshd,= and each jail has a single wheel user. Some might call this the beginnings= of a virtual server? This host server runs named. For now, I tell my home computer to use the= host server's public IP address as my only DNS server, so I can access (in= theory) each jail/website by name. I enabled named in rc.conf, then created named.conf, then created zone= files for the server, the 3 jails/websites, and reverse DNS. This process= was rather complicated, and somewhere along the way I have configured= something wrong. The way the zones are set up for the jails/websites, when I ping from my= home computer, it resolves the name to the host server IP and pings it= just fine. But if I try to ssh to the jail/website by name, it ends up= ssh'ing to the host server. The only way I found to ssh into the= jail/website was to first ssh into the host server, then from there I= could ssh to the jail/website by using it's local IP address. At least pings from the outside world can get to the host server.... but= once at the host server, how do I get that traffic routed to the correct= jail/website (local IP address)? This is much tougher than I expected, and after hours of trial and error= trying to self-teach myself how to do this, I digress... I must once again= ask for help from the experts. All assistance is greatly appreciated! Thanks, Chris