All of lore.kernel.org
 help / color / mirror / Atom feed
* iptables - explain
@ 2005-04-30  5:39 varun_saa
  2005-04-30  6:24 ` Alistair Tonner
  0 siblings, 1 reply; 2+ messages in thread
From: varun_saa @ 2005-04-30  5:39 UTC (permalink / raw)
  To: netfilter

Hello,
      I wish to understand the following 
in the iptables file.

I see the following the entries :

# Generated by iptables-save v1.2.9 on Tue Apr 26 14:50:01 2005
*nat
:OUTPUT ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]

# Completed on Tue Apr 26 14:50:01 2005
# Generated by iptables-save v1.2.9 on Tue Apr 26 14:50:01 2005
*mangle
:PREROUTING ACCEPT [707:100355]
:INPUT ACCEPT [704:99811]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [541:74129]
:POSTROUTING ACCEPT [611:85191]

# Completed on Tue Apr 26 14:50:01 2005
# Generated by iptables-save v1.2.9 on Tue Apr 26 14:50:01 2005
*filter
:FORWARD ACCEPT [0:0]
:INPUT DROP [0:0]
:OUTPUT ACCEPT [0:0]


What do you entries like " OUTPUT ACCEPT [0:0] "
signify or represent.

Thanks

Varun




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: iptables - explain
  2005-04-30  5:39 iptables - explain varun_saa
@ 2005-04-30  6:24 ` Alistair Tonner
  0 siblings, 0 replies; 2+ messages in thread
From: Alistair Tonner @ 2005-04-30  6:24 UTC (permalink / raw)
  To: netfilter

On April 30, 2005 01:39 am, varun_saa@vsnl.net wrote:

	Comments in inline -- - note the << below
> Hello,
>       I wish to understand the following
> in the iptables file.
>
> I see the following the entries :
>
> # Generated by iptables-save v1.2.9 on Tue Apr 26 14:50:01 2005		
> *nat		<<< NAT table header
>
> :OUTPUT ACCEPT [0:0]     << Chain + policy + packet/byte count
> :PREROUTING ACCEPT [0:0]     << Chain + policy + packet/byte count
> :POSTROUTING ACCEPT [0:0]       ""
>
> # Completed on Tue Apr 26 14:50:01 2005
> # Generated by iptables-save v1.2.9 on Tue Apr 26 14:50:01 2005
> *mangle		<<< Mamgle table header
>
> :PREROUTING ACCEPT [707:100355] << see above Chain/policy/packet/byte count
> :INPUT ACCEPT [704:99811]                 ''
> :FORWARD ACCEPT [0:0]			 ''
> :OUTPUT ACCEPT [541:74129]		 ''
> :POSTROUTING ACCEPT [611:85191]	""
>
> # Completed on Tue Apr 26 14:50:01 2005
> # Generated by iptables-save v1.2.9 on Tue Apr 26 14:50:01 2005
> *filter 		<<<< filter table header
>
> :FORWARD ACCEPT [0:0]
> :INPUT DROP [0:0]
> :OUTPUT ACCEPT [0:0]
>
> What do you entries like " OUTPUT ACCEPT [0:0] "

	Output chain in x table - Policy on the chain is ACCEPT and 0 packets/ 0 
Bytes have been tracked through the chain.

	This is the file from iptables-save and should only be used to save and 
reload the firewall over reboots.  I wouldn't recommend trying to understand 
it unless you do crazy stuff like -- edit the file with sed when your cable 
modem changes ip's *cough* (glances around)

	Alistair Tonner

> signify or represent.
>
> Thanks
>
> Varun


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-04-30  6:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-30  5:39 iptables - explain varun_saa
2005-04-30  6:24 ` Alistair Tonner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.