tcpdump is a command-line tool for capturing and analyzing network traffic. It allows you to inspect packets passing through network interfaces in real time or save them for later analysis.
Home page: https://www.tcpdump.org/