iptables broken in build 13832 or just missing features?

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
robackja
DD-WRT Novice


Joined: 17 Feb 2010
Posts: 45

PostPosted: Sun Feb 21, 2010 6:36    Post subject: iptables broken in build 13832 or just missing features? Reply with quote
Hi.

Insert a rule
Code:
iptables -t mangle -A POSTROUTING -m iprange --dst-range 192.168.1.2-192.168.1.20 -j MARK --set-mark 10


Remove the rule
Code:
iptables -t mangle -D POSTROUTING -m iprange --dst-range 192.168.1.2-192.168.1.20 -j MARK --set-mark 10


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


Remove the rule
Code:
iptables -t mangle -D 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?

thanks.

_________________
Linksys WRT610N v2 (DD-WRT) :: D-LINK DIR-825 (OpenWrt) :: The World in 35mm :: Bandwidth Shaping with DD-WRT
Sponsor
LOM
DD-WRT Guru


Joined: 28 Dec 2008
Posts: 7632

PostPosted: Sun Feb 21, 2010 8:18    Post subject: Reply with quote
There is no support for range in the scaled down iptables module dd-wrt is using.
_________________
Kernel panic: Aiee, killing interrupt handler!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum