Hello! Tell me how to allow ping via ICMP in Ubuntu? Through TCP everything pings normally, and through ICMP it says that there are no privileges
code example:
$pong = net::ping->new("icmp"); (defined $pong) or die "Couldn't create Net::Ping object: $!\n": if ($pong->ping("kingkong.com")) { print "The giant ape lives!\n"; } else { print "All hail mighty Camera, friend of children!\n"; }
sbit in the rights and owner root? ICMP is implemented through the RAW socket; by default, this requires root privileges. Try running your script from under sudo, I think it will. - avp