Disable ICMP echo (ping) responses in Linux

Home -> UNIX -> Linux -> Network Administration

19638 views

From the computer of: qmchenry (339 recipes)
Created: Sep 05, 2003     Updated: Sep 22, 2003


3 comments:
View all comments

Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

Many malicious attacks begin with a ping scan. Disabling ICMP echo requests prevents your system's discovery with a ping.

As superuser, add the following lines to /etc/sysctl.conf

net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_echo_ignore_all = 1


Then run the following command to cause the change to take effect immediately:

sysctl -p


This change will persist following a reboot.

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.




3 Recipe comments: View comments

Disable ICMP echo (ping) responses in Linux by Anonymous
Better way by Anonymous
Disableing ICMP Pings in the firewall by Anonymous



Related recipes:

  RedHat Linux IP Forwarding
  Linux: How To Find the Default Gateway
  Force the speed and duplex of a Linux ethernet interface
  Determine Linux ethernet interface speed and duplex

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.