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:
-
2:03:07
vivafrei
4 hours agoEp. 283: Charlie Kirk Memorial and other Stuff in the Law World
183K99 -
9:13:12
The Charlie Kirk Show
14 hours agoLIVE NOW: Building A Legacy, Remembering Charlie Kirk
2.1M877 -
1:55:20
The White House
7 hours agoPresident Trump Participates in the Memorial Service for Charlie Kirk
76K84 -
1:02:41
Sarah Westall
6 hours agoDomestic Terror Operation: Death Threats, Smear Campaigns, Gang Stalking w/ Journalist Sarah Fields
20.8K4 -
1:51:40
Nerdrotic
6 hours ago $0.45 earnedGobekli Tepe Discovery and "Reconstruction" | Forbidden Frontier #118
58.2K6 -
29:07
Tactical Advisor
6 hours agoATF Changes Ruling on SBR & Tacpack unboxing | Vault Room Live Stream 039
56.7K14 -
2:00
From Zero → Viral with AI
12 hours ago $0.73 earnedAre You Being Left Behind? Why AI Marketing is No Longer Optional
26.9K3 -
9:10
BlackDiamondGunsandGear
9 hours agoI Finally Got it! / Now i need to BUILD IT!
19.5K3 -
9:44
Millionaire Mentor
3 days agoCharlie Kirk Brings Woke Student To STUTTERING Over White Privilege Lies
24.1K7 -
24:12
MudandMunitions
10 hours agoOff-Roading with NYPrepper Wild Elk & PA’s Most Remote Backroads
13.9K1