* iptables wildcard delete
@ 2011-07-06 15:46 Jonathan Tripathy
2011-07-06 19:09 ` Nikolay S.
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Tripathy @ 2011-07-06 15:46 UTC (permalink / raw)
To: netfilter
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: iptables wildcard delete
2011-07-06 15:46 iptables wildcard delete Jonathan Tripathy
@ 2011-07-06 19:09 ` Nikolay S.
0 siblings, 0 replies; 2+ messages in thread
From: Nikolay S. @ 2011-07-06 19:09 UTC (permalink / raw)
To: Jonathan Tripathy; +Cc: netfilter
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-06 19:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-06 15:46 iptables wildcard delete Jonathan Tripathy
2011-07-06 19:09 ` Nikolay S.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox