Created
February 6, 2019 18:52
-
-
Save lattera/3be7ebac291d959de2a8c03a57672ecc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[localrules=10] | |
[devfs_rules_sdr_jail=20] | |
add include $devfsrules_jail | |
add path ugen* unhide | |
add path usb/* unhide | |
add path dsp* unhide | |
[devfs_rules_bhyve_jail=25] | |
add include $devfsrules_jail | |
add path vmm unhide | |
add path vmm/* unhide | |
add path tap* unhide | |
add path zvol/enctank/bhyve/* unhide | |
add path nmdm* unhide |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#exec.start = "/bin/sh /etc/rc"; | |
exec.stop = "/bin/sh /etc/rc.shutdown"; | |
exec.clean; | |
mount.devfs; | |
exec.prestart += "/sbin/ifconfig $epair create; ifconfig bridge1 addm ${epair}a"; | |
exec.poststart += "/sbin/ifconfig ${epair}b vnet $name; /sbin/ifconfig ${epair}a up"; | |
exec.poststart += "/usr/sbin/jexec $name /bin/sh /etc/rc"; | |
exec.poststop += "/sbin/ifconfig ${epair}a destroy"; | |
path = "/jails/$name"; | |
host.hostname = "$name"; | |
mutt-hbsd { | |
path = "/jails/mail/$name"; | |
$epair = "epair0"; | |
persist; | |
vnet; | |
} | |
mutt-gmail { | |
path = "/jails/mail/$name"; | |
$epair = "epair1"; | |
persist; | |
vnet; | |
} | |
mutt-g2 { | |
path = "/jails/mail/$name"; | |
$epair = "epair2"; | |
persist; | |
vnet; | |
} | |
mutt-opnsense { | |
path = "/jails/mail/$name"; | |
$epair = "epair3"; | |
persist; | |
vnet; | |
} | |
mutt-tormail { | |
path = "/jails/mail/$name"; | |
$epair = "epair4"; | |
persist; | |
vnet; | |
} | |
sdr-01 { | |
$epair = "epair5"; | |
devfs_ruleset = 20; | |
persist; | |
vnet; | |
sysvmsg="new"; | |
sysvsem="new"; | |
sysvshm="new"; | |
} | |
bhyve-01 { | |
$epair = "epair6"; | |
devfs_ruleset = 25; | |
allow.vmm; | |
persist; | |
vnet; | |
} | |
services-01 { | |
$epair = "epair7"; | |
persist; | |
vnet; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment