Skip to main content

traceroute_to_specific_port

We can perform a traceroute to a specific port on a host, to check where packets get blocked.

hping3 --traceroute -V -S -p 93 -s 5678 example.com

This will just stuck at the first point which will not send a packet back, we can have more control by doing:

hping3 -z -t 1 -S google.com -p 80
# -z connects the command to the ctrl z on the keyboard so that every time we
# press it, the TTL is incremented by 1
# -t sets the initial TTL (in this case, we're using 1)
# -S sets the flag to SYN
# -p 80 sets the destination port to 80