1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How can I limit a single computer upload?

Discussion in 'Tomato Firmware' started by roadkill, Apr 4, 2007.

  1. roadkill

    roadkill Super Moderator Staff Member Member

    how can I limit a single computer upload bandwidth by mac address
    I tried setting up a different category in QOS for it but it doesn't work so good...

    Thanks
     
  2. der_Kief

    der_Kief Super Moderator Staff Member Member

  3. roadkill

    roadkill Super Moderator Staff Member Member

    Tried it...
    I don't like the way it messes up my config I was hoping for
    few IPTABLES lines...

    I tried to create a single rule with it
    but I have no idea what some of the aliases do , so I prefer not to use it until I understand it better.
    BTW it worked under WINE flawlessly...
     
  4. Kibe

    Kibe LI Guru Member

    I'm also looking for something as you do, roadkill...

    Please let me know if you find any solution since I'm a complet script lamo... :)
     
  5. der_Kief

    der_Kief Super Moderator Staff Member Member

    Hi,
    in Script Generator you can disable unneeded stuff under "Advanced Options" ->

    [​IMG]

    If you do this 3 lines are left in script.And so this should not mess up your config !

    der_Kief
     
  6. roadkill

    roadkill Super Moderator Staff Member Member

    thanks I'll try it
     
  7. roadkill

    roadkill Super Moderator Staff Member Member

    tried it - no go.
    the script generator makes all the lan clients connected limited to what i've set.
    I used:

    tc qdisc add dev br0 ingress
    tc filter add dev br0 parent ffff: protocol ip handle 50 fw police rate 150kbit mtu 12k burst 10k drop
    iptables -t mangle -A PREROUTING -m mac --mac-source 00:00:00:00:00:00 -j MARK --set-mark 50


    I think I found a solution thru the GUI I'm still testing it...
     
  8. der_Kief

    der_Kief Super Moderator Staff Member Member

    maybe for testing you should try it with IP adress instead of MAC. This is what robsonn noticed about it:
    der_Kief
     
  9. roadkill

    roadkill Super Moderator Staff Member Member

    I've classified that computer as a special class in Tomato's qos basic settings and defined the ceil. rate in percentage of the actual upload speed (e.g. 100kbit 10% class ceil.) and while qos is enabled it seems to limit upload usage of the computers classified to that class...
    still playing with it but it seems to work and more you can classify certain services on certain computers maximum allowed upload usage, very smart.
     

Share This Page