It is as easy as this:
sudo tcpdump -s 0 -i eth0 -w network-traffic.pcap
The resulting file can be analyzed using Wireshark.
yet another developer’s blog
It is as easy as this:
sudo tcpdump -s 0 -i eth0 -w network-traffic.pcap
The resulting file can be analyzed using Wireshark.