From owner-freebsd-stable@FreeBSD.ORG Mon Dec 14 15:25:20 2009 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 85AD1106566B for ; Mon, 14 Dec 2009 15:25:20 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-fx0-f228.google.com (mail-fx0-f228.google.com [209.85.220.228]) by mx1.freebsd.org (Postfix) with ESMTP id 1C3C78FC17 for ; Mon, 14 Dec 2009 15:25:19 +0000 (UTC) Received: by fxm28 with SMTP id 28so1457538fxm.13 for ; Mon, 14 Dec 2009 07:25:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=mAdRStBuZjpDWu0UNNjeEsU7zapKQtzYWUbB2MWiagU=; b=r9Ivytn048S0sSYIzf39/91UCH5Sg/9jC5OeXqaSnths1R0TyaASAV/zhGith5z5G9 KU2H5IFlKEr9ydAMnB8fL9znUNE5lNL5M/2mnUDzmTGpsltbZDoNUFv2iz1sgL7avz/U NoCkz/wqUlQ3r3MshwCi1INfHKsBGEvkpxUus= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=K1croOJe941WbligEIyZiae8bYf7z2VyYSVDd1Hs2ql3eaiMalvgIdo1W9M1VJEtNc Swc+zukp/cYhx/NL/CX0WeLWb4AiNpY/gCkFkwgytc+r8QE3kmELWpKhaUeZfEEqfjr0 KhChPW9t9MLju2rNhamhcaoSr6FUSjlDtbjTo= MIME-Version: 1.0 Received: by 10.223.82.16 with SMTP id z16mr5767039fak.60.1260804318780; Mon, 14 Dec 2009 07:25:18 -0800 (PST) In-Reply-To: References: Date: Mon, 14 Dec 2009 10:25:18 -0500 Message-ID: <4ad871310912140725y77537e6dj386bc05602db5a25@mail.gmail.com> From: Glen Barber To: Peter Fraser Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-stable@freebsd.org Subject: Re: Jails in FreeBSD 8 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: Mon, 14 Dec 2009 15:25:20 -0000 Hi On Mon, Dec 14, 2009 at 9:54 AM, Peter Fraser wrote: > Hi All > > I installed FBSD 8 and got some jails up using the instructions in the > handbook. My question is this. Do you still have to use the alias IP > address on the host that you want the jail to have? > > Example: I want my jail to have ip address 192.168.2.5 > > I put these entries in rc.conf on the host > > #Jail Config > jail_enable="YES" > jail_set_hostname_allow="NO" > jail_list="www" > jail_www_hostname="www.mydomain.com" > jail_www_ip="192.168.2.5" > jail_www_rootdir="/usr/home/jails/www" > jail_www_devfs_enable="YES" > > > Do I also need this entry below? > ifconfig_vr0_alias0="inet 192.168.2.5 netmask 255.255.255.0" > No. Alternatively, you can add the following line to rc.conf: jail_www_interface="vr0" That will bind the jail (with the specified IP) to that interface. /etc/defaults/rc.conf has a good listing of all jail(8) options. Regards, -- Glen Barber