Hi,
I'm having trouble throttling my download speeds. I am trying to set up a different throttle for the LAN and a different throttle for general internet use.
Here is the code I'm using.
/sbin/iptables -t mangle -I PREROUTING 1 -m iprange --src-range 192.168.0.0-192.168.100.100 -j MARK --set-mark 1
/sbin/iptables -t mangle -I PREROUTING 2 -m iprange ! --src-range 192.168.0.0-192.168.100.100 -j MARK --set-mark 2
/sbin/tc qdisc add dev eth0 handle ffff: ingress
/sbin/tc filter add dev eth0 parent ffff: protocol ip handle 1 fw police rate 90mbit burst 1m drop
/sbin/tc filter add dev eth0 parent ffff: protocol ip handle 2 fw police rate 1mbit burst 10k drop
Not sure why this doesn't work. I can do a general throttle using u32 and matching dst ip but I need 2 throttles.
Thanks
Bookmarks