Linux Netfilter discussions
 help / color / mirror / Atom feed
From: william fitzgerald <wfitzgerald@tssg.org>
To: netfilter@lists.netfilter.org
Subject: Query: will redundant rules gobble up firewall resources unnecessarily?
Date: Mon, 02 Jul 2007 14:55:31 +0100	[thread overview]
Message-ID: <468903D3.1000603@tssg.org> (raw)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear Netfilter experts,

I have a query in relation to redundant firewall rules possibly wasting
CPU or memory usage. I would like to know if this is indeed the case.

I noticed if you have 2 or more identical rules (lets say they are
stateful rules) in a firewall table/rule-set (entered accidentally) that
when a packet matches the first of the identical rules that packet
counters are increased. Nothing unusual here. The second rule is never
executed due to the first one and no packet counter readings here
(according to iptables -L -v).

However, given that the 2 rules are stateful in nature does Netfilter
allocate memory (expecting it to be activated at some stage) to the
second stateful rule (and other identical rules) albeit a redundant rule?

regards,
Will.



- --
William M. Fitzgerald,
PhD Student,
Telecommunications Software & Systems Group,
ArcLabs Research and Innovation Centre,
Waterford Institute of Technology,
WIT West Campus,
Carriganore,
Waterford.
Office Ph: +353 51 302937
Mobile Ph: +353 87 9527083
Web: www.williamfitzgerald.org



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGiQPTIcwlebz1MmwRAnNGAJ9ed96cY55eDv1paWjrhuXK1cdp5wCg7+I8
CaPNM2L7QoC7thdrkARgI7w=
=TlaD
-----END PGP SIGNATURE-----


                 reply	other threads:[~2007-07-02 13:55 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=468903D3.1000603@tssg.org \
    --to=wfitzgerald@tssg.org \
    --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