Premium Only Content

How I Run FreeBSD Jails
Here is a quick rundown of how I run FreeBSD jails.
Something I should have mentioned was the pf rules for forwarding traffic from the jail out to the internet. This would go in the /etc/pf.conf file:
NET_JAIL="192.168.100.0/24"
...
nat on $ext_if from $NET_JAIL to any -> ($ext_if:0)
# This assumes $ext_if is setup in the pf.conf file as well.
Here are the commands to get setup:
# setup lo1 on startup
sysrc cloned_interfaces+="lo1"
# setup zfs datasets
zfs create -o mountpoint=/usr/jails zroot/jails
zfs create zroot/jails/basejail
# install a base system
bsdinstall jail /usr/jails/basejail
# snapshot and clone
zfs snapshot zroot/jails/basejail@start
zfs clone zroot/jails/basejail@start zroot/jails/newjail
Jail configuration example:
newjail {
host.hostname = "newjail";
mount.devfs;
exec.clean;
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown jail";
path = "/usr/jails/newjail";
ip4.addr = "lo1|192.168.100.100/24";
}
For custom hosting and development:
-
1:39
Gun Drummer
20 hours agoSlipknot - TANK COVER
351 -
2:10:11
Badlands Media
1 day agoDevolution Power Hour Ep. 340
145K81 -
47:21
Stephen Gardner
12 hours ago🔥The DEEP STATE is still covering up this HUGE LIE!! Trump MUST release MORE!!
39.9K104 -
2:36:13
TimcastIRL
11 hours agoTrump Announces 25% Tariff On ALL CARS, Canada Begins MASS LAYOFFS Over Tariffs | Timcast IRL
312K203 -
4:03:55
Alex Zedra
10 hours agoLIVE! New Game | Lost Lullabies
41.9K2 -
2:44:05
TheSaltyCracker
11 hours agoDeep State Set Up Trump ReeEEStream Stream 03-26-25
173K337 -
31:34
Friday Beers
16 hours ago $4.23 earnedWe Drank 12 Beers and Solved the Case of 9 Dead Hikers
54K12 -
18:11
Nick Shirley
12 hours ago $10.26 earnedAsking The Irish If They Will Vote for Conor McGregor 🇮🇪
77.5K65 -
7:10:15
Illyes Jr Gaming
12 hours agoIt's Wednesday! Let's Hit 300 Followers TONIGHT!
59.5K7 -
2:40:58
Joker Effect
10 hours agoIs our government safe?***Streamer News***DRAMA***RUMBLE GETTING LEVERAGE***GAMING
85.9K10