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:
-
LIVE
iCkEdMeL
1 hour agoMajor Police Response! SWAT — Barricade Situation Turns Intense!
99 watching -
Professor Nez
21 minutes ago🚨THE MAN IS MYTHICAL! Trump BREAKS the Internet AGAIN! (MUST SEE)
-
1:02:03
VINCE
2 hours agoAnother Day, Another Historic Deal | Episode 155 - 10/27/25
155K53 -
LIVE
Badlands Media
8 hours agoBadlands Daily: October 27, 2025
2,893 watching -
LIVE
Benny Johnson
1 hour agoBOMBSHELL: New January 6th Pipe Bomb Footage EXPOSES Lies of Woman Who 'Discovered' Bomb | 'FED?!'
5,381 watching -
LIVE
Caleb Hammer
1 hour agoThese Illegal Immigrants Are F*cked | Financial Audit
156 watching -
LIVE
The Big Mig™
2 hours agoTrump, 2020 Was Rigged & Stolen, We Have It All!
5,166 watching -
1:03:17
MTNTOUGH Podcast w/ Dustin Diefenderfer
1 hour agoMike Hernandez: Near Death Crash and Self-Reliance Secrets | MTNPOD #139
3.05K1 -
1:40:14
Graham Allen
3 hours agoDid NEWSOM Just Admit He’s Running?? Did Trump Just Endorse Vance 2028?! + Zohran Is Going To DESTROY NYC!!
104K28 -
Matt Kohrs
14 hours agoUS China Trade Deal, Records Highs & The Week Ahead || Live Day Trading
30.8K2