Add a jail that will serve dhcp for clients connecting to the open nat bridge.

This commit is contained in:
Tom Alexander
2022-12-02 20:11:50 -05:00
parent 29e66c4e04
commit d4e9caad67
3 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
nat_dhcp {
path = "/jail/main/jails/nat_dhcp";
vnet;
vnet.interface += "host_link3";
devfs_ruleset = 14;
mount.devfs; # To expose tun device
exec.start += "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown jail";
exec.consolelog = "/var/log/jail_${name}_console.log";
}