Switch to using a script to dynamically spin up the netgraph bridge for jails.
This commit is contained in:
14
ansible/roles/jail/files/jails/sample.conf
Normal file
14
ansible/roles/jail/files/jails/sample.conf
Normal file
@@ -0,0 +1,14 @@
|
||||
sample {
|
||||
path = "/jail/main/jails/${name}";
|
||||
vnet;
|
||||
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start jail_nat jail${name} 10.215.1.1/24";
|
||||
exec.poststop += "/usr/local/bin/jail_netgraph_bridge stop jail_nat jail${name}";
|
||||
vnet.interface += "jail${name}";
|
||||
|
||||
devfs_ruleset = 14;
|
||||
mount.devfs;
|
||||
|
||||
exec.start += "/bin/sh /etc/rc";
|
||||
exec.stop = "/bin/sh /etc/rc.shutdown jail";
|
||||
exec.consolelog = "/var/log/jail_${name}_console.log";
|
||||
}
|
||||
Reference in New Issue
Block a user