From: "Oleg A. Arkhangelsky" <sysoleg@progtech.ru>
To: netfilter@lists.netfilter.org
Subject: Re: remove duplicate rules
Date: Sat, 26 Nov 2005 15:55:08 +0300 [thread overview]
Message-ID: <686184511.20051126155508@progtech.ru> (raw)
In-Reply-To: <6.2.1.2.0.20051126180857.0336a1b0@147.202.41.46>
Hello amit,
Saturday, November 26, 2005, 3:39:14 PM, you wrote:
ap> same iptables. I want to stop this , if the same rule exists the iptables
ap> should give some error or should add the same rule again .
ap> Please help me .
I think you should manually check the existence of possible
duplicate before adding rule. Also you can do somethig like:
iptables -D INPUT -d 192.168.0.2/32 -i eth1 -j DROP
iptables -A INPUT -d 192.168.0.2/32 -i eth1 -j DROP
Then you will never get duplicates.
But the first way is more correct.
--
Best regards,
Oleg
next prev parent reply other threads:[~2005-11-26 12:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-26 12:39 remove duplicate rules amit pasari
2005-11-26 12:55 ` Oleg A. Arkhangelsky [this message]
2005-11-28 13:19 ` John A. Sullivan III
-- strict thread matches above, loose matches on Subject: below --
2005-11-28 17:15 Derick Anderson
2005-11-28 23:50 ` /dev/rob0
2005-11-29 19:28 ` Steven M Campbell
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=686184511.20051126155508@progtech.ru \
--to=sysoleg@progtech.ru \
--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