How to block all incoming ping linux
Steps to block:
1)Just edit this file /etc/sysctl.conf
2)Next look for this line:
net.ipv4.icmp_echo_ignore_all
NOTE: if you dont find net.ipv4.icmp_echo_ignore_all then simply added to the last line be sure the the value is equals to 1.
So make it look like this:
net.ipv4.icmp_echo_ignore_all = 1
After that to make changes effective without rebooting run following command:
#sysctl -p
!Enjoy Linux
Kuldeep Sharma
Steps to block:
1)Just edit this file /etc/sysctl.conf
2)Next look for this line:
net.ipv4.icmp_echo_ignore_all
NOTE: if you dont find net.ipv4.icmp_echo_ignore_all then simply added to the last line be sure the the value is equals to 1.
So make it look like this:
net.ipv4.icmp_echo_ignore_all = 1
After that to make changes effective without rebooting run following command:
#sysctl -p
!Enjoy Linux
Kuldeep Sharma
No comments:
Post a Comment