tcpdump

tcpdump is useful command to track traffic on your network.

To see all traffic between your PC and a remote server, run

Here all traffic to google.com will be displayed.

To save the logs to a file, use