Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 09-30-2004, 11:29 PM   #1
Registered: Jun 2004
Posts: 131

Rep: Reputation: 15
What's Packet Counter?

when i check the iptables manual page on redhat 9.0 box, there is something called "packet counter".

Can u explain me what it is? and why we use it?

Old 10-01-2004, 12:21 AM   #2
Senior Member
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
I'm no expert here. I may be corrected by someone who knows more than me. That said;

When things go across the net, they are in little fragments, called, you guessed it, packets. They vary in size. The packets are counted, especially for web pages and such, to insure that you got the whole thing. If it says there are 500 packets and you only have 450, it gets those other 50 or gives you a boo boo message.

Now maybe some other person can explain it better than me.

Old 10-02-2004, 09:25 PM   #3
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
If you type iptables -vL the first field for each entry in the output of the packet counter. This will be the number of packets matched to that particular rule. Here's an example with the number of packets in bold:

[root@123 root]# iptables -vL
Chain INPUT (policy DROP 161 packets, 45718 bytes) 
pkts  bytes target     prot opt in     out     source               destination         
10509   13M ACCEPT     all  --  lo     any     anywhere             anywhere            
14466 2160K ACCEPT     all  --  any    any          anywhere
Old 10-02-2004, 10:21 PM   #4
Senior Member
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
hmmmm. This is strange:

root@smoker /#iptables -vL
-bash: iptables: command not found
root@smoker /#
Looks like I need to install something. Naaa. It works.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Packet Filter to redirect a packet to a user level process akawale Linux - Networking 3 09-01-2006 12:06 PM
how do i read the data in the packet that i have captured after packet capture? gajaykrishnan Programming 23 04-19-2006 05:09 AM
packet fragmentation in packet forwarding code cranium2004 Linux - Networking 0 05-16-2005 04:05 AM
How to change Packet to look like a Windows packet? TimeFade Linux - Networking 10 08-28-2003 08:08 AM
Suggestions for packet sniffer w/ packet viewing? TruckStuff Linux - Networking 5 05-31-2002 09:50 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration