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
Candace Show Podcast
1 hour agoBREAKING NEWS! The Egyptian Military Was In Provo On 9/10. | Candace Ep 255
6,586 watching -
LIVE
Redacted News
2 hours agoBREAKING! KASH PATEL'S FBI SHUTS DOWN CHARLIE KIRK ASSASSINATION FOREIGN INTEL PROBE BY JOE KENT
6,456 watching -
LIVE
Dr Disrespect
6 hours ago🔴LIVE - DR DISRESPECT - ARC RAIDERS - SOLO RAIDING THE GALAXY
1,419 watching -
1:12:37
vivafrei
3 hours agoTexas A.G, Sues J&J over Autism Claims! VIva Goes Honeybadger on Liberals! Hasan Piker & MORE!
89.3K31 -
3:19:22
Barry Cunningham
3 hours agoPresident Trump Talks China | Mike Johnson Shutdown Day 30 | Reacting To JD Vance Questions At TPUSA
24.4K6 -
LIVE
LFA TV
20 hours agoLIVE & BREAKING NEWS! | THURSDAY 10/30/25
1,178 watching -
14:54
The Kevin Trudeau Show Limitless
1 day agoThe Hidden Force Running Your Life
35.6K6 -
LIVE
freecastle
6 hours agoTAKE UP YOUR CROSS- Do not be deceived: 'Bad company ruins good morals.
95 watching -
1:54:04
The HotSeat
2 hours agoWatching Them Implode.....Fun To Watch!!!
14.3K4 -
LIVE
Owen Shroyer
2 hours agoOwen Report - 10-30-2025 - Trump Threatens To Bring Back Nuclear Bomb Testing
1,180 watching