The HyperNews Linux KHG Discussion Pages

Icmp.c and kernal ping replies

Forum: The Linux Kernel Hackers' Guide
Re: Question Can you block or ignore ICMP packets?
Keywords: ICMP ping Internet echo flood
Date: Sat, 22 Mar 1997 15:55:26 GMT
From: Don Thomas <>


I'm not sure if you can ignore ICMP requests, but I have been able to modify icmp.c to stop the kernal replying to ping requests. This halves the amount of traffic if you are flood pinged, plus the person pinging you, may well believe that you are down because of the absence of replies. I added this to icmp.c in the /usr/src/linux/net/ipv4 directory, and then re-compiled. Seems to work okay on 2.0.28.