LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 10-01-2004, 12:29 AM   #1
mrpc_cambodia
Member
 
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?


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

Rep: Reputation: 65
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, 10:25 PM   #3
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 57
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:

Code:
[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     192.168.5.1          anywhere
 
Old 10-02-2004, 11:21 PM   #4
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
hmmmm. This is strange:

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

 
  


Reply


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 01:06 PM
how do i read the data in the packet that i have captured after packet capture? gajaykrishnan Programming 23 04-19-2006 06:09 AM
packet fragmentation in packet forwarding code cranium2004 Linux - Networking 0 05-16-2005 05:05 AM
How to change Packet to look like a Windows packet? TimeFade Linux - Networking 10 08-28-2003 09:08 AM
Suggestions for packet sniffer w/ packet viewing? TruckStuff Linux - Networking 5 05-31-2002 10:50 AM


All times are GMT -5. The time now is 04:37 AM.

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