Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Aug 2007 18:50:44 -0600
From:      Modulok <modulok@gmail.com>
To:        jackbarnett@gmail.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Network Monitor?
Message-ID:  <64c038660708121750l47c05379r52d775e6a45b5620@mail.gmail.com>
In-Reply-To: <46BF9DD1.8010906@gmail.com>
References:  <46BF9DD1.8010906@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8/12/07, Jack Barnett <jackbarnett@gmail.com> wrote:
>
> Is there a way to monitor what traffic is coming in/out of my network?
> For example: so me how much bandwidth emails are taking, how much http
> traffic (both in and outgoing), etc.
> I'd like a report broken down by "traffic type" like in windows.

If you're using ipfw(8) on a machine acting as a gateway and your
ruleset is configured with one rule per port, you can read the packet
and byte counters for each rule:

(root)# ipfw show;

By knowing what standard services correlate to each port (http on port
80, FTP on port 21, etc), you can get a pretty good idea of traffic.
It's not exactly the ideal solution, but it's a thought.

-Modulok-



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64c038660708121750l47c05379r52d775e6a45b5620>