Quote:
I have about 20 wireless routers. Users browse the web, use MSN mainly... I want that nobody eats up the bandwidth...
|
and
You have a symmetric connection.
From these two facts I'd recommend only traffic priorization,
(...because I have a solution
and you have not said why TBF will be more useful to you - after all there is nothing wrong with using all the available bandwith)
- to ensure that:
1.) the whole bandwidth can be used by anyone as long as it is not disturbing anyone else too much
2.) certain types of traffic get priority over other types of traffic (e.g.: ssh is more important to you than bittorrent)
3.) the possibility to give some users/machines in the network a higher overall-priority (it might be more important for them to have full performance than it is for "ordinary" users/machines)
The script given by you is insufficient - and also wrong IMO
this part for example matches by port 22 - which is ssh - and also uses some u32 match
and it is supposed to "be good" for ssh, msn and ftp at the same time - which is clearly wrong
Code:
#La prioridad intermedia es para ssh, msn y comandos ftp.
$TC filter add dev $DEV protocol ip parent 1:0 prio 2 \
u32 match ip dport 22 0xffff flowid 1:10
From what you say you need not use some TBF-based solution but should be fine with traffic-priorization.
If you wanted to use TBF the script can be a basis but will need to be changed quite a bit...not by me and not now though
You may google for wondershaper which some people say is configurable and does a good job.
Again I link to a wiki page of the wireless network project I'm a part of.
Post #2 had a link (to the link) already.
http://wiki.leipzig.freifunk.net/Traffic-Shaping
The first script of the two there was made by me - and it does all that was described above (1. through 3.)
It is in use for more than two years and does what I want for me.
It puts a mark on each connection by certain criteria (filesharing traffic gets a different mark than small packets, large packets get their own mark as well as two kinds of TOS are marked differently), and based on that mark the traffic belonging to those connections is prioritized using 6 levels of priority.
If you have questions - please ask. I can provide a version with comments in english to help you understand what it does and how.
(will put that up to that wiki when I have the time)