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:
-
7:00:42
NellieBean
9 hours ago🔴 LIVE - trying some COD maybe Pals later
32.8K -
1:47:46
SpartakusLIVE
7 hours agoThe Master RIZZLER has entered the building, the 95% REJOICE
19.4K -
29:53
MYLUNCHBREAK CHANNEL PAGE
1 day agoOff Limits to the Public - Pt 1
76.4K107 -
16:03
Tundra Tactical
9 hours ago $11.78 earnedNew Age Gun Fudds
99.8K15 -
8:22
Russell Brand
14 hours agoThey want this to happen
184K387 -
2:06:43
Jewels Jones Live ®
1 day ago2025 STARTS WITH A BANG! | A Political Rendezvous - Ep. 104
101K38 -
4:20:41
Viss
14 hours ago🔴LIVE - PUBG Duo Dominance Viss w/ Spartakus
80.3K9 -
10:15:14
MDGgamin
17 hours ago🔴LIVE-Escape From Tarkov - 1st Saturday of 2025!!!! - #RumbleTakeover
65.3K2 -
3:54:19
SpartakusLIVE
13 hours agoPUBG Duos w/ Viss || Tactical Strategy & HARDCORE Gameplay
76.6K1 -
5:54:54
FRENCHY4185
13 hours agoFRENCHY'S BIRTHDAY BASH !!! THE BIG 40 !!!
85.5K3