Jails in FreeBSD 8

Glen Barber glen.j.barber at gmail.com
Mon Dec 14 15:25:20 UTC 2009


Hi

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


More information about the freebsd-stable mailing list