From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel Paul" Subject: Possible bug for delete specific rule w/ RedHat 8.0, Kernel 2.4.18, Iptables 1.2.6a Date: Mon, 14 Oct 2002 13:05:59 +0200 Sender: netfilter-admin@lists.netfilter.org Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01C27382.70E1E3B0" Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: netfilter@lists.netfilter.org This is a multi-part message in MIME format. ------=_NextPart_000_0001_01C27382.70E1E3B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hello, I have problems deleting a rule from any chain by specifying the rule itself, for example: iptables -A FORWARD -p tcp -s $NET_IN --sport 1024: -d 0/0 --dport smtp -j ACCEPT and then iptables -D FORWARD -p tcp -s $NET_IN --sport 1024: -d 0/0 --dport smtp -j ACCEPT gives me a "Bad rule: Does matching rule exist in chain" error. Btw, the variables used here are of course defined. When I use -v switch on both commands I can see that also the created rules (smtp to 25 etc.) are the same, so it is not a problem of parsing itself. Any help would be very appreciated. Daniel Paul dpaul{NOSPAM}@gmx.net ------=_NextPart_000_0001_01C27382.70E1E3B0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
 
I have = problems=20 deleting a rule from any chain by specifying the rule itself, for=20 example:
 
iptables -A FORWARD=20 -p tcp -s $NET_IN --sport 1024: -d 0/0 --dport smtp -j=20 ACCEPT
 
and=20 then
 
iptables -D FORWARD=20 -p tcp -s $NET_IN --sport 1024: -d 0/0 --dport smtp -j=20 ACCEPT
 
gives = me a "Bad=20 rule: Does matching rule exist in chain" error. Btw, the variables=20 used
here = are of course=20 defined.
 
When I = use -v switch=20 on both commands I can see that also the created rules (smtp to 25=20 etc.)
are = the same, so it=20 is not a problem of parsing itself.
 
Any = help would be=20 very appreciated.
 
Daniel = Paul
 
dpaul{NOSPAM}@gmx.net
 
 
= ------=_NextPart_000_0001_01C27382.70E1E3B0--