1 of the cat5's go to a netgear router running the network of the main house on a 10.0.0.1 range. (thus hiding the house network from the students)

The other cat5 is going to a Linksys WRT54GL v1.1 with tomato 1.21 firmware installed. From the WRT54GL there will be a cat5 leading into the flat going into a 4 port switch, so the students can hook up their PC's and use the internet.

What I need to do is limit the speed of the WRT54GL to say 1 meg down and 10kbps up. I am not really worried what they use the net for as long as it wil not effect the main house speed.

I have tried Qos but there is not speed change on speed tests. I will not know what IP addresses they will use as I think it will be auto when they plug into the switch.

If anyone could give me any idea's I would appreciate it.

Note I am not good at what scripts to put so step by step help would be great.

I know it's long winded but i thought the more info the better.

Also willing to pay for the right result.

Many thanks.

PS: Would like the wireless to work on the WRT54GL if poss but not important.

As Victek alludes to in his post, the MAC address of all devices that connect to the router are easily seen right in the Tomato web gui, so his firmware mod would, in fact, be the best solution for the original poster's problem.

Would I be able to add the whole range of IP addresses IE: 192.168.1.2 to 192.168.1.134 before. So any ip they are given when they plug into the switch in the flat it will automatically control the speed, or will I have to wait until an IP address is assigned.

I'm not trying to be negative. From what I've heard your mod does great at what it is trying to do. I just think that the default tomato QOS is a better fit for what ezdub wants.

If I understand correctly, ezdub just wants to limit the total bandwidth for the router. So he could a) use the default QOS and set the bandwidth or b) use the Victek mod QOS and have to update the settings every time the students connect a new device (and yes I'm aware the MAC addresses are in the device list).

If the default tomato QOS is set up properly, it should be a much simpler solution.

If they have only a 4 port switch to plug into, and you know there are going to be a limited number of IPs in use, why not reduce the network size they can use by changing the subnet mask of the student LAN. This way you will limit the range of IPs the DHCP server will give out and reduce the number of IPs you have to manipulate in QoS. Do the students get to use wireless, or just wired connections?

It will also limit the ability of people to plug statically configured devices into the switch, and bypass your QoS settings.

For instance, a subnet mask on the student LAN of 255.255.255.248 will provide 6 address for use on the network. One will be the router LAN IP, leaving 5 for the network, so in QoS you only have to manage 5 IPs.

If they have only a 4 port switch to plug into, and you know there are going to be a limited number of IPs in use, why not reduce the network size they can use by changing the subnet mask of the student LAN. This way you will limit the range of IPs the DHCP server will give out and reduce the number of IPs you have to manipulate in QoS. Do the students get to use wireless, or just wired connections?

It will also limit the ability of people to plug statically configured devices into the switch, and bypass your QoS settings.

For instance, a subnet mask on the student LAN of 255.255.255.248 will provide 6 address for use on the network. One will be the router LAN IP, leaving 5 for the network, so in QoS you only have to manage 5 IPs.

Click to expand...

I really feel like I must be missing something here. If you use the default tomato QOS you can accomplish what he wants without jumping though those hoops, right? It wouldn't matter what IP they have (dynamic or even static); the total bandwidth for the router is limited. Period. Just turn on QOS, set the max values and have all traffic fall under the same classification. You could even be nice and prioritize their DNS and WWW traffic above the rest

Why add any more complication than that? Seriously, if I'm missing something where the QOS in Viktek's mod would be better for this situation, please point it out to me. I realize it can be shoehorned into meeting his demands, but why bother when the default tomato QOS can do it with less fiddling.

I really feel like I must be missing something here. If you use the default tomato QOS you can accomplish what he wants without jumping though those hoops, right? It wouldn't matter what IP they have (dynamic or even static); the total bandwidth for the router is limited. Period. Just turn on QOS, set the max values and have all traffic fall under the same classification. You could even be nice and prioritize their DNS and WWW traffic above the rest

Why add any more complication than that? Seriously, if I'm missing something where the QOS in Viktek's mod would be better for this situation, please point it out to me. I realize it can be shoehorned into meeting his demands, but why bother when the default tomato QOS can do it with less fiddling.

Click to expand...

You are most likely correct...I don't use QoS, and I haven't really even looked at how it works, but if you can limit the entire WAN bandwidth usage globally, then that would definitely be the simplest approach.

ezdub, i am currently using Victek's modded tomato 1.21 and can vouch that it fits your circumstance.
1) You should setup dhcp serve to issue 20-25 IPs, i.e. 192.168.1.20-45, just ensure its on a different range so its doesn't see your other network
2) switch on QoS and input the max up and down speeds you want to cap; So it you have full 8mb/486, then you may want to cap the students to 4mb down/200up.
3) Set the 'default class' to lowest.
4) Leave the Classifications as they are as they should work
5) 'Go into IP/Mac BW Limit' and input all parameters for each IP in the range you set,
Download B/W 4000
Upload b/w 200
i.e 192.168.1.20 DL rate = 160 (4000/25), DLCeil =4000, UL rate =8, UL ceil =200, TCP limit =80 or 100, UDP limit =50/s.
*do that for all 25 IP in range

Save and it should be fine.

What that does is provide bandwidth to users when its not being used and equally share the bandwidth to users when everyone is online, torrents or gaming activity would not flood the network hopefully.
I hope that helps
Rgds

Assuming that you can use Tomato QOS on the LAN ports - then just enable QOS - and in BASIC setup, set the default to, say, HIGHEST. Set max bandwidth OUT and IN to whatever you want to limit them to. In QOS Basic, set 100% rate and ceiling for HIGHEST.

As you have defined no QOS rules in Classification, everything should end up in the default class, with a bandwidth defined by your default class setting as above. No need to know anything about the users, anyone using that router will be controlled.

You will probably have to play about a bit with the OUT and IN max bandwidth settings a little to approximate your 1Mb/s limit.