machine_setup/ansible/roles/jail/files/jails/cloak.conf

16 lines
537 B
Plaintext
Raw Normal View History

2022-10-29 02:24:32 +00:00
cloak {
path = "/jail/main/jails/${name}";
2022-10-29 19:55:34 +00:00
vnet;
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start restricted_nat jail${name} 10.215.2.1/24";
exec.poststop += "/usr/local/bin/jail_netgraph_bridge stop restricted_nat jail${name}";
vnet.interface += "jail${name}";
vnet.interface += "cloak";
devfs_ruleset = 13;
mount.devfs; # To expose tun device
2022-10-29 02:24:32 +00:00
exec.start += "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown jail";
exec.consolelog = "/var/log/jail_${name}_console.log";
}