Little issue with Jails

Software Information softwareinforjam at gmail.com
Tue Jul 11 17:01:36 UTC 2017


Hi All
I am using FreeBSD 11 and have created a new jail using the following steps

1. make buildworld DESTDIR=/here/is/the/jail
2. make installworld DESTDIR=/here/is/the/jail
3. make distribution DESTDIR=/here/is/the/jail
4. mount -t devfs devfs /here/is/the/jail/dev

I have the following in my host rc.conf

jail_enable="YES"   # Set to NO to disable starting of any jails

jail_list="www"     # Space separated list of names of jails

Note: Jail names in jail_list should contain alphanumeric characters only.

For each jail listed in jail_list, a group of rc.conf(5) settings, which
describe the particular jail, should be added:



jail_www_rootdir="/usr/jail/www"     # jail's root directory

jail_www_hostname="jailname.org"  # jail's hostname

jail_www_ip="IP_Address"           # jail's IP address

jail_www_devfs_enable="YES"          # mount devfs in the jail


On the host, I did sysctl security.jail.allow_raw_sockets=1

In /etc/jail.conf, in the config section for that jail, I entered the
line *allow.raw.sockets
= 1 *


and I also did an *echo 'security.jail.allow_raw_sockets=1' >>
/etc/sysctl.conf *inside the jail.


>From what I can tell, I should be able to ping inside the jail now but it
still doesn't work. Does anyone see anything I may have left out?


More information about the freebsd-stable mailing list