From owner-freebsd-questions@FreeBSD.ORG Wed Dec 14 07:22:31 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C1A516A41F for ; Wed, 14 Dec 2005 07:22:31 +0000 (GMT) (envelope-from parv@pair.com) Received: from mta13.adelphia.net (mta13.mail.adelphia.net [68.168.78.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADB3243D5F for ; Wed, 14 Dec 2005 07:22:30 +0000 (GMT) (envelope-from parv@pair.com) Received: from default.chvlva.adelphia.net ([68.67.248.52]) by mta13.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051214072229.NVEE26442.mta13.adelphia.net@default.chvlva.adelphia.net>; Wed, 14 Dec 2005 02:22:29 -0500 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id D404BB547; Wed, 14 Dec 2005 02:22:32 -0500 (EST) Date: Wed, 14 Dec 2005 02:22:32 -0500 From: Parv To: Chuck Swiger Message-ID: <20051214072232.GA34657@holestein.holy.cow> Mail-Followup-To: Chuck Swiger , f-q References: <20051214000234.GA28630@holestein.holy.cow> <439FB80C.4050905@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <439FB80C.4050905@mac.com> Cc: f-q Subject: Re: Getting the network traffic amount since the interface went up X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2005 07:22:31 -0000 in message <439FB80C.4050905@mac.com>, wrote Chuck Swiger thusly... > > Parv wrote: ... > > Is there a way to find out the amount of traffic (in & out) > > since a network interface has been up (not since the OS has been > > up)? > > There are lots of solutions to this problem, it kinda depends on > what you're trying to do. Well, actually i want to know the limit(s) (related to amount of data and number of connections) at which SMC Barricade 7004ABR router allows only the already established connections and refuses to allow any new ones. This is all related to download a large torrent via rtorrent. Rebooting the router solves the problem until i decide to restart the download. > You might set up an IPFW rule which matches just the traffic you > care about, and look at "ipfw -a l". You can zero the counters at > will if you like, too. From the ipfw manpage: > > Per-flow queueing can be useful for a variety of purposes. A > very simple one is counting traffic: Thanks for bringing that to my attention as I mainly use ipf & have not paid much of a look to ipfw. - Parv --