Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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).

share|improve this question

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 flowid 1:1

This limits all traffic coming from 192.168.x.y to 400 kilo*bits* per second (50 kilo*bytes* per second)

share|improve this answer
I'm not really good at Network stuff, would you please give some bits of explanation on these commands? – Phuong Nguyen Jan 30 '10 at 15:07
I've edited my post. – fahadsadah Jan 30 '10 at 18:39
How would I modify your command if I don't want any client (not a group of clients) to get no more than 50 kilo bytes per second? – Phuong Nguyen Jan 31 '10 at 8:03
All of your clients are assigned addresses in the 192.168.x.y range, right? – fahadsadah Jan 31 '10 at 8:43
Yes, but what if I have two clients of 192.168.1.x and I want each clients to get a maximum speed of 50kBps? – Phuong Nguyen Feb 2 '10 at 14:56

The paid-for version of dd-wrt offers bandwidth limiting out of the box.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.