Skip to contentSkip to conversation

Allowing ping

DISCUSSION Askar Ali 4 participants 4 messages Oct 25, 2005 – Oct 26, 2005

lore
Share & tools
lore

Askar Ali

author
#0 lore raw

hi list,

I have a very simple question, presently we are blocking icmp
"ping" on our servers. But as far I can userderstand its not very good practice or providing a good security by blocking ping request. see one can ping www.xyz.com and get the reply back.

However Before allowing ping "echo-request" I just want to confirm whether doing ...

iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT

would be enough or doing some rate limiting would be better?

Any help in this regard will greatly appreciated.

regards

Askar Ali

#1 lore raw
Quoted 3 lines · Askar Ali

I have a very simple question, presently we are blocking icmp "ping" on our servers. But as far I can userderstand its not very good practice or providing a good security by blocking ping request.

I agree. Blocking pings is like shooting yourself in the foot. You never know when you will need ping. Some think it's a good idea to try to hide. Rubbish, if you have any open services, the bots and worms will find you anyway.

Quoted 8 lines

see one can ping www.xyz.com and get the reply back.

However Before allowing ping "echo-request" I just want to confirm whether doing ...

iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT

would be enough or doing some rate limiting would be better?

I think a reasonable --limit is not a bad idea, but there is no objective measurement of "better". I use a --limit on incoming ping requests. It might help in the event of a flood ping attack, and you can still ping to verify your connectivity when you need it.

Signature · 2 lines
    mail to this address is discarded unless "/dev/rob0"
    or "not-spam" is in Subject: header
#2 lore raw
Quoted 9 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of /dev/rob0
Sent: Wednesday, October 26, 2005 11:56 AM
To: [email protected]
Subject: Re: Allowing ping

Quoted 4 lines

I think a reasonable --limit is not a bad idea, but there is no objective measurement of "better". I use a --limit on incoming ping requests. It might help in the event of a flood ping attack, and you can still ping to verify your connectivity when you need it.

I believe it marginally helps during an attack. If you're DDOS, the packets are still reaching your NIC so you're kinda hosed anyway.
---
Pablo Sanchez - Blueoak Database Engineering, Inc

Ph:    819.459.1926          Toll free:  888.459.1926
Cell:  819.664.9118                Pgr:  [email protected]
Fax:   603.720.7723 (US)           Fax:  514.371.1255 (Canada)
#3 lore raw
In reply to /dev/rob0

hi rob

would you pls share your iptables rules that dealng incoming pings ?

Quoted 19 lines · On 10/26/05, /dev/rob0 <[email protected]> wrote:
Quoted 3 lines · Askar Ali

I have a very simple question, presently we are blocking icmp "ping" on our servers. But as far I can userderstand its not very good practice or providing a good security by blocking ping request.

I agree. Blocking pings is like shooting yourself in the foot. You never know when you will need ping. Some think it's a good idea to try to hide. Rubbish, if you have any open services, the bots and worms will find you anyway.

Quoted 8 lines

see one can ping www.xyz.com and get the reply back.

However Before allowing ping "echo-request" I just want to confirm whether doing ...

iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT

would be enough or doing some rate limiting would be better?

Quoted 9 lines

I think a reasonable --limit is not a bad idea, but there is no objective measurement of "better". I use a --limit on incoming ping requests. It might help in the event of a flood ping attack, and you can still ping to verify your connectivity when you need it. --
mail to this address is discarded unless "/dev/rob0" or "not-spam" is in Subject: header

--
Unix is very simple, but it takes a genius to understand the simplicity. (Dennis Ritchie)