This is a re-implementation of the linux traceroute command, which traces the path of a packet all the way from source to destination.
Some notes:
- Sends ICMP packet only (instead of UDP packets which are default in Linux traceroute).
- You must enter the IPv4 address not the URL.
- This is the Original Repository Folder in case you want to follow the commit history.
I also wrote a small piece about traceroute and software in general.
Execute the following set of commands:
- First grab the IP address of the URL you want to trace using the dig utility. Eg dig google.com
- sudo go run main.go IPv4 Address
If all goes well, you should see this ugly-ly formatted packet trail