[OFB Cafe] Monitoring network traffic

Rick Bowers rwbowers at gmail.com
Mon Sep 22 14:08:43 CDT 2008


At Monday 9/22/2008 12:03, you wrote:
>On Wed, Sep 17, 2008 at 10:49 PM, Rick Bowers <rwbowers at gmail.com> wrote:
> > So, I could setup my server in fire wall mode and track the counters.
> > I assume I only need the RX bytes: and TX bytes:
> >
> > Where do these counters live (what command did you type to get this
> > display)? Do you have any scripts to capture the data? I assume I'd
> > run a cron job nightly.
>
>Run ifconfig to get the counters I pasted earlier.  If your linux
>machine is acting as a NAT firewall, you can also use iptables to get
>traffic bytecounts.  Those counters *don't* roll over, so they're
>probably way better to work with.   I don't have any scripts to
>capture or process this data,
>
>Here's an article from Linux.com which talks about how you can do some
>simple reporting with iptables:
>
>http://www.linux.com/articles/50649

Thank you, Fred. I will take a look at the article you mentioned and 
do some more research.

~Rick





More information about the Cafe mailing list