From owner-freebsd-stable@FreeBSD.ORG Wed Oct 26 01:12:02 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E442E1065675 for ; Wed, 26 Oct 2011 01:12:02 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from smtp.lamaiziere.net (net.lamaiziere.net [94.23.254.147]) by mx1.freebsd.org (Postfix) with ESMTP id A63138FC14 for ; Wed, 26 Oct 2011 01:12:02 +0000 (UTC) Received: from baby-jane.lamaiziere.net (63.9.74.86.rev.sfr.net [86.74.9.63]) by smtp.lamaiziere.net (Postfix) with ESMTPA id E2919FAA31A5; Wed, 26 Oct 2011 03:12:00 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by baby-jane.lamaiziere.net (Postfix) with ESMTP id 78E0E730D8; Wed, 26 Oct 2011 03:12:04 +0200 (CEST) Date: Wed, 26 Oct 2011 03:12:02 +0200 From: Patrick Lamaiziere To: freebsd-stable@freebsd.org Message-ID: <20111026031202.2a8780f9@davenulle.org> In-Reply-To: <4EA721A7.8050905@gmail.com> References: <4EA721A7.8050905@gmail.com> X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.6; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: carlopmart Subject: Re: Some questions about jails on FreeBSD9.0-RC1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Oct 2011 01:12:03 -0000 Le Tue, 25 Oct 2011 22:52:55 +0200, carlopmart a écrit : Hello, > I have installed one FreeBSD 9.0-RC1 host to run different services > (dns, smtp and www only) using jails. This host has two physical > nics: em0 and em1. em0 is assigned to pyhiscal host, and I would like > to assign em1 to jails. But em0 and em1 are on different networks: > em0 is on 192.168.1.0/24 and em1 in 192.168.2.0/29. > > I have setup one jail using ezjail. My first surprise is that > ezjail only installs -RELEASE versions and not RC versions. Ok, I > supouse that it is normal. But my first question is: can I install a > FreeBSD 8.2 jail under a FreeBSD 9.0 host?? You may run 8.2 installed ports on 9.0 by using the port /usr/ports/misc/compat8x/ But I suggest to upgrade the port ASAP. > And the real question: How do I need to configure network under > this jail to access it? I have configured ifconfig param for em1 on > host's rc.conf, but what about the default route under this jail?? I > thought to use pf rules, but I am not sure. jail enforces the use of the jail IP address in the jail, but that's all. Just enable routing on the host. Also be sure that the host's daemons don't bind on the jail IP address, as explained in the man page of jail (Setting up the Host Environment). Regards.