Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Dec 2009 10:25:18 -0500
From:      Glen Barber <glen.j.barber@gmail.com>
To:        Peter Fraser <petros.fraser@gmail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Jails in FreeBSD 8
Message-ID:  <4ad871310912140725y77537e6dj386bc05602db5a25@mail.gmail.com>
In-Reply-To: <aa2cc130912140654s562354a7s12b816bef4ef1044@mail.gmail.com>
References:  <aa2cc130912140654s562354a7s12b816bef4ef1044@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi

On Mon, Dec 14, 2009 at 9:54 AM, Peter Fraser <petros.fraser@gmail.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ad871310912140725y77537e6dj386bc05602db5a25>