From owner-freebsd-questions Thu Feb 14 1:23: 3 2002 Delivered-To: freebsd-questions@freebsd.org Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by hub.freebsd.org (Postfix) with ESMTP id 688BB37B417 for ; Thu, 14 Feb 2002 01:22:56 -0800 (PST) Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id 09A442B6AF; Thu, 14 Feb 2002 10:22:53 +0100 (CET) Received: by k7.mavetju.org (Postfix, from userid 1001) id AFA09324; Thu, 14 Feb 2002 20:22:46 +1100 (EST) Date: Thu, 14 Feb 2002 20:22:46 +1100 From: Edwin Groothuis To: Matiss Elsbergs Cc: freebsd-questions@freebsd.org Subject: Re: IP Statistics on router Message-ID: <20020214202246.K494@k7.mavetju.org> Mail-Followup-To: Edwin Groothuis , Matiss Elsbergs , freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from matiss@bkc.lv on Thu, Feb 14, 2002 at 11:08:28AM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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