HomeFreeBSD

ipfilter: Support only jails in VNET

Description

ipfilter: Support only jails in VNET

Jails without VNET have complete access to the ipfilter rules, NAT,
pools and logs. This is insecure. Only allow jails to manipulate
ipfilter rules, NAT tables and ippools if the jail has its own VNET.
Otherwise a jail can affect the global system.

This patch brings ipfilter in line with ipfw's support of VNET jails and
non-support of non-VNET jails.

(cherry picked from commit c47db49ba4aa7e74afe22591a62fbda95317932d)

Details

Provenance
cyAuthored on Mar 17 2022, 6:05 PM
Parents
rGbb4cbd0fcf3e: Simplify dynamic ipfilter sysctls.
Branches
Unknown
Tags
Unknown