Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Feb 2002 20:22:46 +1100
From:      Edwin Groothuis <edwin@mavetju.org>
To:        Matiss Elsbergs <matiss@bkc.lv>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: IP Statistics on router
Message-ID:  <20020214202246.K494@k7.mavetju.org>
In-Reply-To: <FOEJJHFHNBIAKMKHNKLIKEOKCMAA.matiss@bkc.lv>; from matiss@bkc.lv on Thu, Feb 14, 2002 at 11:08:28AM %2B0200
References:  <FOEJJHFHNBIAKMKHNKLIKEOKCMAA.matiss@bkc.lv>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 14, 2002 at 11:08:28AM +0200, Matiss Elsbergs wrote:
> I have a FreeBSD router setup, running 4.5 with natd.
> How to produce online statistics on how much each of the natted adreses had
> consumed, let's say, in this day/yesterday..
> Is there such port?

If you use ipfw you can see the statistics:

01000     65      3204 allow tcp from any to any 20 via tun0
01000     77     54096 allow tcp from any 20 to any via tun0
01000    445     26646 allow tcp from any to any 21 via tun0
01000    395     53001 allow tcp from any 21 to any via tun0
01000     96      8723 allow tcp from any to any 25 via tun0
01000     90      6282 allow tcp from any 25 to any via tun0
01000 396574  24160315 allow tcp from any to any 80 via tun0
01000 384397 525562420 allow tcp from any 80 to any via tun0
01000   6667    309935 allow tcp from any to any 110 via tun0

etc.

Make a small script which adds everything and you have it on both
per protocol (more or less) and in total.

I am not aware from such a port.

Edwin

-- 
Edwin Groothuis   |              Personal website: http://www.MavEtJu.org
edwin@mavetju.org |           Interested in MUDs? Visit Fatal Dimensions:
------------------+                       http://www.FatalDimensions.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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