* difference between DROPped pings and non existing hosts
@ 2005-04-26 18:15 Daniel Lopes
2005-04-26 18:16 ` Tobias DiPasquale
2005-04-26 22:12 ` Taylor, Grant
0 siblings, 2 replies; 4+ messages in thread
From: Daniel Lopes @ 2005-04-26 18:15 UTC (permalink / raw)
To: netfilter
Hi,
I would like to know how ICMP distinguishes between DROPped pings and
non existing hosts. Both times you don´t get a reply from the
destination host but if it doesn´t reply because it doesn´t exist you
get the correct destination unreachable message if it drops the requests
for example with IPTables you get a timeout. And I haven´t a clue why
this is so.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: difference between DROPped pings and non existing hosts
2005-04-26 18:15 difference between DROPped pings and non existing hosts Daniel Lopes
@ 2005-04-26 18:16 ` Tobias DiPasquale
2005-04-26 18:48 ` Daniel Lopes
2005-04-26 22:12 ` Taylor, Grant
1 sibling, 1 reply; 4+ messages in thread
From: Tobias DiPasquale @ 2005-04-26 18:16 UTC (permalink / raw)
To: Daniel Lopes; +Cc: netfilter
On 4/26/05, Daniel Lopes <lopsch@lopsch.com> wrote:
> I would like to know how ICMP distinguishes between DROPped pings and
> non existing hosts. Both times you don´t get a reply from the
> destination host but if it doesn´t reply because it doesn´t exist you
> get the correct destination unreachable message if it drops the requests
> for example with IPTables you get a timeout. And I haven´t a clue why
> this is so.
In the case where you get a destination unreachable message back, its
the router that is responsible for the network on which the machine
you are trying to ping that is responding with that message. When ICMP
is dropped, the packet makes it to the host and thus the router does
not generate a destination unreachable message to send back to you.
--
[ Tobias DiPasquale ]
0x636f6465736c696e67657240676d61696c2e636f6d
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: difference between DROPped pings and non existing hosts
2005-04-26 18:16 ` Tobias DiPasquale
@ 2005-04-26 18:48 ` Daniel Lopes
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Lopes @ 2005-04-26 18:48 UTC (permalink / raw)
To: netfilter
Tobias DiPasquale schrieb:
> On 4/26/05, Daniel Lopes <lopsch@lopsch.com> wrote:
>
>>I would like to know how ICMP distinguishes between DROPped pings and
>>non existing hosts. Both times you don´t get a reply from the
>>destination host but if it doesn´t reply because it doesn´t exist you
>>get the correct destination unreachable message if it drops the requests
>>for example with IPTables you get a timeout. And I haven´t a clue why
>>this is so.
>
>
> In the case where you get a destination unreachable message back, its
> the router that is responsible for the network on which the machine
> you are trying to ping that is responding with that message. When ICMP
> is dropped, the packet makes it to the host and thus the router does
> not generate a destination unreachable message to send back to you.
>
Hmm I forgot the hardware address. In the case the router can´t do a
address resolution he generates a ICMP error message because he won´t be
able to deliver the packet is that right?
Thank´s so far for the reply :).
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: difference between DROPped pings and non existing hosts
2005-04-26 18:15 difference between DROPped pings and non existing hosts Daniel Lopes
2005-04-26 18:16 ` Tobias DiPasquale
@ 2005-04-26 22:12 ` Taylor, Grant
1 sibling, 0 replies; 4+ messages in thread
From: Taylor, Grant @ 2005-04-26 22:12 UTC (permalink / raw)
To: netfilter
> I would like to know how ICMP distinguishes between DROPped pings and
> non existing hosts. Both times you don´t get a reply from the
> destination host but if it doesn´t reply because it doesn´t exist you
> get the correct destination unreachable message if it drops the requests
> for example with IPTables you get a timeout. And I haven´t a clue why
> this is so.
Just because you get an ICMP Host Unreachable message does not mean that the host is not there or that the router can not reach it. You should probably check the source IP on the ICMP message. I've had a discussion (with little feed back) on this list to this very effect. If the host that you are trying to reach wants to it can REJECT the packet with icmp-host-unreachable it can do so in lieu of DROPing the packet. In this situation you do see an ICMP Host Unreachable message, just from the IP address of the host in question that you are trying to reach, thus you know that someone is playing with you trying to make it so that you don't think the host in question is there.
Grant. . . .
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-04-26 22:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-26 18:15 difference between DROPped pings and non existing hosts Daniel Lopes
2005-04-26 18:16 ` Tobias DiPasquale
2005-04-26 18:48 ` Daniel Lopes
2005-04-26 22:12 ` Taylor, Grant
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.