Yea ezjail man pages are very poorly documented.
There are 3 things your jail has to have to be accessable from the public network.
1. A copy of the hosts /etc/resolv.conf
2, The ezjail-admin create must use the public ip address.
3. The /etc/rc.conf must contain the same ifconfig_xxx="DHCP" statements as used in the host to connect to the public network.
Then pkg_add -r will work.
But ping is restricted from working inside of any jail by design. I use whois or dig commands to test for network access in place of ping.
Here are my versions of the ezjail man pages I wrote for my own use. You may find them helpfull. Copy the files to /usr/local/man/man8/ and then man 8 ezjail-admin to see it.
|