commit 5985dcfd6bd69e96ff2aab607f45255074792f6b parent 0e6e97767eccd3752e96959e9d77b3ec2a09ff6e Author: Christos Margiolis <christos@margiolis.net> Date: Tue, 12 Apr 2022 18:20:57 +0300 improved freebsd configs Diffstat:
A | freebsd/jail.conf | | | 15 | +++++++++++++++ |
M | freebsd/rc.conf.desktop | | | 18 | ++++++++++++------ |
M | freebsd/rc.conf.laptop | | | 2 | +- |
3 files changed, 28 insertions(+), 7 deletions(-)
diff --git a/freebsd/jail.conf b/freebsd/jail.conf @@ -0,0 +1,15 @@ +path = "/var/jail/$name"; +host.hostname="$name"; + +exec.clean; +exec.start = "/bin/sh /etc/rc"; +exec.stop = "/bin/sh /etc/rc.shutdown"; +mount.devfs; +allow.mount; +allow.raw_sockets = 1; +devfs_ruleset="5"; + +sec { + vnet; + vnet.interface = "epair0b"; +} diff --git a/freebsd/rc.conf.desktop b/freebsd/rc.conf.desktop @@ -4,13 +4,19 @@ ifconfig_re0="DHCP" sshd_enable="YES" dumpdev="AUTO" zfs_enable="YES" -kld_list="linux nvidia nvidia modeset fuse sound snd_hda snd_ich snd_uadio" +kld_list="linux nvidia nvidia modeset fusefs sound snd_hda snd_ich snd_uadio" sndiod_enable="YES" -jail_enable="NO" +jail_enable="YES" -# bhyve shit if_bridge_load="YES" if_tap_load="YES" -cloned_interfaces="bridge0 tap0" -ifconfig_bridge0="DHCP addm re0 addm tap0" -ifconfig_bridge0_alias0="inet 10.0.0.1/24" +if_epair_load="YES" + +cloned_interfaces="bridge0 epair0 tap0" + +# jails +ifconfig_bridge0="addm re0 addm epair0a up" +ifconfig_epair0a="up" + +# bhyve +ifconfig_bridge0="addm tap0" diff --git a/freebsd/rc.conf.laptop b/freebsd/rc.conf.laptop @@ -1,4 +1,4 @@ -hostname="tpad" +hostname="knob" wlans_iwm0="wlan0" synchronous_dhclient="YES" ifconfig_wlan0="WPA DHCP"