# --- JAIL_TOOLS RESOURCE CONFIGURATION FILE # # /usr/local/etc/jail.conf, see also http://the-labs.com/FreeBSD/JailTools/ # # define the ethernet interface, e.g. jail_if=rl0 # check with ifconfig which interface to use jail_if=PLEASE_EDIT_ME # # define jail_root, where all jails will be created, default is # /usr/jails/* or /opt/jails/* # # NOTE: in case you plan to jail_install -light # where the /usr will be mounted from the jail-host read-only # via nullfs, then you need to set it outside of /usr, e.g. /opt # or so. jail_root=/usr/jails # # define what to do with jail_login= when 'jail_start' is called: # # /etc/rc.jail starts /etc/rc and calls then getty in a loop # which looks like a booted a machine to login into # # /etc/rc only runs /etc/rc and then quits (jail itself quits, # but inetd within the jail may still run, and you are # able to login into the jailed environment if it's # enabled in /etc/inetd.conf of the jail) # # if you leave jail_login empty, then no script is # called, except the jail_shell is started (/bin/sh) jail_login= # # define the jail-shell, as default it's /bin/sh, but you can also use # /bin/bash, or /bin/tcsh, e.g. jail_shell=/bin/tcsh jail_shell=/bin/sh # # define how light-installs takes the /usr (read-only) from, by default # from the host (using nullfs), optionally you can define any FreeBSD # nfs server. The variable jail_ro_usr will be used internally like # mount -o ro $jail_ro_usr $jail_root/$ip/usr # # ATTENTION: be aware a possible nfs /usr must have the same release-version # as the jail-host otherwise you quickly run into troubles as # the jail-kernel comes from the jail-host, but the userland # comes from the nfs server. again, this option is only relevant # for light-installs. # # jail_ro_usr=server:/usr # jail_ro_usr=-t null /usr jail_ro_usr= # Example of named jails: # jailconfig_profx="ip 192.168.0.100 login /etc/rc.jail" # jailconfig_storm="ip 192.168.0.101 shell /bin/tcsh" # jailconfig_magneto="ip 192.168.0.102 if rl0" # jailconfig_magma="ip 192.168.0.104 x11 1024x768 depth 24" # etc.