Wireshark is an open source network protocol analyzer. It allows you capture packets from a network interface and then analyze their contents. Wireshark can be downloaded and installed from Ubuntu’s repositories:
sudo apt-get install wireshark
I had to run Wireshark as root to see my network interfaces. To start capturing packets, click Capture->Interfaces in the application menu.