Goping is a lightweight CLI tool designed to replicate the basic features of the ping cli. The tool was designed to have minimal dependencies, only using Cobra for CLI utilities.
Monitoring incoming ICMP requests requires root access and so the compiled binary resulting from this codebase has to be run with sudo. (ping has setuid)
sudo goping <hostname>
sudo goping <ip>
- IPv4 ICMP Echo packets are sent out in an infinite loop.
- Packet losses and RTT times are reported for each message.
- On ctrl-C, goping displays statistics for the echo requests.