Multiple IP Jail

FreeBSD does support Multi-IPv4/v6/no-IP jail and it was merged to STABLE release. You need to rebuild your kernel including jls(8) and to use the new features jail(8), jexec(8) and cpuset(1) with a new kernel. Another option is get FreeBSD 7.2 (RC1 or above) using cvsup, just do make buildworld. Here is what you need to put in /etc/rc.conf file for Multi-IPv4/v6/no-IP jail configuration for httpd jail (note there are 3 ips defined):

Standard way

cat /etc/rc.conf
jail_httpd_rootdir="/iscsi/httpd"     # jail's root directory
jail_httpd_hostname=""  # jail's hostname
jail_httpd_ip=",,2607:f0d0:1002:11::4" # jail's multi IPs address
jail_smtpd_devfs_enable="YES"          # mount devfs in the jail
jail_smtpd_devfs_ruleset="devfsrules_jail" # devfs ruleset to apply to jail

FreeNAS Way (deprecated)

Edit /etc/rc.conf inside the jail:

ifconfig_epair0b_ipv6="inet6 2001:db8:1::1 prefixlen 64" 
network/multi_ip_jail.txt · Last modified: 2015/05/20 09:32 by rybario
About this template
CC Attribution-Share Alike 4.0 International
Powered by PHP Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 Valid HTML5