Notes ping ICMP

rootless

Allowing ping

Most distributions do not allow non-root users to send ICMP Echo Request packets (aka ping) by default.

To allow running ping without root, create /etc/sysctl.d/99-rootless.conf with the following content:

/etc/sysctl.d/99-rootless.conf

net.ipv4.ping_group_range = 0 2147483647

Then run the following command to reload the new sysctl configuration:

sudo sysctl --system

Source : https://rootlesscontaine.rs/getting-started/common/sysctl/