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:
-
32:51
The Why Files
3 days agoCIA Time Travel Secret | The Grays Are Future Humans
16.7K38 -
30:13
Athlete & Artist Show
20 hours ago $4.35 earnedNew Single Game Shots Record!
16.9K1 -
13:29
Demons Row
12 hours ago $0.86 earnedThings I Wish I Knew Before Joining a 1% Outlaw Motorcycle Club
2.69K2 -
22:24
Jasmin Laine
17 hours agoTrump SLAMS Canada As âLand of PROPAGANDA and Economic COLLAPSE!â
6.43K37 -
3:52
Blackstone Griddles
15 hours agoLoaded Tater Tots on the Blackstone Griddle
3.65K5 -
LIVE
BEK TV
2 days agoTrent Loos in the Morning - 10/27/2025
119 watching -
8:55
Freedom Frontline
14 hours agoNancy Pelosi PANICS As CNNâs Dana Bash EXPOSES Her Fake Shutdown Lies LIVE
4.01K8 -
8:43
Red Pill MMA
19 hours ago5 Reasons Irelandâs New President Is a DISASTER for the Country
4.31K10 -
8:50
Dr Disrespect
3 days agoDOC REACTS to Battlefield 6 Season 1 Trailer
194K24 -
16:47
Nikko Ortiz
1 day agoThis Is Why Your Single...
14.9K11