Router – Limit speed/client over wireless network with dd-wrt

routerwifi

How would I setup my LinkSys WRT54GS v7 with dd-WRT installed on so that I can limit the download/upload speed of each client over the wireless network?
(I don't want any guys to be able to download more than 50kBps).

Best Answer

You can use tc rate limiting, by running the following commands on your router (see here for details):

  tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 10mbit 

  tc class add dev $DEV parent 1: classid 1:1 cbq rate 400kbit allot 1500 prio 5 bounded isolated 

  tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip dest 192.168.0.0/16 flowid 1:1

This limits all traffic coming from 192.168.x.y to 400 kilobits per second (50 kilobytes per second)

Related Topic