From owner-freebsd-stable@FreeBSD.ORG Tue Oct 25 22:38:33 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 36FC5106566C for ; Tue, 25 Oct 2011 22:38:33 +0000 (UTC) (envelope-from gkontos.mail@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 049038FC12 for ; Tue, 25 Oct 2011 22:38:32 +0000 (UTC) Received: by iaky10 with SMTP id y10so1693166iak.13 for ; Tue, 25 Oct 2011 15:38:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=nHeJAAxTWwzCoA1vCcroZGjsBRVvZ+VF/Ws8uK/tm8Q=; b=HDflPgbP3BIzwG5PjirYtGqu2eNI3gLl/BurFolrvYvqKtv6ksL6O9z/qvt+ioYPIk TT1wKwEDVaH7qtKXgKZVkEz1Gad0+JHzxYwYPK6Xb9LDSBtZYFeT4OQN5EM9vTfeUHUH 4Pg8gxfKiiiaYj9AmCTmhMUTRKv6geLEQKXtU= MIME-Version: 1.0 Received: by 10.231.27.203 with SMTP id j11mr968496ibc.10.1319582311515; Tue, 25 Oct 2011 15:38:31 -0700 (PDT) Received: by 10.231.34.140 with HTTP; Tue, 25 Oct 2011 15:38:31 -0700 (PDT) In-Reply-To: <4EA721A7.8050905@gmail.com> References: <4EA721A7.8050905@gmail.com> Date: Wed, 26 Oct 2011 01:38:31 +0300 Message-ID: From: George Kontostanos To: carlopmart Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable@freebsd.org 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: Tue, 25 Oct 2011 22:38:33 -0000 On Tue, Oct 25, 2011 at 11:52 PM, carlopmart wrote: > Hi all, > > =A0I have installed one FreeBSD 9.0-RC1 host to run different services (d= ns, > 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/2= 4 > and em1 in 192.168.2.0/29. > > =A0I have setup one jail using ezjail. My first surprise is that ezjail o= nly > 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?? ezjail doesn't necessarily install a release version. < ezjail-admin update -p -i > will install the basejail from your source. > =A0And the real question: How do I need to configure network under this j= ail > 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. gateway_enable=3D"YES" should take care of this. > > Thanks. > -- > CL Martinez > carlopmart {at} gmail {d0t} com > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > Regards --=20 George Kontostanos aisecure.net