Networking Forums

Networking Forums > Computer Networking > Linux Networking > IPTABLES on redhat question

Reply
Thread Tools Display Modes

IPTABLES on redhat question

 
 
Paco Jones
Guest
Posts: n/a

 
      04-27-2004, 04:53 PM
I'm working with IPtables on Redhat and am finding some information in
the /etc/sysconfig/iptables file that I'm not sure about... On one
system it'll show the following line:

[80-4040] -A POSTROUTING....

Another system shows:

:FORWARD ACCEPT [0:0]

Question >> What does the [***] signify? Are these port numbers? If
so, is [0:0] signify EVERY port? Then why does it show up first on one
rule and last on another rule?

Thanks!
 
Reply With Quote
 
 
 
 
/dev/rob0
Guest
Posts: n/a

 
      04-27-2004, 07:22 PM
On Tue, 27 Apr 2004 12:53:55 -0400, Paco Jones wrote:
> I'm working with IPtables on Redhat and am finding some information in
> the /etc/sysconfig/iptables file that I'm not sure about... On one


That file is generated by iptables-save(8). That very short man page
has your answer. You might also want to see iptables-restore(8), which
reads in such a file to restore your iptables rules.
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply

 
Reply With Quote
 
Juha Laiho
Guest
Posts: n/a

 
      04-27-2004, 07:32 PM
Paco Jones <(E-Mail Removed)> said:
>I'm working with IPtables on Redhat and am finding some information in
>the /etc/sysconfig/iptables file that I'm not sure about... On one
>system it'll show the following line:
>
>[80-4040] -A POSTROUTING....


Apparently [80:4040]?

>Another system shows:
>
>:FORWARD ACCEPT [0:0]
>
>Question >> What does the [***] signify? Are these port numbers? If
>so, is [0:0] signify EVERY port?


No, they're amount of packets:bytes matched by the rule, or entered in
the rule chain.

>Then why does it show up first on one
>rule and last on another rule?


The first line you quoted is a single rule, the second is a line for
a rule chain. Of course, having the packet/byte count as the first
element in both cases might make more sense, but this seems to be the
way the code did evolve, and it's not broken enough to require fixing
(and thus breaking compatibility for tools that read the current syntax).
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to migrate the iptables from RedHat to FedoraCore4 nick Linux Networking 2 11-22-2005 05:14 AM
Can't get PCI Network Card to Work - Knoppix 4.0.2/Redhat 7.2/Redhat 8.0 deja@chronofish.com Linux Networking 0 11-20-2005 05:02 PM
setting up redhat/xp pro network (quick question) paul_fraser2005@yahoo.co.uk Linux Networking 4 06-17-2005 03:27 AM
Redhat 9 & iptable and adsl modem setup question i arit Linux Networking 1 11-02-2003 01:17 AM
redhat firewall *basic question* /dev/null Linux Networking 4 10-16-2003 04:45 AM



1 2 3 4 5 6 7 8 9 10 11