From mboxrd@z Thu Jan 1 00:00:00 1970 From: "M. A. Imam" Date: Wed, 16 Mar 2005 16:16:32 +0000 Subject: RE: [LARTC] Packet Counting... Message-Id: <4238712F@webmail.wichita.edu> 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 Sure i would like to try that... Also if you can tell me how accurate it can be, i will be greatful.. By accurate i mean like if i will be able to get the count for each second also... Thanks alot... Muhammad >=== Original Message From Paul.Hampson@PObox.com (Paul Hampson) ==>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 _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc