From: Joubert Berger <joubertb@gmail.com>
To: netfilter@lists.netfilter.org
Subject: Re: When do iptables take effect when using iptables-restore
Date: Fri, 13 May 2005 15:22:14 -0400 [thread overview]
Message-ID: <63d3731e05051312223ac9968@mail.gmail.com> (raw)
In-Reply-To: <1115999933.4561.59.camel@ngeza>
On 5/13/05, Rakotomandimby (R12y) Mihamina
<mihamina.rakotomandimby@etu.univ-orleans.fr> wrote:
>
> > I now want to update them, so I edit my file and then run
> > iptables-restore to load the new rules.
>
> Why wouldn't you deal with a shell script to do so?
> With a shell script you would exactly know what rules are applied at a
> moment.
>
It is done in a shell script :-)
> > During all this iptables is applying policy on packets. So, what
> > happens between the time I start running iptables-restore and when it
> > finishes it?
>
> If you update your rules, one thing you will have to do is to flush,
> anyway. If you dont, you'd append your updates to the existent rules. So
> once you flushed, I think your "reore" file is read line by line and the
> rules are applied as well as it is read.
>
If I was executing individual iptables commands, I understand what the
impact is. Once I flush the tables there would be no rules there.
Then, as I add each policy, I would know that the policy changes as I
add each rule one at a time.
But I am not sure how iptables-restore works. From what I have read,
it is considered an atomic action. But, what does that mean? Build
the entire rules in kernel memory and then at the end hook this into
the iptables search mechanism? Or does it clear the table, then adds
each rule one at the time at the same time it is also evaluating
packets coming in. Another way of asking it might be, is the atomic
operation at the iptables-restore level or at the kernel level? Not
sure if I am explaining what I am looking after :-)
--joubert
prev parent reply other threads:[~2005-05-13 19:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-13 15:35 When do iptables take effect when using iptables-restore Joubert Berger
2005-05-13 15:58 ` Rakotomandimby (R12y) Mihamina
2005-05-13 19:22 ` Joubert Berger [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=63d3731e05051312223ac9968@mail.gmail.com \
--to=joubertb@gmail.com \
--cc=joubert@berger-family.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 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.