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

Bandwidth cap

Discussion in 'Tomato Firmware' started by jbaker6953, Jan 23, 2008.

  1. jbaker6953

    jbaker6953 LI Guru Member

    Is there a way to implement a daily bandwidth cap?

    I want to be a nice citizen and open up my WiFi for passers by who want to lookup something on Google real quickly, or check their email. Even though I had blocked all ports other than 80 and 110 for wireless clients, some ass downloaded 2 gigs worth of stuff in the twelve hours I had it open. I want a way to leave it open but put a cap on it ... something like 50 megs per day per MAC or something. I don't want to have to shut out everyone just because of a few douches.

    BTW - The script generator links no longer work. The HyperWRT and the homepage are both down for the last couple of days. Does anyone know what happened to it?
  2. jbaker6953

    jbaker6953 LI Guru Member

    I could even live without a daily cap if I could figure out a way to make QOS rules apply to all but a certain set of MAC addresses (like the "All Except" option under "Access Restrictions"). Since I don't know what a random passerby's MAC address will be, I cannot specify it in advance.
  3. mstombs

    mstombs Network Guru Member

    Sad but seems true:-


    some archive info available in my last post in that thread
  4. mikester

    mikester Network Guru Member

    I would suggest rate limiting outside users and use QOS

    Email me if you want a copy of the WRT54 Script Generator (632kb zipped)
  5. Mercjoe

    Mercjoe Network Guru Member

    While not really a cap, what I do here is set up all connections to default to QOS 'E' unless otherwise exempted by a MAC address rule and have them slammed down to the speed of a 56K modem.

    I learned the trick with my teenage son and used it to control his myspace browsing and to prevent him from hogging the network bandwidth. I applied to to the wireless router we have at the store I work at.

    People can come by the store and check e-mail and such while they wait, yet if they want to download something they are gonna be on for a LOOOOOOOOONG wait. I have a notice posted that free WiFi is available but we recommend it is used for e-mail and light browsing (aka news) due to it being speed limited.

    By doing this, if you get some idiot trying to download something large, it is not worth his time to wait. I also limited the transmit power so that they have to be rather visible to us. We are not going to feed the hacker sitting across the street out of sight and someone sitting in our parking lot for hours at a time is gonna stand out.
  6. jbaker6953

    jbaker6953 LI Guru Member

    Unfortunately I cannot do this. Since I use my router extensively as a SOCKS5 proxy from remote locations, this would also affect me. Since I don't know what machines I will be using to access the router by SSH, there's no way to use MAC filters. Since there doesn't appear to be a way within QOS to distinguish between wireless clients and others, I guess I'm stuck until a better implementation comes along.
  7. jbaker6953

    jbaker6953 LI Guru Member

    How do I rate limit all wireless clients and not wired clients or SSH proxy requests?
  8. robsonn

    robsonn Network Guru Member

    The file was deleted by an accident - old link should work now.
    If you want to download WRT54 Script Generator 1.02 you can also use below link:

    If I find some free time i will make a simple website on my hosting - so generator will be available there all the time.

Share This Page