From: Alistair Tonner <Alistair@nerdnet.ca>
To: netfilter@lists.netfilter.org
Subject: Re: iptables - explain
Date: Sat, 30 Apr 2005 02:24:54 -0400 [thread overview]
Message-ID: <200504300224.54980.Alistair@nerdnet.ca> (raw)
In-Reply-To: <85ffba860f5f.860f5f85ffba@vsnl.net>
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
prev parent reply other threads:[~2005-04-30 6:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-30 5:39 iptables - explain varun_saa
2005-04-30 6:24 ` Alistair Tonner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200504300224.54980.Alistair@nerdnet.ca \
--to=alistair@nerdnet.ca \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.