Quote from: iago on March 12, 2006, 07:41:57 PM
I'd prefer people not sending out arbitrary ICMP from my system. I allow them to use ping and traceroute, but using other tools they can do a ping-of-death attack, smurf attack, and other stuff. I'd prefer not allowing that.
Agreed ... but I believe there should be some facility to do echoing at least. Darwin, for example, has a restricted ICMP extension with SODK_DGRAM.
QuoteNon-privileged ICMP
ICMP sockets can be opened with the SOCK_DGRAM socket type without
requiring root privileges. The synopsis is the following:
socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP)
This can be used by non root privileged processes to send ICMP echo
requests to gauge the quality of the connectivity to a host, to receive
ICMP destination unreachable message for path MTU discovery, or to
receveive time exceeded message for traceroute.