All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Jacob <jacob@internet24.de>
To: Leonardo Carneiro <lscarneiro@veltrac.com.br>
Cc: "netfilter@vger.kernel.org" <netfilter@vger.kernel.org>
Subject: Re: Learning iptables
Date: Sat, 18 Apr 2009 14:59:17 +0200	[thread overview]
Message-ID: <20090418125916.GA14236@internet24.de> (raw)
In-Reply-To: <49E9C87A.1030509@veltrac.com.br>

On Sat, Apr 18, 2009 at 09:32:58AM -0300, Leonardo Carneiro wrote:
> Is there any good reason why someone would set an ACCEPT policy for all  
> chains first to withdraw some later? What the benefit of doing this?

If I'd have to guess at the ruleset authors intentions, I'd say
s/he wanted to prevent service disruptions when reloading the
firewall scripts.

Loading a lot of rules without iptables-restore can take quite some time,
and if you have a DROP policy during the rule loading time,
some packets that your final ruleset would pass thru will be dropped.
Also, if your scripts terminate prematurely, you might not be able
to remote access your machine anymore.

But then again, you should load your ruleset before you bring up
your network, so the first reason should be irrelevant. And the
second shouldn't really matter after the initial testing phase.

  parent reply	other threads:[~2009-04-18 12:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-18 12:32 Learning iptables Leonardo Carneiro
2009-04-18 12:48 ` Brian Austin - Standard Universal
2009-04-18 12:59 ` Thomas Jacob [this message]
2009-04-18 13:20   ` Leonardo Carneiro
2009-04-18 23:34     ` Amos Jeffries
2009-04-18 15:55 ` Bruno Moreira Guedes

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=20090418125916.GA14236@internet24.de \
    --to=jacob@internet24.de \
    --cc=lscarneiro@veltrac.com.br \
    --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 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.