Have a look at ntop
.
ntop is a simple, free, portable traffic measurement and monitoring tool, which supports various management activities, including network optimization and planning, and detection of network security violations
For Ubuntu see: ubuntuforums
ntop website, there are also GUIs: www.ntop.org