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:09:38
TheCrucible
1 hour agoThe Extravaganza! EP: 60 with Special Guest: Vince Offer (10/27/25)
54.2K2 -
1:04:18
Candace Show Podcast
3 hours agoCharlie's Angels Or Demons? Disturbing Footage Emerges. | Candace Ep 252
58.7K129 -
13:53
Tundra Tactical
2 hours agoGlock Apocalypse - Tundy Meme Review
671 -
LIVE
Jamie Kennedy
15 hours agoThe Macabre Mind of Bill Moseley: Horror, Philosophy & the Spirit of Darkness| Ep 228 HTBITY
96 watching -
LIVE
Wayne Allyn Root | WAR Zone
6 hours agoWatch LIVE: The War Zone Podcast with Wayne Allyn Root
45 watching -
1:37:49
Redacted News
2 hours agoBREAKING! "LEAVE NOW OR BE ASSASSINATED" CIA BACKED COUP IN VENEZUELA HAS BEGUN | Redacted News
127K53 -
1:55:47
vivafrei
9 hours agoEp. 288: VIva & Barnes Sunday Night Show... ON A MONDAY! Trump, Gavin, Government Shutdown & MORE!
132K35 -
28:38
Standpoint with Gabe Groisman
2 hours agoPrime Minister Netanyahu: Inside Israel's War, Peace and the Path Forward.
16.5K11 -
LIVE
LFA TV
22 hours agoLIVE & BREAKING NEWS! | MONDAY 10/27/25
975 watching -
LIVE
freecastle
7 hours agoTAKE UP YOUR CROSS- The wicked accept bribes in secret to pervert the course of justice!
88 watching