stop ping response from server

This forum is for all security related discussions. Questions, tips, firewalls, Attack detection and prevention, securing system etc. are all included here.

stop ping response from server

Postby neha » Wed Oct 28, 2009 3:15 pm

Hi,

can anybody pls point me how to stop response from my server (centos 5.3) for a ping request? or in other way, discard incoming icmp packets.

thanks
Neha
neha
 
Posts: 9
Joined: Sat Oct 17, 2009 12:27 pm

Re: stop ping response from server

Postby sush » Wed Oct 28, 2009 3:34 pm

you can block incoming icmp packets using this iptable rule:

Code: Select all
iptables -A INPUT -p icmp --icmp-type any -j REJECT
Sush
Knowledge is power, knowledge shared is power multiplied.
User avatar
sush
Site Admin
 
Posts: 33
Joined: Fri Jun 05, 2009 7:40 pm
Location: Bangalore, India

Re: stop ping response from server

Postby shankar » Tue Jul 06, 2010 4:13 pm

You can also add the following line in to /etc/sysctl.conf to stop ping request.

net.ipv4.icmp_echo_ignore_all=1

It also stops the ping request.
shankar
 
Posts: 2
Joined: Tue Jul 06, 2010 3:40 pm


Return to Security

Who is online

Users browsing this forum: No registered users and 1 guest

cron