From: Patrick McHardy <kaber@trash.net>
To: "Christoph A." <casmls@gmail.com>
Cc: Netfilter Developer Mailing List <netfilter-devel@vger.kernel.org>
Subject: Re: security impact of creating rulesets with iptables (cmd)
Date: Mon, 10 Aug 2009 08:58:18 +0200 [thread overview]
Message-ID: <4A7FC50A.80608@trash.net> (raw)
In-Reply-To: <4A7F431E.70706@gmail.com>
Christoph A. wrote:
> Hi,
>
> I read Jan's "Towards the perfect ruleset" paper [1]
>
> [1] http://jengelh.medozas.de/documents/Perfect_Ruleset.pdf
>
> and I would have a question about the mentioned security risk when
> creating hole rulesets with the iptables command (chapter 3).
>
> I understand why it is a bad idea to create n rules by using multiple
> times iptables -A... (instead of iptables-restore) because it
> "downloads" the entire table n-times and sets the entire table n-times
> (performing n*2 operations) while passing n^2 rules between kernel and
> userspace.
>
> The second and more interesting point is that this would also introduce
> a timeframe where packets could slip through while these exchanges
> between kernel and userspace are happening. Why does setting the policy
> to DROP not solve this problem?
This is not correct, the replacement is atomic.
next prev parent reply other threads:[~2009-08-10 6:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-09 21:43 security impact of creating rulesets with iptables (cmd) Christoph A.
2009-08-09 22:18 ` Jan Engelhardt
2009-08-09 23:28 ` Christoph A.
2009-08-10 6:58 ` Patrick McHardy [this message]
2009-08-10 8:31 ` Jan Engelhardt
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=4A7FC50A.80608@trash.net \
--to=kaber@trash.net \
--cc=casmls@gmail.com \
--cc=netfilter-devel@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 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.