Re: Why some hosts in Internet not prefer to be traceroute-d ?



On Mon, 24 Sep 2007, in the Usenet newsgroup comp.os.linux.networking, in
article <1190664052.482908.125240@xxxxxxxxxxxxxxxxxxxxxxxxxxx>, Ashish Shukla
wrote:

NOTE: Posting from groups.google.com (or some web-forums) dramatically
reduces the chance of your post being seen. Find a real news server.

I've traceroute-d hundreds of hosts and noticed some of the routers in
the routes or endpoint hosts prefer not to respond to traceroute's
i.e. not to send a TTL exceeded ICMP packet back to the host. As I
don't have any experience of working in a large network, so if someone
could tell me sysadmins used to creates such rules in their firewall,
like dropping TTL exceeded ICMP packets (dropping such packets in
their OUTPUT chain of their *iptables*, if they're running some Linux
router) .

The documentation that comes with the original LBL 'traceroute' from
Van Jacobson has a number of suggestions. However many network
administrators block such traffic as a simple security measure. They
feel that you have no valid reason to determine what their network
looks like. This block may be not generating ICMP type 11 (most
operating systems use TTLs adequate to reach nearly every destination
on the Internet, so it's not a huge loss), or block _all_ ICMP
(excepting possibly types 0 and 3 inbound, and type 8 outbound), and
all unsolicited UDP inbound (except to DNS servers). Still others
block all connections to areas of the world where they expect no
useful traffic, or where they perceive only abuse. Note that unless
you have a specific agreement to the contrary, anyone on the Internet
may decline or ignore your traffic.

I used to traceroute in unprivileged user mode, which is using UDP
probes. So do these sysadmins prefer blocking ICMP "TTL exceeded"
replies for UDP packets, than ICMP "TTL exceeded" for ICMP ECHO
packets, hmm... ? Or there is no such thing like blocking ICMP "TTL
exceeded" reply associated with a UDP packet, hmm... ?

Depends on the firewall.

What's the difference between a router and a endpoint host from
point-of-view of traceroute ?

man traceroute

The intermediate hops are returning an ICMP type 11 error when
dropping a packet with time exceeded. The endpoint is probably
returning an ICMP type 3 error.

Why some endpoint host, which has been blocking ICMP "TTL exceeded"
for UDP packet, is allowing "traceroute" associated with a UDP packet
for a listening port.

The endpoint should only return a Type 11 Code 1 of the packet were
fragmented. See RFC0792. See also RFC1122 and RFC1812.

BtW, above host can be tracerouted using ICMP but not UDP:

Other than DNS, there are comparatively few Internet services that
use UDP. See above.

Old guy

.



Relevant Pages

  • Re: unexpected ICMP host unreachable - no worries?
    ... an attack?". ... You observed ICMP backscatter traffic. ... I'm guessing this packet is remote controlling command to distributed ... easily relate that outgoing scan or outbound flood packets after detect ...
    (comp.os.linux.security)
  • Re: Interesting fw log: "ICMP type 3 not embeddable"
    ... I've seen ICMP type 3 embedded TCP or UDP datagram but never seen ICMP ... REJECT incoming ICMP 3 packet) or is using ICMP mis-implementation OS ... is running BSD code based some router. ...
    (comp.os.linux.security)
  • Re: Interesting fw log: "ICMP type 3 not embeddable"
    ... I've seen ICMP type 3 embedded TCP or UDP datagram but never seen ICMP ... REJECT incoming ICMP 3 packet) or is using ICMP mis-implementation OS ... is running BSD code based some router. ...
    (comp.os.linux.security)
  • FW: ICMP fragmentation required but DF set problems.
    ... ICMP fragmentation required but DF set problems. ... against some TCP/IP stack. ... Anyway the stack takes an hash table with the MTU of other ends. ... size of the quoted packet in the ICMP packet, ...
    (FreeBSD-Security)
  • Re: Interesting fw log: "ICMP type 3 not embeddable"
    ... >> ICMP type 3 means host not reachable and the message is from ... was this really just a somehow malformed packet or is ... ICMP errors ...
    (comp.os.linux.security)