Trace Routing for a Certain port
NMAP, my good friend will do this for you :)
The classic example is from the NMAP manual and manpage such as the Debian manpage follows:
nmap -A -T4 scanme.nmap.org
"The only Nmap arguments used in this example are -A
, to enable OS and version detection, script scanning, and traceroute; -T4
for faster execution; and then the hostname."
If you want even more control you can use nping
in the NMAP suite, the example in NMAP manual (Chapter 5) follows:
nping --udp --traceroute -c 13 -p 53 scanme.nmap.org