Home | My New Hugo Project

ping: socket: Operation not permitted

2022-10-17

Got error with Debian Bullseye

jon2allen@lamp2c$ ping www.yahoo.com
ping: socket: Operation not permitted

to allow all users to ping again

echo "0 2147483647" > /proc/sys/net/ipv4/ping_group_range

to make permanent

echo "net.ipv4.ping_group_range = 0 2147483647" >> /etc/sysctl.conf

Here is where it is documented

 

https://lore.kernel.org/lkml/20110518174959.GA6019@albatros/

https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt