代码如下:
iptables -A INPUT -p icmp -m icmp --icmp-type 13 -j DROP
iptables -A INPUT -p icmp -m icmp --icmp-type 14 -j DROP
iptables -A INPUT -p icmp -m icmp --icmp-type 11 -j DROP
iptables -A OUTPUT -p icmp -m icmp --icmp-type 0 -j DROP
iptables -A OUTPUT -p icmp -m icmp --icmp-type 14 -j DROP
iptables -A OUTPUT -p icmp -m icmp --icmp-type 16 -j DROP
iptables -A OUTPUT -p icmp -m icmp --icmp-type 18 -j DROP
iptables -A OUTPUT -p icmp -m icmp --icmp-type 11 -j DROP