Probably the most popular related project with GUI is [Wireshark](https://www.wireshark.org/)

> Wireshark is the world’s foremost and widely-used network protocol
> analyzer. It lets you see what’s happening on your network at a
> microscopic level and is the de facto (and often de jure) standard
> across many commercial and non-profit enterprises, government
> agencies, and educational institutions. Wireshark development thrives
> thanks to the volunteer contributions of networking experts around the
> globe and is the continuation of a project started by Gerald Combs in
> 1998.

`sudo apt-get install wireshark`

And without GUI you have [tshark](https://www.wireshark.org/docs/man-pages/tshark.html) used by wireshark.

> TShark is a network protocol analyzer. It lets you capture packet data
> from a live network, or read packets from a previously saved capture
> file, either printing a decoded form of those packets to the standard
> output or writing the packets to a file. TShark's native capture file
> format is pcapng format, which is also the format used by wireshark
> and various other tools.

`sudo apt-get install tshark`