Sunday, June 10, 2007

Want to Hide yourself???

Do you want your Linux Box not to respond to ping request!
Here is how to do....

Check the value of /proc/sys/net/ipv4/icmp_echo_ignore_all
i.e.cat /proc/sys/net/ipv4/icmp_echo_ignore_all
Now, replace the current value by 1

i.e. echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all

Now, try and ping your system from a different system...Are u getting any response????
Reboot ur system, and ur current settings is lost (Default is reverted back.. i.e. ping is enabled again.)

Want to make this a permanent one???
Make the following entry in /etc/sysctl.conf
net.ipv4.icmp_echo_ignore_all=1

Now, run the following command to make the change effective...
sysctl -p


You are Hidden!!!

No comments: