Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Payam Chychi <pchychi@gmail.com>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: Jonathan Tripathy <jonnyt@abpni.co.uk>,
	"netfilter@vger.kernel.org" <netfilter@vger.kernel.org>
Subject: Re: How Expensive?
Date: Wed, 28 Jul 2010 00:41:18 -0700	[thread overview]
Message-ID: <4C4FDF1E.9050501@gmail.com> (raw)
In-Reply-To: <alpine.LSU.2.01.1007280811370.26636@obet.zrqbmnf.qr>

On 10-07-27 11:12 PM, Jan Engelhardt wrote:
> On Wednesday 2010-07-28 03:17, Payam Chychi wrote:
>
>    
>> it's much less and actually recommended than running all rules in
>> default/less chains as each pkt must traverse the entire chain to be
>> processed
>>      
> Packets need not traverse an entire chain! All of -j ACCEPT, -j DROP,
> -j RETURN and -g xxx cause an early exit from the current chain in one
> way or another.
>    
a packet must traverse an entire chain unless it meets a given condition 
and as such its better to have more specific chains to jump packet 
through rather than having to wait until the end of a chain, ie. 1000 
line chain.

ps, my prevoius reply was suppose to say "its much less overhead to use 
more chains and actually NOT recommended to run all rules in 
default/less chains", sorry for the confusion.

      reply	other threads:[~2010-07-28  7:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-28  0:23 How Expensive? Jonathan Tripathy
2010-07-28  1:17 ` Payam Chychi
2010-07-28  6:12   ` Jan Engelhardt
2010-07-28  7:41     ` Payam Chychi [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=4C4FDF1E.9050501@gmail.com \
    --to=pchychi@gmail.com \
    --cc=jengelh@medozas.de \
    --cc=jonnyt@abpni.co.uk \
    --cc=netfilter@vger.kernel.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