• caglararli@hotmail.com
  • 05386281520

ICMP port unreachable message stops NMAP on UDP scan but not always [migrated]

Çağlar Arlı      -    3 Views

ICMP port unreachable message stops NMAP on UDP scan but not always [migrated]

I have two almost identical embedded hosts that I am scanning with NMAP on the specific UDP port 47808.

On host 192.168.2.12 NMAP returns after a while with: 192.168.2.12. nmap

while on 192.168.2.24 NMAP immediately returns with: 192.168.2.24 nmap

In both cases the host replies with an ICMP Type 3 Code 3 message, but for 192.168.2.12 NMAP keeps scanning, while for 192.168.2.24 it returns immediately after first ICMP answer.

This is the first ICMP answer from 192.168.2.12: 192.168.2.12 icmp

while this is the first ICMP from 192.168.2.24: 192.168.2.24 icmp

Both are Type 3 Code 3 messages but for 192.168.2.24 there is a different payload.

Why does NMAP stop immediately for 192.168.2.24 even if the ICMP type and code are identical to 192.168.2.12 ?

Here is the 192.168.2.12 NMAP packet trace: 192.168.2.12 trace

and here it is for 192.168.2.24: 192.168.2.24 trace

Even if both ICMP packets are Type 3 Code 3, NMAP identifies 192.168.2.12 answer as Destination Unreachable while 192.168.2.24 as Port Unreachable.

Why this different classification for two packets with the same Type and Code?