jails version 0.1 by Clement Laforet Init script for jails on FreeBSD 5.x (rc ng only) HOWTO 1. Installation Pretty easy... Check if rc_ng is set to 'YES' su -l root cd /etc/rc.d fetch http://www.cultdeadsheep.org/sheepkiller/FreeBSD/jails chmod 755 jails isn't it ? :) 2. Configuration directives - Jails configurations directives [ALL REQUIRED] * enable_jails Values: "YES" | "NO" If sets to "YES", starting jails init script. * jail_names Values: "nick1 nick2" jail_names must be set to nickname of your future jails. It's used only for configuration purpose. * jail_${jail_names}_hostname Values : FDQN Set hostname for the jail (may be overriden in rc.conf in the jail if jail_allow_set_hostname is set to 'YES'). ex: jail_nick1_hostname="proxy-web.cultdeadsheep.org" * jail_${jail_names}_ip Value: IP address Set IP address for the jail (Not test with IPv6). ex: jail_nick1_ip="192.168.0.100" * jail_${jail_names}_rootdir Value: directory Set root directory for the jail. ex: jail_nick1_rootdir="/JAILS/192.168.0.100/" - MIB manipulation [OPTIONNAL] * jail_allow_set_hostname Values: "YES" | "NO" If set to "YES", hostname can be changed within jail. 3. Full example configuration #rc.conf rc_ng="YES" # Host configuration hostname=" darth-vader.cultdeadsheep.org" ifconfig_rl0="inet 192.168.0.5 netmask 255.255.255.0" ifconfig_rl0_alias="inet 192.168.0.200 netmask 255.255.255.255" ifconfig_rl1_alias="inet 192.168.0.201 netmask 255.255.255.255" ifconfig_de0="inet 192.168.0.100 netmask 255.255.255.255" #Jails configuration enable_jails="YES" jail_allow_set_hostname="NO" jail_names="dns http shell" jail_dns_hostname="ns.cultdeadsheep.org" jail_dns_ip="192.168.0.200" jail_dns_rootdir="/JAIL/192.168.0.200" jail_http_hostname="www.cultdeadsheep.org" jail_http_ip="192.168.0.201" jail_http_rootdir="/JAIL/192.168.0.201" jail_shell_hostname="accounts.cultdeadsheep.org" jail_shell_ip="192.168.0.100" jail_shell_rootdir="/this/is/a/very/dirty/path/to/192.168.0.100"