Iocage

Iocage

Create a new jail:
  1. iocage create -t base -n
  2. iocage set host_hostname=.hs.esxi.t20.home
  3. iocage set boot=on
  4. iocage set ip4_addr="vnet0|10.0.0.xxx/24”
  5. iocage fstab -a /usr/ports
  6. Edit /iocage/jails/dns/root/var/unbound/lan-zones.conf
  7. iocage restart -s dns
  • Check rc.conf (hostname MUST not be set, host_hostname in first line is OK)
  • Edit ipfw.rules to fit (check ext_if correctness)
  1. iocage console
  2. vim /etc/rc.conf
    • Edit host_hostname="
  3. cd /etc/mail/ && make all install restart clean
  4. vim /usr/local/etc/ipfw.rules
    • ext_if="
  5. sh /usr/local/etc/ipfw.rules