Freebsd jail ping: socket: Operation not permitted

If you’re experienced problems using a few commands including ping under your FreeBSD jail here’s how to fix it.

Problem:
ping: socket: Operation not permitted

Solution:
On the host machine do the following:

echo security.jail.allow_raw_sockets=1 >> /etc/sysctl.conf
sysctl security.jail.allow_raw_sockets=1

Now restart your jails and the problem should be fixed.

3 thoughts on “Freebsd jail ping: socket: Operation not permitted”

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>