FreeBSD 13.x – Mastering JAILS

Using FreeBSD Jails for running software packages in a secure way using pragmatic approach.


What you’ll learn

  • How to install FreeBSD – minimal installation for Jails.
  • Setting-up Jails environment using BastilleBSD.
  • FreeBSD 13.x Lab setup using VirtualBox.
  • Use BastilleBSD for managing Jails in many ways.
  • Use Jails networking options for running Jails in private and public networks.
  • Use Jails on Raspberry PI, and if it is even a vital option.
  • Manage Jails and pf (packet filter firewall).
  • Backup and restore Jailed environments.

Course Content

  • Introduction –> 1 lecture • 2min.
  • Jails essentials –> 3 lectures • 9min.
  • Creating FreeBSD LAB environment –> 5 lectures • 32min.
  • BastilleBSD in many different ways –> 13 lectures • 1hr 39min.
  • Jails networking options –> 4 lectures • 29min.
  • Running FreeBSD Jails on Raspberry PI –> 3 lectures • 16min.

FreeBSD 13.x - Mastering JAILS



welcome to the ‘FreeBSD 13.x – Mastering JAILS’ course. The purpose of this course is give a deep overview what Jails are, how to use them for building a testing or production ready environments. All this using a great BastilleBSD project.


What are FreeBSD Jails from wikipedia:

“The jail mechanism is an implementation of FreeBSD’s OS-level virtualisation that allows system administrators to partition a FreeBSD-derived computer system into several independent mini-systems called jails, all sharing the same kernel, with very little overhead. It is implemented through a system call, jail, as well as a userland utility, jail, plus, depending on the system, a number of other utilities. The functionality was committed into FreeBSD in 1999 by Poul-Henning Kamp after some period of production use by a hosting provider, and was first released with FreeBSD 4.0, thus being supported on a number of FreeBSD descendants, including DragonFly BSD, to this day.


The need for the FreeBSD jails came from a small shared-environment hosting provider’s (R&D Associates, Inc.’s owner, Derrick T. Woolworth) desire to establish a clean, clear-cut separation between their own services and those of their customers, mainly for security and ease of administration (jail(8)). Instead of adding a new layer of fine-grained configuration options, the solution adopted by Poul-Henning Kamp was to compartmentalize the system – both its files and its resources – in such a way that only the right people are given access to the right compartments.”


Topics covered in this course:
‘Mastering Jails’ course covers most of Jails setup options available and required for running Jails in real live scenarios. Main topics include:

  • Jails Essentials
  • Creating FreeBSD Lab environment
  • Using BastilleBSD for managing Jails in many different ways
  • Setting Jails networking in right way
  • BONUS: Running FreeBSD Jail on Raspberry PI

During the course we build a lab environment with fresh FreeBSD installation and we setup Jails from ground to production ready environment. We will practice working with Jails, backing them up or do networking the right way. All this using a great BastilleBSD project.



FreeBSD 13.x Mastering Jails course covers various topics related to using Jails to manage running different software packages in secure way. Using Jails you can avoid security issues / holes of sw packages you host on your system.

Get Tutorial