
FreeBSD14.2 ; Jail Install
JailIt is a mechanism that allows multiple virtual FreeBSD environments to be created on a FreeBSD environment.A jail is an extension of chroot, and a jail environment (called a prisoners) built on a host ring (called a jailer) behaves as a FreeBSD machine running separately from the host environment.The prisoner cannot directly attach to the jailer or another parallel prisoner.Features of JAIL・High speed operation because it is not emulation.・Each prisoner can be assigned an IP address different from that of the jailer.・Since the same file system is used for a jailer and a prisoner, it is necessary to be careful about the assignment of UID/GID.This time, build two prisoners (prisoner1 and prisoner2) in jailer (FreeBSD14.2)Building Jail1.Creation of PRISONER base directoryCreate a directory (jail) that will be the root directory for prisoner1 and prisoner2. In this case, we will create them in /home, but you can create them anywhere you like.