From: Paul.Hampson@PObox.com (Paul Hampson) Date: Wed, 16 Mar 2005 16:07:04 +0000 Subject: Re: [LARTC] Packet Counting... Message-Id: <20050316160704.GC15550@yurika.videohost.com.au> List-Id: References: <423861F9@webmail.wichita.edu> In-Reply-To: <423861F9@webmail.wichita.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On Wed, Mar 16, 2005 at 09:46:35AM -0600, M. A. Imam wrote: > Hi, > How can i count the number of packets on an interface evry 2 or 5 seconds. and > i want to count only specific packets like only arriving packets from port > 5001 I knocked up something like that using the built-in counters in iptables. It was pretty nasty, and it's just been replaced with netflow. But it _can_ be done, taking advantage of iptables's atomic display/clear command. Which I forget off hand. ^_^ If you want to go this way, I can post the script I'm using to get the data out of iptables. -- Paul "TBBle" Hampson, on an alternate email client. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc