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:04:50
TheCrucible
1 hour agoThe Extravaganza! EP: 63 with Guest Co-Host: Rob Noerr (10/30/25)
40.8K1 -
LIVE
The White House
4 hours agoPresident Trump and the First Lady Participate in Halloween at The White House
847 watching -
1:05:02
Candace Show Podcast
2 hours agoBREAKING NEWS! The Egyptian Military Was In Provo On 9/10. | Candace Ep 255
32.8K32 -
2:12:54
Redacted News
2 hours agoBREAKING! KASH PATEL'S FBI SHUTS DOWN CHARLIE KIRK ASSASSINATION FOREIGN INTEL PROBE BY JOE KENT
107K65 -
LIVE
Dr Disrespect
7 hours agođ´LIVE - DR DISRESPECT - ARC RAIDERS - SOLO RAIDING THE GALAXY
1,261 watching -
1:12:37
vivafrei
4 hours agoTexas A.G, Sues J&J over Autism Claims! VIva Goes Honeybadger on Liberals! Hasan Piker & MORE!
103K36 -
3:19:22
Barry Cunningham
4 hours agoPresident Trump Talks China | Mike Johnson Shutdown Day 30 | Reacting To JD Vance Questions At TPUSA
24.4K12 -
LIVE
LFA TV
21 hours agoLIVE & BREAKING NEWS! | THURSDAY 10/30/25
897 watching -
14:54
The Kevin Trudeau Show Limitless
1 day agoThe Hidden Force Running Your Life
35.6K7 -
LIVE
freecastle
6 hours agoTAKE UP YOUR CROSS- Do not be deceived: 'Bad company ruins good morals.
80 watching