[CentOS] Data consumption (external connections only)

Sat Feb 25 00:00:52 UTC 2012
Les Mikesell <lesmikesell at gmail.com>

On Fri, Feb 24, 2012 at 5:34 PM, Frank Cox <theatre at melvilletheatre.com> wrote:
>>
> 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.

There is probably some way to do this with iptables, but it doesn't
match any normal tracking.  You might try ntop and see if you can find
the MAC/MAC traffic for the computer/router pairs you want, but there
is a lot of overhead for that.

-- 
  Les Mikesell
    lesmikesell at gmail.com