[CentOS] Data consumption (external connections only)

Fri Feb 24 23:34:25 UTC 2012
Frank Cox <theatre at melvilletheatre.com>

On Fri, 24 Feb 2012 17:23:31 -0600
Les Mikesell wrote:
 
> I don't think there is anything that tracks things routed through a
> gateway unless it goes out different interfaces.  Do you have
> different internal/external interfaces?    You should be able to pick
> up the counters from the router interfaces via snmp if you want the
> totals there.

I have a small network with two cheap dlink routers on it, one attached to a
cable modem and the other to a DSL modem.  I route certain data through the
cable modem, and everything else goes through the DSL.

However, on the computers only have eth0 and I just use route commands on the
individual computers to sort out what I want to go out through each modem.  My
default gateway is 192.168.0.254 and I custom route certain traffic through
192.168.0.1.

Ultimately, I have three kinds of traffic that I'm interested in counting from
each computer on my network: internal traffic, from one computer to another
(from 192.168.0.x to 192.168.0.y); external traffic through 192.168.0.254;
external traffic through 192.168.0.254.  I would like to look at a report on
each of my computers and find out how much data each one has sent and received
during the period in each of those categories.

-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
www.creekfm.com - FIFTY THOUSAND WATTS of POW WOW POWER!