Monday, March 17, 2014

Disable Ping Replies In Ubuntu

Disable Ping Reply Temporarily
             root@ubuntu:~# echo "1" >  /proc/sys/net/ipv4/icmp_echo_ignore_all                                     
                    This setting will be erased after the reboot.

Enable Ping Reply Back
              root@ubuntu:~# echo "0" >  /proc/sys/net/ipv4/icmp_echo_ignore_all
Disable ping reply Permanently
1: Edit the sysctl.conf file and add the following line.
               root@ubuntu:~#net.ipv4.icmp_echo_ignore_all = 1 
Execute sysctl -p to enforce this setting immediately.
             root@ubuntu:~# sysctl -p

No comments:

Post a Comment

bloggerwidgets