How can I disable ping replies?


 
Thread Tools Search this Thread
Special Forums IP Networking How can I disable ping replies?
# 1  
Old 11-10-2009
How can I disable ping replies?

I want my system to not reply to pings. Does anybody know how to do that in any system?
# 2  
Old 11-11-2009
Debian

you can use:
Code:
iptables -A OUTPUT -p icmp --icmp-type 8 -j DROP

you can also try this (I never used personally):
Code:
echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all

OR do it permanently on sysctl.conf
Code:
vi /etc/sysctl.conf
net.ipv4.icmp_echo_ignore_all = 1

hope this helps
# 3  
Old 11-11-2009
Sweet. Thanks!
# 4  
Old 12-20-2009
Quote:
Originally Posted by sysrenan
you can use:
Code:
iptables -A OUTPUT -p icmp --icmp-type 8 -j DROP

you can also try this (I never used personally):
Code:
echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all

OR do it permanently on sysctl.conf
Code:
vi /etc/sysctl.conf
net.ipv4.icmp_echo_ignore_all = 1

hope this helps
Code:
iptables -A OUTPUT -p icmp --icmp-type 8 -j DROP

Tried this but it didn't work, looked up the icmp types and codes, it should be 0 (Echo Reply):
Code:
iptables -A OUTPUT -p icmp --icmp-type 0 -j DROP

Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Programming

Ping test sends mail when ping fails

help with bash script! im am working on this script to make sure my server will stay online, so i made this script.. HOSTS="192.168.138.155" COUNT=4 pingtest(){ for myhost in "$@" do ping -c "$COUNT" "$myhost" &&return 1 done return 0 } if pingtest $HOSTS #100% failed... (4 Replies)
Discussion started by: mort3924
4 Replies

2. Solaris

How to disable ping?

Hello Guys, how do you disable ping in solaris 10? Thanks in advance. (1 Reply)
Discussion started by: cjashu
1 Replies

3. Shell Programming and Scripting

Animation Ping on Solaris Like Cisco Ping

Hi, I develop simple animation ping script on Solaris Platform. It is like Cisco ping. Examples and source code are below. bash-3.00$ gokcell 152.155.180.8 30 Sending 30 Ping Packets to 152.155.180.8 !!!!!!!!!!!!!.!!!!!!!!!!!!!!!. % 93.33 success... % 6.66 packet loss...... (1 Reply)
Discussion started by: gokcell
1 Replies

4. Red Hat

SSL/TLS renegotiation DoS -how to disable? Is it advisable to disable?

Hi all Expertise, I have following issue to solve, SSL / TLS Renegotiation DoS (low) 222.225.12.13 Ease of Exploitation Moderate Port 443/tcp Family Miscellaneous Following is the problem description:------------------ Description The remote service encrypts traffic using TLS / SSL and... (2 Replies)
Discussion started by: manalisharmabe
2 Replies

5. Shell Programming and Scripting

How to disable Enable/Disable Tab Key

Hi All, I have bash script, so what is sintax script in bash for Enable and Disable Tab Key. Thanks for your help.:( Thanks, Rico (1 Reply)
Discussion started by: carnegiex
1 Replies

6. Post Here to Contact Site Administrators and Moderators

Not getting email for the replies

Hi Admin, From the past couple of days, I'm not getting any emails for the replies made for my posts... How can this be resolved, I checked my email address and it is correct... could you please help me.. I missing many because of this problem Cheers..Mahendra (2 Replies)
Discussion started by: mahendramahendr
2 Replies

7. IP Networking

multiple ping replies

Helo ! I set up a new server using FreeBSD 6.0-RELEASE. Everything is ok, until I try to connect it to the internet. After I set up the connection I try to ping yahoo.com and I don't get any reply. When I try to ping the gateway I get a lot of replyes for the same packet. It looks similar to this:... (2 Replies)
Discussion started by: Sergiu-IT
2 Replies

8. Post Here to Contact Site Administrators and Moderators

Diappearing Replies

I have seen some in some threads it shows that are more than 1 replies, but when i open the thread for reading it it shows me only one reply. Where have the other replies gone ? (2 Replies)
Discussion started by: kapilv
2 Replies
Login or Register to Ask a Question