jail.conf

  1. allow.raw_sockets = 1;
  2. exec.clean;
  3. exec.system_user = "root";
  4. exec.jail_user = "root";
  5. exec.start += "/bin/sh /etc/rc";
  6. exec.stop = "/bin/sh /etc/rc.shutdown";
  7. exec.consolelog = "/var/log/jail_${name}_console.log";
  8. mount.devfs;
  9. mount.fstab = "/usr/jails/fstab.${name}";
  10. allow.mount = 0;
  11. allow.set_hostname = 0;
  12. allow.sysvipc = 1;
  13. path = "/usr/jails/${name}";
  14. interface = lo0;
  15.  
  16. sample {
  17.         host.hostname = "sample.freebsd.local";
  18.         ip4.addr = "192.168.20.1";
  19. }