Freebsd jail ping: socket: Operation not permitted

By nick | Tech Support
1 Dec 2010

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 Comments

  1. Nikolaj Hansen says:

    Thanks for the tip, fixed my problem right away.

  2. Gaurav says:

    Thanks.
    My problem gone right away.

  3. Thanks, this worked on a NAS4Free jail.

Leave a Reply