From: Aleksandar Milivojevic <amilivojevic@pbl.ca>
To: netfilter@lists.netfilter.org
Subject: Re: Help need :) How to delete all rules in chain ?
Date: Tue, 28 Sep 2004 15:14:05 -0500 [thread overview]
Message-ID: <4159C60D.4000602@pbl.ca> (raw)
In-Reply-To: <1096400937.3163.134.camel@alkaloid.netup.ru>
Abylai Ospan wrote:
> Hello, all !
>
> May be this question in FAQ but I can't find it ;-( I have 3 (or more)
> identical rules in one (for example - INPUT) chain.
> If I do command:
> iptables -D FORWARD -s 10.0.0.10 -d 10.0.0.20 -j ACCEPT
>
> the first rule is deleted only. Is there any command line option to
> remove all identical rules in one chain ?
No such options. But nothing prevents you from doing it in loop:
while iptables -D FORWARD insert options here -j ACCEPT 2>/dev/null
do
: # do nothing
done
Just don't call me script kiddie ;-)
--
Aleksandar Milivojevic <amilivojevic@pbl.ca> Pollard Banknote Limited
Systems Administrator 1499 Buffalo Place
Tel: (204) 474-2323 ext 276 Winnipeg, MB R3T 1L7
prev parent reply other threads:[~2004-09-28 20:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-28 19:48 Help need :) How to delete all rules in chain ? Abylai Ospan
2004-09-28 15:57 ` Jason Opperisano
2004-09-28 23:29 ` Abylai Ospan
2004-09-28 19:26 ` Juan Hernandez
2004-09-28 19:28 ` Alexis
2004-09-28 23:28 ` Abylai Ospan
2004-09-28 20:38 ` Nick Taylor
2004-09-28 20:14 ` Aleksandar Milivojevic [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=4159C60D.4000602@pbl.ca \
--to=amilivojevic@pbl.ca \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox