How to monitoring data sent or received over internet?

How to monitor or log exactly what text or binary is sent or received over internet, to where (website or ip) and from which app?

I have used OpenSnitch app which logs the connections, by which app and to which address, but not what data (exact text or binary) is sent or received over internet, AFAIK.

You could try wireshark


Thanks. The only feature it’s missing is that it doesn’t log which app is sending or receiving the data. The solutions I found on the internet were to use close all apps and open the app to monitor, and to use netcat along with it.

That part is ofcourse something you need to correlate from the info you get when you want to monitor apps on the same host :wink: