#1029354 ncat: ICMPv4 Type 3 Code 13 not implemented

Package:
ncat
Source:
ncat
Description:
NMAP netcat reimplementation
Submitter:
Marco Moock
Date:
2023-02-21 01:18:03 UTC
Severity:
normal
Tags:
#1029354#5
Date:
2023-01-21 16:26:59 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
ncat <IPv4 addr> <port> and reply is ICMPv4 Type 3 Code 13, wrong error message
"Ncat: No route to host.".
   * What outcome did you expect instead?
Correct message, like "Connection to <IPv4 addr> <Port> administratively prohibited".
https://datatracker.ietf.org/doc/html/rfc1812#section-5.2.7.1

*** End of the template - remove these template lines ***

#1029354#10
Date:
2023-02-21 01:13:54 UTC
From:
To:
Sorry for the delay, but this sounds like expected behavior.  Ncat is
generally using the socket API rather than raw packets and so the host
receives the ICMP response and translates that into a more generic error
code that Ncat sees.  You can use our Nping tool if you need raw packet
sending and sniffing instead.