On Monday 26 May 2003 13:40, Ruslan Spivak wrote: > Hello! > > Can you help me with the following: > > i want to devide traffic to clients from my server and > from internet. my intention is to mark with iptables > packets with src == 193.220.70.3 as local, and with > another src as going from internet. i need fairly > divide 60 Mbit of local traffic(traffic from my > server) between ethernet clients(192.168.1.2 - > 192.168.1.20) > > i think i need to create class with rate 60Mbit(attach > it to root qdisc) and to make 20 child classes with > rate 32Kbit ceil 60Mbit and to attach to these child > classes qdiscs with sfq. Then mark packets with > src=192.168.1.2-192.168.1.20 and to make thrm go to > these clasess? Am i right, or wrong? Maybe there is > better approach? I think you are on the right track. But I think it's better that you create 2 classes. One for the internet traffic and one for the local traffic. So you seperate the traffic from the internet from your local traffic. The internet traffic has ceil = rate = 256kbit. The local traffic has rate = 60mbit - 256kbit and ceil = 60mbit. If you want more control, you can add 1 class / pc to each of these 2 classes. Stef -- stef.coene@xxxxxxxxx "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net