The HyperNews Linux KHG Discussion Pages

More: Using ipfwadm

Forum: The Linux Kernel Hackers' Guide
Re: Question Can you block or ignore ICMP packets?
Keywords: ICMP ping Internet echo flood
Date: Sun, 11 May 1997 21:50:25 GMT
From: Charles Barrasso <>

If you compile the kernel with FireWall support then you could do:

ipfwadm -I -P icmp -a reject(or deny)

that would make it so your computer wouldn't reply to the pings from any host.

But lets say that you wanted to be able to be pinged by but not by anyone else well then you would

ipfwadm -I -P icmp -a accept -S ipfwadm -I -P icmp -a reject(or deny)

make sure you put the accepts first then the deny's or rejects.

Hope this wasn't too confusing,