[Bug 271715] VNET jail won't start if using ip4= or ip6= syntax in jail.conf file. Syntax is specified in `man jail`

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 29 May 2023 19:29:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271715

            Bug ID: 271715
           Summary: VNET jail won't start if using ip4= or ip6= syntax in
                    jail.conf file. Syntax is specified in `man jail`
           Product: Base System
           Version: 13.2-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: justin@tocci.org

steps to reproduce:
Add ip4=inherit; or ip6=disable; and possibly other combinations to
/etc/jail.conf file and then attempt to restart a jail.

result:
root@host:~ # service jail restart net
Stopping jails: net.
Starting jails: cannot start jail  "net": 
ng0_net
jail: net: vnet jails cannot have IP address restrictions
.

expected result:
This syntax is specified in `man jail`. If it is obsolete, please remove this
paragraph from jail(8):

 ip4     Control the availability of IPv4 addresses.  Possible values are
             “inherit” to allow unrestricted access to all system addresses,
             “new” to restrict addresses via ip4.addr, and “disable” to stop
             the jail from using IPv4 entirely.  Setting the ip4.addr
             parameter implies a value of “new”.

root@host:~ # cat /etc/os-release 
NAME=FreeBSD
VERSION="13.2-RELEASE"
VERSION_ID="13.2"
ID=freebsd
ANSI_COLOR="0;31"
PRETTY_NAME="FreeBSD 13.2-RELEASE"
CPE_NAME="cpe:/o:freebsd:freebsd:13.2"
HOME_URL="https://FreeBSD.org/"
BUG_REPORT_URL="https://bugs.FreeBSD.org/"

-- 
You are receiving this mail because:
You are the assignee for the bug.