iptables, how to delete the last rule?
From: dr_b (wegenwacht_at_gmail.com)
Date: 09/29/05
- Next message: Juha Laiho: "Re: iptables, how to delete the last rule?"
- Previous message: Jani Mikkonen: "Re: Seeking new cols FAQ maintainer."
- Next in thread: Juha Laiho: "Re: iptables, how to delete the last rule?"
- Reply: Juha Laiho: "Re: iptables, how to delete the last rule?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 29 Sep 2005 03:09:26 -0700
Hello,
Is there an easy way to delete the last rule in a chain?
(other than counting to get the rule number)
The rule is (from iptables -L):
REJECT all -- anywhere anywhere
reject-with icmp-host-prohibited
I'm trying with:
/sbin/iptables -D INPUT -p all -s 0/0 -d 0/0 -j REJECT --reject-with
icmp-host-prohibited
but it gives me:
iptables: Bad rule (does a matching rule exist in that chain?)
thanks,
Patrick
- Next message: Juha Laiho: "Re: iptables, how to delete the last rule?"
- Previous message: Jani Mikkonen: "Re: Seeking new cols FAQ maintainer."
- Next in thread: Juha Laiho: "Re: iptables, how to delete the last rule?"
- Reply: Juha Laiho: "Re: iptables, how to delete the last rule?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|