این جا دقیقا توضیح داده شده:

Linux Iptables allow or block ICMP ping request

به طور خلاصه:

کد:
iptables -A INPUT -p icmp --icmp-type 8 -j DROP