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

Bandwith control

Discussion in 'DD-WRT Firmware' started by yves, Feb 11, 2008.

  1. yves

    yves Network Guru Member

    Hi,
    I share my DSL internet connection through wifi briges of several Km with my family. But I think some of my nephews are using all my bandwith AND volume with P2P things. As my ISP gives me a limited transfer of 20 Gb/month (all providers do so in Belgium) I want to know wich IP uses this amount of volume.
    I want to know if DD-WRT (now using Hyperwap on my 54GL) has the possibility to display or even control the bandwith WAN-LAN for each LAN-IP or bound mac-adress. I don't care with LAN-LAN traffic, wre all on the same subnet. I am using static DHCP now so every pc connected obtains always the same IP adress. I allready tried some sniffing software but as I also have some switches in the network I can't see behind them what's happening.
    Setup the Qos in the router perhaps gives me a bigger priority but does not really limit the others. Also tried some acces restrictions but it is very hard to block ports for certain applications al they use different ports. What I would like to have is :
    Inbound-outbound traffic/IP adress/a certain period (just to measure)
    Limit bandwith/IP (fe 256Mb max) Anyone can help ?
     
  2. szfong

    szfong Network Guru Member

    Hi,

    You want "Per User Bandwith Control". You have to buy that edition of "DD-WRT v23 SP2 Special" at 19.90EUR.

    It's at: http://www.dd-wrt.com/shop/catalog/product_info.php?cPath=22&products_id=31

    Edit:
    Using QoS can also work, BUT if no one using the higher priority, your "relatives" can still push you above the traffic "cap". 20GB/month is ridiculous, I have a friend with a large family and a bit over 900GB-1TB/month passes over their router.

    -Good luck
     
  3. yves

    yves Network Guru Member

    Thx, no problem to pay 19.90 euro if its worth. Can you confirm this version has the same possibilities of the Hyperwap Thibor 15C and runs as stable. (5 months running time now).
    I need Ppoe connection, Static DHCP, DYNDNS, Port forwarding, Port triggering, Qoq for VOIP, I hope I find everyting back in this firmware.
     
  4. szfong

    szfong Network Guru Member

    The version I'm referring to is v23 sp2, I believe BrainSlayer, already has a large # of release candidates available that has extra features and greater control. Ask BranSlayer to be sure, I don't really use such a feature because in the U.S. at least, the Internet is "all you can eat" :) for now at least. Overall dd-wrt is very reliable, such a feature implemented in the gui just makes it easier, you can probably also use Openwrt.

    -Good luck
     
  5. HennieM

    HennieM Network Guru Member

    To count the bytes that gets routed by a certain IP, you can do
    Code:
    iptables -t nat -I PREROUTING -s <IP.address>
    (It's important to use "-I" to get this rule at the beginning of your iptables rules.)
    If you now do
    iptables -L -nv -t nat
    you'll see the bytes from this source IP.

    If you now write some scripts to
    i) zero the counts at the beginning of the month
    ii) save and accumulate the counts somewhere periodically in case the power goes off
    iii) insert an iptables rule blocking routing from that IP once the maximum byte count is reached
    you've got yourself a sort-of Gig-control system.

    BTW, you guys moaing about 20GB/month are close to heaven (with the unlimited guys BEING in heaven). Most South African ISPs gives you between 1 and 3 GB per month, or pay extra for more. Pathetic is'nt it...?
     
  6. yves

    yves Network Guru Member

    Thx,
    I'll try first het ver 23 SP2 Special. If I upgrade from hyperwrt Thibor 15C do I first flash the Micro or Mini (???) from then webIF, afterwards the generic version also from the webIF ?
     
  7. szfong

    szfong Network Guru Member

    depress reset 30s, wait a minute, flash from WebGUI, reset from/using WebGUI (precausionary), depress reset 30s again. It's a bit redundant, but it seems to be safest.
     

Share This Page