View Single Post
  #3   (View Single Post)  
Old 3rd May 2010
FBSD FBSD is offline
Real Name: Joe Barbish
KING
 
Join Date: Feb 2010
Location: Angeles City, Philippines
Posts: 19
Default

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.
Attached Files
File Type: gz ezjail-admin.8.gz (9.8 KB, 58 views)
File Type: gz ezjail.8.gz (2.1 KB, 51 views)
File Type: gz ezjail.conf.8.gz (1.2 KB, 51 views)
__________________
FreeBSD Install Guide www.a1poweruser.com
Reply With Quote