Basically you need a Netflow installation - a series of probes on the host that will collect the data about traffic passing and then pass it onto the collector (which may or may not reside on the same host), from which you can build your statistic reports. At the time of this writing the most up-to-date and functional netflow framework is nfdump. Since you're using Linux, the recommended probes would be ipt-netflow.
There's also a number of derivatives/alternatives worth to mention, like sFlow, but the most straightforward approach would be using Netflow.