LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 11-05-2009, 04:11 AM   #1
haariseshu
Member
 
Registered: Jan 2008
Location: Noida, India
Distribution: RHEL
Posts: 81

Rep: Reputation: 15
Question On what basis CHAIN integer values are generated in IPtables under iptables file?


Hello Friends,

I have posted this question just to know the operations of "/etc/init.d/iptables save" command.

On executing this command all the rules will be saved permenantly to "/etc/sysconfig/iptables".

Quote:
Sample "iptables" file:
# Generated by iptables-save v1.2.11 on Thu Nov 5 13:05:09 2009
*filter
:INPUT DROP [1:328]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [1:328]
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p udp -m udp --dport 80 -j ACCEPT
COMMIT
# Completed on Thu Nov 5 13:05:09 2009
In this I cant understand the 3,4,5 lines... On which basis this integer ratio's are getting generated??
Asking this just on the interest to know addtional information only. If anyone can explain this that will be great really!

Thank you...
 
Old 11-05-2009, 05:00 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by haariseshu View Post
Hello Friends,

I have posted this question just to know the operations of "/etc/init.d/iptables save" command.

On executing this command all the rules will be saved permenantly to "/etc/sysconfig/iptables".



In this I cant understand the 3,4,5 lines... On which basis this integer ratio's are getting generated??
Asking this just on the interest to know addtional information only. If anyone can explain this that will be great really!

Thank you...

what???

These are byte and packet counters relating to each table.
 
Old 11-05-2009, 05:12 AM   #3
haariseshu
Member
 
Registered: Jan 2008
Location: Noida, India
Distribution: RHEL
Posts: 81

Original Poster
Rep: Reputation: 15
hi frnd,
thank U for your response.

In this line ":INPUT DROP [1:328]", what exactly the integers 1 and 328 means??
byteacket counters?? Can you please provide some more details on this values (like some sample calculations)??
 
Old 11-05-2009, 05:25 AM   #4
haariseshu
Member
 
Registered: Jan 2008
Location: Noida, India
Distribution: RHEL
Posts: 81

Original Poster
Rep: Reputation: 15
Hi,

I found this link:
http://www.linuxtopia.org/Linux_Fire...les/x1824.html

and is really useful for me to understand...

Thank you so much for the key words you included with your post ...

Last edited by haariseshu; 11-05-2009 at 05:43 AM.
 
  


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
[SOLVED] Rather huge IPtables chain, iptables: Memory allocation problem. Gangrif Linux - Networking 10 09-11-2009 04:30 PM
Iptables - Chain sequence Madhushanka Linux - Security 2 12-19-2008 11:03 PM
iptables good packet chain (instead of bad packet chain) win32sux Linux - Security 6 11-06-2008 07:02 AM
Which is the chain name in iptables dkn4a1 Linux - Software 4 09-22-2008 06:23 AM
iptables chain modification gizza23 Linux - Networking 2 07-10-2005 06:45 AM


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

Main Menu
Advertisement
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