Tech Wizard needed.

Discussion in 'Tomato Firmware' started by ezdub, Sep 9, 2008.

  1. ezdub

    ezdub Addicted to LI Member

    Hi all.

    I need some urgent help.

    I have a flat that I am going to let out to students and we are going to let them have use of the internet. But I need to limit the amount of bandwidth they can use.

    At the moment we have sky broadband with 8meg down 486 kbps up.

    The current setup is.

    Sky modem/router with 2 cat5 cables coming from the modem/router (wirless disabled)

    1 of the cat5's go to a netgear router running the network of the main house on a 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.
  2. Victek

    Victek Network Guru Member

  3. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    ezdub indicated that IPs will not be known. I assume the same goes for MAC addresses, so I think your mod's IP/MAC QOS adds nothing for this situation.

    Normal tomato QOS should do what you want just fine. What do your QOS settings look like?
  4. Victek

    Victek Network Guru Member

    :biggrin: Do you know the function "device list" in Tomato firmware? pls, be positive... anyway, it's free of charge..
  5. bripab007

    bripab007 Network Guru Member

    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.
  6. ezdub

    ezdub Addicted to LI Member

    Thanks for the quick reponces, I have yet to install Victek firmware.

    Would I be able to add the whole range of IP addresses IE: to 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.

    Once again many thanks.
  7. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    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.
  8. kevanj

    kevanj LI Guru Member

    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 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.
  9. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    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.
  10. kevanj

    kevanj LI Guru Member

    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.
  11. kardzzz

    kardzzz Addicted to LI Member

    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., 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 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
  12. Toastman

    Toastman Super Moderator Staff Member Member

    I concur with SgtPepper!

    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.

    I think that should work, and no jumping through hoops!
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice