Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do you calculate the data flown between a computer and the gateway computer. I have a Linux router/gateway running IP Tables which routes internet traffic in a LAN. I have individual users with IP/MAC Address mapped who access Interet through the gateway computer. I would like to find out the traffic utilized by individual users.

Is it possible for us to find out what kind of traffic was HTTP, SMTP, FTP etc. Is it also possible to pool the information on hourly basis, and get specific info so that I can store information in a database?

I have heard of IP Accounting? Is that the right way

share|improve this question

I used to run ntop to do this.

You can also use accounting rules in iptables to track traffic. You can using Accounting rules in Shorewall to set this up.

share|improve this answer

There is a lot of application which can calculate bandwidth. For example:

  • Bmon
  • Bandwidthd
  • Bwbar
  • bwm
  • bwm-ng
  • Cacti
  • ipfm

You can alsto try to use Zabbix or Nagios with own scripts.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.