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
LFA TV
11 hours agoLIVE & BREAKING NEWS! | THURSDAY 12/18/25
3,061 watching -
DVR
OFFICIAL Jovan Hutton Pulitzer Rumble
2 hours agoWhat Was Your Trump Takeaway? YOU JOIN ME LIVE!
12.2K3 -
LIVE
The Chris Salcedo Show
12 hours ago $7.51 earnedDemocrat Proves We Are Ruled By The Inept & Uninformed
516 watching -
8:34
Blackstone Griddles
14 hours agoAnnual Holiday Gift Guide | Blackstone Griddles
38.5K -
48:10
State of the Second Podcast
21 hours agoThe Quietest Suppressor Ever? PTRâs PIP Tech Explained (ft. PTR)
19.8K -
23:10
Demons Row
14 hours ago $7.46 earnedBiker Secrets They Never Say Out Loud (Real MC Rules Exposed)
23.3K4 -
2:06:19
BEK TV
1 day agoTrent Loos in the Morning - 12/18/2025
18.6K -
15:25
unclemattscookerylessons
1 day ago $3.08 earnedâCrispy Cheesy Potato Croquettes | Gooey Mozzarella Inside!â
22.4K6 -
6:39
DropItLikeItsScott
21 hours ago $3.53 earnedDid BURRIS Just Create the Coolest 3-12x42 Scope?
18.5K -
10:55
Paul Joseph Watson
1 day agoWhat Really Happened at Bondi Beach?
83.5K120