BSD Ports

sysutils/qjail54 5.4_1 DragonFly

Utility to quickly deploy and manage jails

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BERNE-CONVENTION
Categories
sysutils
Package size
73.5 KiB, 302.2 KiB installed

Description

This qjail version only supports RELEASE-11.0 and newer.

Qjail [ q = quick ] is a 4th generation wrapper for the basic chroot jail system that includes security and performance enhancements. Plus a new level of "user friendliness" enhancements dealing with deploying just a few jails or large scale jail environments consisting of 100's of jails.

Qjail uses the jail(8) jail.conf method. This provides the ability to enable the following options on a per-jail basis. exec.fib, securelevel, allow.sysvipc, devfs_rulesets, allow.raw_sockets, allow.quotas, allow.mount.nullfs, allow.mount.tmpfs, allow.mount.zfs, vnet.interface, and vnet. The vnet option gives a jail its own network stack using the experimental vimage kernel module. The vnet option has only been tested on i386 and amd64 equipment.

Qjail requires no knowledge of the jail command usage. It uses "nullfs" for read-only system executables, sharing one copy of them with all the jails.

Uses "mdconfig" to create sparse image jails. Sparse image jails provide a method to limit the total disk space a jail can consume, while only occupying the physical disk space of the sum size of the files in the image jail.

Ability to assign ip address with their network device name, so aliases are auto created on jail start and auto removed on jail stop.

Ability to create "ZONE"s of identical qjail systems, each with their own group of jails.

Ability to designate a portion of the jail name as a group prefix so the command being executed will apply to only those jail names matching that prefix.

Qjail has been incorporated into the Finch open source project, see http://dreamcat4.github.io/finch/ for details.

In the other systems

SystemPortVersion
DragonFlysysutils/qjail545.4_1
FreeBSDsysutils/qjail545.4_1
HardenedBSDsysutils/qjail545.4_1
GhostBSDsysutils/qjail545.4_1

Install

Binary package:

pkg install qjail54

From DPorts:

cd /usr/dports/sysutils/qjail54 && make install clean

Dependencies

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

Use the qjail utility to deploy small or large numbers of jails quickly.

First issue "rehash" command to enable the qjail command (if using csh).
Then issue
"man qjail-intro" To read the qjail introduction.
"man qjail"       For qjail usage details.
"man qjail-howto" For example of driving public traffic to non-vnet jails.
"man qjail-vnet-howto"   For example of creating vnet jails.
"man qjail-ipv6-testing" For example of testing jails with ipv6 addresses.