Except the rule doesn't get removed. If I try and remove it by line number, it works. If I try this exact thing on my Ubuntu 9.10 box, it works fine. I would prefer to not have to remove by rule number, since this is done by a script and I would have to grep the -L output for the correct line number, which I'd rather not do.
I've also tried something that doesn't use an iprange.
Insert a rule
Code:
iptables -t mangle -A POSTROUTING -d 192.168.1.20 -j MARK --set-mark 10
And that works. So it seems like deleting a rule using ipranges doesn't work. Anyone else experience this or have similar problems with deleting iptable rules?