Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: netfilter@lists.netfilter.org
Subject: Re: chains in the same table
Date: Thu, 6 May 2004 11:47:34 +0100	[thread overview]
Message-ID: <200405061147.35201.Antony@Soft-Solutions.co.uk> (raw)
In-Reply-To: <004c01c4334f$3f1329f0$cb0210ac@jz105>

On Thursday 06 May 2004 10:48 am, Jee J.Z. wrote:

> Hi all,
>
> I'm asking a basic question that in the same table (for example, the filter
> table), if a packet hit the INPUT chain while no rules are in the INPUT
> chain and the default policy is ACCEPT, will the packet be passed on to the
> FORWARD chain? If accepted again, be passed on to the OUTPUT chain?

Any single packet only traverses one of the above chains.

If it's addressed *to* the machine, it goes through INPUT only.

If it's addressed *from* the machine, it goes through OUTPUT only.

If it's going *from* somewhere else *to* somewhere else (ie: being routed), it 
goes through FORWARD only.

(I guess there's an exception that loopback packets will go through both 
OUTPUT and INPUT, but that's unusual.)

Regards,

Antony.

-- 
Ramdisk is not an installation procedure.

                                                     Please reply to the list;
                                                           please don't CC me.



  parent reply	other threads:[~2004-05-06 10:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-06  9:48 chains in the same table Jee J.Z.
2004-05-06 10:22 ` Klemen Kecman
2004-05-06 10:47 ` Antony Stone [this message]
2004-05-06 22:55   ` Jee J.Z.
2004-05-06 23:07     ` Antony Stone
     [not found]     ` <16539.37073.149335.706385@saint.heaven.net>
2004-05-07 14:01       ` Jee J.Z.
2004-05-06 10:50 ` Frank Gruellich
  -- strict thread matches above, loose matches on Subject: below --
2004-05-06 23:10 Daniel Chemko

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=200405061147.35201.Antony@Soft-Solutions.co.uk \
    --to=antony@soft-solutions.co.uk \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox