Skip to content

Instantly share code, notes, and snippets.

@tom-a
Created November 26, 2015 15:23
Show Gist options
  • Save tom-a/9397e03c0fde593ddb7e to your computer and use it in GitHub Desktop.
Save tom-a/9397e03c0fde593ddb7e to your computer and use it in GitHub Desktop.
FreeBSDのjail設定
# common variables
$nic = "bge0";
exec.prestart += "ifconfig ${nic} inet ${ip4.addr} add";
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.poststop += "ifconfig ${nic} inet ${ip4.addr} -alias";
exec.clean;
mount.devfs;
#interface = bge0;
path = "/jail/$name";
host.hostname = $name;
# each jail
base {
ip4.addr = 192.168.2.4;
allow.chflags;
allow.raw_sockets;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment