Skip to main content

traceroute

hping3 --traceroute -V -1 www.example.com
# performs traceroute
# -1, using ICMP
# -V, it will be verbose

Note: if hping gets stuck on any given hop simple press ctrl-z in order to skip unresponsive hop.

We can perform an UDP traceroute by doing:

hping3 -2 4.2.2.1 -p ++44444 -T -n

We can also check how a route changes at different hops, for example let's say we want to check what are the different paths taken at hop 15, we can do:

hping3 -S 1.1.1.1 -p 80 -T --ttl 15 --tr-keep-ttl -n