[+] Create minimalistic jail:
mkdir /j
cp /rescue/ping /j
ifconfig bridge0 create
ifconfig epair0 create
ifconfig epair0a up
ifconfig bridge0 addm epair0a up
ifconfig bridge0 10.10.10.1/24
jail -c name=test path=/j vnet vnet.interface=epair0b persist
[+] Configure network inside jail
ifconfig -j tets lo0 127.0.0.1/8 up
ifconfig -j test epair0b 10.10.10.10/24 up
[+] Test network access from
jexec test /ping 10.10.10.1
[+] Observe network stack in jail
ifconfig -j test
route -j test get 127