If you want not to reply ping(echo-request), change /proc/sys/net/ipv4/icmp_echo_ignore_all; do the following command.
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
If you want to disallow
ping, set proper permission to
ping as zxzx123 said, or filter packets by using
iptables; a example rule is following
iptables -a OUTPUT -j DROP -p icmp --icmp-type 8
im glad my advice to your help