Bug 247572 - /usr/share/examples/jails jib & jng NOT working
Summary: /usr/share/examples/jails jib & jng NOT working
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 12.1-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-jail (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-27 02:58 UTC by joeb1
Modified: 2020-12-11 17:38 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description joeb1 2020-06-27 02:58:47 UTC
After starting vnet jail using jail.conf as shown in /usr/share/examples/jails to use jng and logging in to the jail and issue
ping -c 2 1.1.1.1  receive following message 
ping: sendto: Network is unreachable


After starting vnet jail using jail.conf as shown in /usr/share/examples/jails to use jib and logging in to the jail and issue
ping -c 2 1.1.1.1  

got 100% packet loss.

Running on real hardware fbsd 12.1

The /usr/share/examples/jails contains examples of using rc.conf to define jails which is obsolete since fbsd release 10.0 and should be removed.
Comment 1 Devin Teske freebsd_committer freebsd_triage 2020-12-11 17:38:48 UTC
Thanks for reporting. I will have a look to see what has changed with respect to ICMP packets in a vnet jail. I bet some sysctl has to be twisted or something.

ASIDE: rc.conf based jails are not going anywhere, to my knowledge, as jail.conf based jails cannot be managed as easily (whereas rc.conf jails can easily be managed in a site using sysrc).