Sometimes for security reasons or during the time of DDOS attack, we may be forced to disable ping to our server.
This can be done by running the following command:
----
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
----
This will drop all incoming ping packets to the server.
Now, to enable the ping back, run the below command:
----
echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all
----
Cool :)
This can be done by running the following command:
----
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
----
This will drop all incoming ping packets to the server.
Now, to enable the ping back, run the below command:
----
echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all
----
Cool :)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.