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:14:08
Barry Cunningham
7 hours agoLIVE BREAKING NEWS: President Trump Addresses The Nation! And More News!
55K20 -
LIVE
ThatStarWarsGirl
9 hours agoTSWG LIVE: Discussing STAR WARS News with Special Guest Star Wars Theory!
1,043 watching -
2:42:40
Laura Loomer
7 hours agoEP162: LIVE: President Trump Addresses The Nation
56.2K27 -
1:32:05
Adam Does Movies
12 hours ago $7.03 earnedRob Reiner Films + Movie News + AMA - Live!
32.1K1 -
47:57
Professor Nez
10 hours agođ¨LIVE NOW: President Trump Addresses the Nation from the Oval Office
36.4K37 -
28:17
The White House
7 hours agoPresident Trump Delivers an Address to the Nation
89.1K136 -
4:44:53
Drew Hernandez
1 day agoTRUMP ADDRESSES THE NATION & BONGINO ANNOUNCES FBI DEPARTURE?
66K23 -
2:37:30
Badlands Media
18 hours agoBadlands Media Special Coverage - MY FELLOW AMERICANS the Alpha Warrior Show & Redpill Project
71K34 -
22:54
Jasmin Laine
13 hours agoMedia MELTS DOWN as Poilievre SurgesâOttawa Loses Control of the Narrative
33.6K17 -
59:50
BonginoReport
10 hours agoDan Bongino Is Leaving The FBI - Nightly Scroll w/ Hayley Caronia (Ep.199)
292K260