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
Inverted World Live
2 hours agoDeath Cult Terror Cells, NASA Bans Chinese Nationals | Ep. 108
4,050 watching -
2:43:57
TimcastIRL
3 hours agoVP Says No Unity With Democrats Celebrating Charlie Kirk Assassination, Left Confirmed | Timcast IRL
202K102 -
13:45
The Charlie Kirk Show
2 hours agoTPUSA AT ASU CANDLELIGHT VIGIL
179K36 -
55:10
Katie Miller Pod
2 hours ago $4.91 earnedEpisode 6 - Attorney General Pam Bondi | The Katie Miller Podcast
30K13 -
LIVE
Man in America
7 hours agoLIVE: Assassin Story DOESN'T ADD UP! What Are They HIDING From Us?? | LET'S TALK
2,339 watching -
2:24:17
Barry Cunningham
3 hours agoFOR PRESIDENT TRUMP WILL TAKE NO PRISONERS AND THE LIBS SHOULD EXPECT NO MERCY!
46.1K38 -
1:08:41
Savanah Hernandez
4 hours agoCharlie Kirk Was Our Bridge And The Left Burned It
10.2K26 -
LIVE
Flyover Conservatives
6 hours agoFinancial Web Behind Charlie Kirk's Murder with Mel K | Silver On It's Way to $50 | FOC Show
1,396 watching -
LIVE
We Like Shooting
15 hours ago $0.35 earnedWe Like Shooting 628 (Gun Podcast)
139 watching -
1:09:26
Glenn Greenwald
6 hours agoTrump's Shifting Immigration and H-1B Policies: With Journalist Lee Fang and Political Science Professor Ron Hira | SYSTEM UPDATE #515
151K26