netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonh Wendell <jonh.wendell@gmail.com>
To: Jan Engelhardt <jengelh@inai.de>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH] iptables-save: add --chain argument, limits output to a chain
Date: Tue, 26 Feb 2013 20:30:01 -0300	[thread overview]
Message-ID: <CABXqP=jsFJKvfb4QaFuN2jAshUn-ECpZ2FA6KLBYOencYTnXyQ@mail.gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.01.1302262317240.13412@nerf07.vanv.qr>

2013/2/26 Jan Engelhardt <jengelh@inai.de>:
>
> On Tuesday 2013-02-26 17:18, Jonh Wendell wrote:
>>
>>My particular use case is: I want to flush all iptables rules except
>>those ones from a specific chain.
>>So, I save them with iptables-save -C <chain-name>, flush, and then
>>run iptables-restore on them.
>
> But if chain-name is not a base chain, then you wipe out the
> main rules for all practical purposes.

actually, after flush all rules, I load a preset set of rules and only
then I run iptables-restore.

-- 
Jonh Wendell
http://www.bani.com.br

      reply	other threads:[~2013-02-26 23:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-26 11:33 [PATCH] iptables-save: add --chain argument, limits output to a chain jonh.wendell
2013-02-26 14:48 ` Jan Engelhardt
2013-02-26 15:02   ` Jonh Wendell
     [not found]   ` <CABXqP=jq3rEE6b1xpgA0QtuwAQ04U5b3voMdTsuGmLB-qrsDxg@mail.gmail.com>
2013-02-26 15:40     ` Jan Engelhardt
2013-02-26 16:18       ` Jonh Wendell
2013-02-26 22:18         ` Jan Engelhardt
2013-02-26 23:30           ` Jonh Wendell [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='CABXqP=jsFJKvfb4QaFuN2jAshUn-ECpZ2FA6KLBYOencYTnXyQ@mail.gmail.com' \
    --to=jonh.wendell@gmail.com \
    --cc=jengelh@inai.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).