Monday 19 December 2011

View Kernel Parameters

I want to view and set the kernel parameters to hide my machine from pinging by other work stations:

sysctl -a   # List all  Kernel Parameters

sysctl -w  net.ipv4.icmp_echo_ignore_all=1  # to set it temporarily

To make it permanent setting even after reboot, add the following line in /etc/sysctl.conf  :
net.ipv4.icmp_echo_ignore_all=1

and

execute  sysctl -p  command.


 

No comments:

Post a Comment

Tweets by @sriramperumalla