Many linux fans disable ping response with ipchains or iptables, for example:
[root@redhat7 root]# iptables -I INPUT -p icmp -m icmp --icmp-type echo-request -j DROP
Here is the simple way to do in linux server:
[root@redhat7 root]# echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
If you need to enable Ping (ICMP) Responses in Linux, try it:
[root@redhat7 root]# echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all
Another Methods:
You should be the root user to login in Linux and edit the icmp_echo_ignore_all file:
[root@redhat7 root]# vi /proc/sys/net/ipv4/icmp_echo_ignore_all
Disable ping response: Change Its value to 1
Enable ping response: Change Its value to 0
No comments:
Post a Comment