Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Nikolay S." <nowhere@hakkenden.ath.cx>
To: Jonathan Tripathy <jonnyt@abpni.co.uk>
Cc: netfilter@vger.kernel.org
Subject: Re: iptables wildcard delete
Date: Wed, 06 Jul 2011 23:09:27 +0400	[thread overview]
Message-ID: <1309979367.11393.4.camel@hakkenden> (raw)
In-Reply-To: <4E148360.1090001@abpni.co.uk>

iptables -S | \
   sed '/-[jg] myChain'/ s/^-A/-D/;t;d' | \
   xargs -L1 iptables

В Срд, 06/07/2011 в 16:46 +0100, Jonathan Tripathy пишет:
> Hi Everyone,
> 
> Is there some method where I can delete specific rules based on only 
> some known rule elements?
> 
> For example, let's say I wanted to delete all rules with a target of 
> "myChain"
> 
> Thanks
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



      reply	other threads:[~2011-07-06 19:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-06 15:46 iptables wildcard delete Jonathan Tripathy
2011-07-06 19:09 ` Nikolay S. [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=1309979367.11393.4.camel@hakkenden \
    --to=nowhere@hakkenden.ath.cx \
    --cc=jonnyt@abpni.co.uk \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox