All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eirik Thorsnes <eirik.thorsnes@fys.uib.no>
To: netfilter@lists.netfilter.org
Subject: Performance advantage of separate tcp,udp,icmp chains?
Date: Thu, 03 Apr 2003 08:26:15 +0200	[thread overview]
Message-ID: <b6gk5l$rio$1@main.gmane.org> (raw)

I'm writing up a bash script with iptables. Thus far my strategy has
been to separate different services into sections that can be switched
"on" or "off" at the top of the script.

My question is whether it is a performance advantage to separate tcp,udp
and icmp traffic near the top of the script to chains handling
tcp-input, tcp-output, udp-input.... and so on.
If so, what do I do with rules that have "all" as protocol (or none
given)? Do I need to have a RETURN rule at the end of each chain?
In addition, should I separate the different interfaces also? That would
give chains like this: tcp-input-eth0, tcp-input-eth1... etc.

Regards,

Eirik Thorsnes




                 reply	other threads:[~2003-04-03  6:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='b6gk5l$rio$1@main.gmane.org' \
    --to=eirik.thorsnes@fys.uib.no \
    --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.