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

IP/MAC Bandwidth limiter for Tomato mod release. User Manual.

Discussion in 'Tomato Firmware' started by Victek, Jul 21, 2008.

  1. Victek

    Victek Network Guru Member

    English Manual for IP/MAC Bandwidth Limiter

    To activate the function to limit speed by IP you need to install this mod version of the original Tomato firmware:

    http://www.linksysinfo.org/forums/showthread.php?t=58521

    And then follow these steps:

    1. Administration/Device list.
    Add any desired PC's from this list to "Static DHCP", to do this click on the IP include and the IP/MAC will be added automatically to "Static DHCP." Static IP can of course be filled in manually if desired.

    2. IP/MAC QoS/ QoS Limit.
    Next, in this picture you can see I entered the IP's of some PCs from the "static dhcp" list.

    [​IMG]

    Explanation of each parameter of the image.

    Enable QoS limit = To enable or disable this feature.
    Download Bandwidth = Maximum speed downlink connections.
    Upload Bandwidth = Maximum upload speed of the connection.

    To find out what is the maximum down/upload speed use these links..

    http://testdevelocidad.es
    http://speedtest.net

    Record values and fill in these two boxes. (enter 100% of the values)

    Now let's start writing the IP's of PC's and the limitations that we introduce for each connection.

    [​IMG]


    TC Tag . This number is awarded by the router sequentially to each new IP that is added to the list, do not modify.

    IP Address . In this box you must enter the IP address for the PC to be controlled it's down/upload speed.

    Dl Rate . Here we enter the desired minimum downlink speed of the PC when all other PCs on the list are also downloading. The router will try to ensure that the PC gets at least this much bandwidth allocated.
    What does this mean? It means that the sum total of this column for all PCs on the list should not overcome the total "Download Bandwidth."
    If the amount exceeds this "Download Bandwidth", the entered data will serve no purpose when all the PC's are downloading data.
    Also take into account that if you entered an IP which is connected via wifi, due to the conditions of propagation and signal quality, is possible that the PC will be unable to reach the speed entered in this box. For example, writing a speed of 10000kbps in this box when the wireless connection only allows a maximum (theoretical) speed of 5000kbps.



    Dl Ceiling This will be the maximum download speed that the PC is going to achieve when “extra†bandwidth is available because other PC’s on the network are inactive or not utilizing their own bandwidth figures.

    Example 1

    Speed downlink connection = 16000 kbps.

    PC1 Dl Rate 4000 Dl ceil 7000kbps
    PC2 Dl Rate 4000 Dl ceil 9000kbps

    Behavior (assuming that the conditions are suitable to achieve maximum speed)

    PC1 begins to download and as yet has not begun PC2 reaches a maximum speed of 7000kbps download.
    PC2 starts downloading and reaches a speed of 9000kbps.

    The amount of download Ceil for both PCs = 16000kbps.

    Example 2

    Speed downlink connection = 16000 kbps.

    PC1 Dl Rate 4000 Dl ceil 7000kbps
    PC2 Dl Rate 4000 Dl ceil 9000kbps
    PC3 Dl Rate 8000 Dl ceil 9000kbps

    PC1 begins to download and as yet has not begun PC2 and PC3 reaches a maximum speed of 7000kbps download.
    PC2 starts after downloading and reaches a speed of 9000kbps.
    PC3 begins to download ... and the speed of PC1 to drops to 4000, the speed of PC2 drops to 4000 and speed of PC3 will settle at 8000kbps, total = 16000kbps.

    Example 3

    Speed downlink connection = 16000 kbps.

    PC1 Dl Rate 4000 Dl ceil 7000kbps
    PC2 Dl Rate 4000 Dl ceil 9000kbps
    PC3 Dl Rate 4000 Dl ceil 9000kbps

    PC1 begins to download and as PC2 has not yet started downloading, reaches a maximum speed of 7000kbps download.
    PC2 starts downloading and reaches a speed of 9000kbps.
    PC3 begins to download ... and the speed of PC1 goes down to 1/3 of the maximum speed, PC2 also to 1/3 of the maximum speed and the speed of PC3 is also 1/3, Total = 16000kbps. Why? - because the amount of drop ceilings exceeds the maximum download ceil rate and Dl Rate is the same for all three PCs.

    Gotcha?

    UL Rate - Like DL Rate but to upload.
    UP Ceiling - Like the Dl Ceiling but to upload.

    Behaviour for UL and UL Rate CEIL, will be the same as the download settings.

    Priority - This is a very important function. It affects the position of the rule in the router’s netfilter, therefore the higher the priority the PC over the rest in DNS traffic, http, games ... (mainly). It improves ping times, but only because it is earlier than other PCs in the netfilter, not because of other circumstances.

    TCP Limit
    - Maximum number of active connections for this IP. It serves to limit this issue and is particularly attractive to avoid saturation of P2P programs (emule, torrent, Ares, etc).

    UDP limit -UDP datagrams limit - maximum UDP connections that can be opened per second, serving to do the same thing with UDP connections, to avoid saturation of P2P (especially for Ares).

    IMPORTANT -Any IP that is NOT included in this rule will operate at maximum speed of down/up unless using the "Limit unlisted machines" is enabled in the "ARP Binding." In this case the IP will have ALL Internet access restricted (zero).


    Enjoy! :biggrin:

    Edited by Toastman for english reader :biggrin:
     
  2. LeoKesler

    LeoKesler Addicted to LI Member

    In the maximum download/upload limit, we need to put the full speed or the real speed (likely 10-15% less) ?

    Will the speed of internal network be affected ?

    I dont installed your firmware yet, but and the QoS ? Must be enabled ? The QoS rules will be any effect with this bandwidth limiter ?

    Thanks and excuse me my bad english.
     
  3. Victek

    Victek Network Guru Member

    In the maximum download/upload limit, we need to put the full speed or the real speed (likely 10-15% less) ?

    To find out what is the maximum down/upload speed use these links..

    http://speedtest.net

    Record values and fill in these two boxes.


    Will the speed of internal network be affected ?

    ... this plugin is between your Lan and WAN, no influence

    I dont installed your firmware yet, but and the QoS ? Must be enabled ? The QoS rules will be any effect with this bandwidth limiter ?

    The rules of IP/MAC plugin and QoS are independnet, you can set as you like.
     
  4. i1135t

    i1135t Network Guru Member

    I am confused in this example, why does it cut all download bandwidth to 1/3 each, when you add them all up and = only 12000 kbps and max download for all three together is 16000? Shouldn't it go to 5333.33 kbps each?
     
  5. Victek

    Victek Network Guru Member

    Where do you saw I write 4000kbps as equivalent to 1/3 of the top download? I wrote minimun download 4000kbps, that's all , so, 1/3 of total download should be 5.333,33kbps for each connection in this example.
     
  6. i1135t

    i1135t Network Guru Member

    Because in the example you have DL Rate as 4000 kbps for each computer, when max download for all is set to 16000 kbps. I did the math and 3 computers set to 4000 kbps didn't equal 16000 kbps. That's why I thought that when all computers where downloading at the same time, they can only get up to 4000 kbps each, but I see that's not the case. I guess I didn't understand your english translation too well.

    I didn't know that DL Rate = Minimum, that's why...

    Thanks for your hard work, Vic. I don't want to be such a pain for you. I just want to be sure I understand this right. Thanks again...
     
  7. Victek

    Victek Network Guru Member

    :smile: You welcome, Now you know that DL rate is the minimum DL (If the provider or url can supply you the rate you fixed as minimum.. of course).

    Please write the wording you might consider understandable for English people, I'll correct for better comprehension, sure, I'm not english ;) :biggrin:
     
  8. duck35

    duck35 Addicted to LI Member

  9. Victek

    Victek Network Guru Member

  10. oboda

    oboda Addicted to LI Member

    hi guys, is IP/MAC Bandwidth limiter...limited only to 20 mac addresses? i dunno if there's something wrong with my router. 100 static DHCP's is a good news if IP/MAC Bandwidth limiter can support to 100 mac addresses also. imho.
    thanks!
     
  11. barry80

    barry80 Addicted to LI Member

    am i set correctly?!?

    i got 3 PCs under one roof, 2 PCs been limited their speed as follow & 1 running free with max speed as it stated?

    [​IMG]
     
  12. ExZeRoEx

    ExZeRoEx Addicted to LI Member

    I tried to use the Limit unlisted machines option, but when I use a computer that isn't registered it seems like the internet is fine. I thought this was supposed to be able to cut off internet to devices I haven't registered to the IP/MAC QoS
     
  13. ExZeRoEx

    ExZeRoEx Addicted to LI Member

    Any help here?
     
  14. Toastman

    Toastman Super Moderator Staff Member Member

    I also tried it just to check out your experience, and it didn't seem to work for me either.

    You can instead use a combination of STATIC DHCP and Access Restrictions to prevent internet access.

    PM me if you need help.
     
  15. sapehr

    sapehr Addicted to LI Member

    QoS for LAN

    Is there any way to use this option in a LAN Network? Because I read some threads, and I think that is option is only available to limit bandwidth from ISP (WAN).

    I am restricted, because I need to apply it using IP address or MAC address!!!

    Thanks,

    Edgar
     
  16. Toastman

    Toastman Super Moderator Staff Member Member

    Using Tomato "Access Restrictions"

    You can use access restrictions for all users, whether on a LAN wireless. Unlike the "wireless filter", which doesn't affect anyone on the LAN.

    Set up a rule to "allow access to the list":

    all day, every day
    normal restriction
    All except
    **Add your MAC's**
    At bottom, block all internet resources

    That's it!
     
  17. Toastman

    Toastman Super Moderator Staff Member Member

    Limiting number of connections

    Another thought:

    Many people would like to limit the number of ports that a user can open, or the UDP, and try to use the extra IP/MAC QOS - but then this screws up their normal QOS.

    Here is a collection of useful scripts: Put one or more of the following in the "Administration/Scripts/Firewall" box

    #Limit UDP from all users to 4 per second
    iptables -A FORWARD -p UDP -s 192.168.1.0/24 -m limit --limit 4/s -j ACCEPT

    #Limit UDP connections per user
    iptables -I FORWARD -m iprange --src-range 192.168.1.10-192.168.1.250 -p ! tcp -m connlimit --connlimit-above 50 -j DROP

    #Limit max TCP connections per user
    iptables -I FORWARD -p tcp --syn -m iprange --src-range 192.168.1.10-192.168.1.250 -m connlimit --connlimit-above 250 -j DROP

    #Limit outgoing SMTP simultaneous connections to 10
    iptables -I FORWARD -p tcp --dport 25 -m connlimit --connlimit-above 10 -j DROP

    #Limit total TCP connections to 4000
    iptables -I FORWARD -p tcp --dport 1:65535 -m connlimit --connlimit-above 4000 -j DROP


    The second script thanks to u3gyxap's post - will limit everything *EXCEPT* TCP

    The third script is useful for preventing mail viruses from bringing down your router by limiting the number of connections on port 25.

    The fourth script attempts to prevent the total number of TCP connections from getting too high for the router to handle.

    Normal QOS still works and show all of the affected users in the appropriate class in the graphs.

    Use whatever you feel is useful in your particular case!
     
  18. sapehr

    sapehr Addicted to LI Member

  19. mshobe

    mshobe Addicted to LI Member

    Love the mod -- works great, just would like to have IP/MAC bandwidth limiting raised from 20 to 30 clients. Is this possible? Our network is 30 guys on a shared satellite link.

    Can't think of a way to shape incoming for all 30. Any suggestions?
     
  20. Victek

    Victek Network Guru Member

    No problem, I read many request about it, will do on next official release mod. :biggrin:
     
  21. mshobe

    mshobe Addicted to LI Member

    Thanks, I appreciate it!
     
  22. havemusic

    havemusic Network Guru Member

    Ok, here's the deal, I have three computers which I have set up with the ip filter. Now do I need to add my 2 xbox 360s to the filter if I want to give them priority over the computers while playing or can I just leave them off the list. Also what speeds does the 360 really need to play games.
     
  23. Victek

    Victek Network Guru Member

    I have no clue about 360's bandwidth requirements but now you're our best Guinean pig to give a try and feedback us :biggrin:

    Thanks
     
  24. mshobe

    mshobe Addicted to LI Member

    To guarantee the 360's get a certain amount of bandwidth, add them to the IP/MAC Bandwidth Limiter. If not added, they will not be restricted, nor will they be guaranteed bandwidth. As for the outgoing traffic, to give the 360s priority, you will need to know the ports or server addresses for the games you play and add them to the QOS table. This is possible by watching the QoS Details section when playing a game, you will see the destination ports and server addresses.
     
  25. Dashiell

    Dashiell Network Guru Member


    The xbox360 uses these ports:

    88 UDP
    3074 TCP+UDP
     
  26. havemusic

    havemusic Network Guru Member

    No problem being the guine pig. I will report my findings. after I get some time to spend on it.. Look for this weekend for results.
     
  27. mshobe

    mshobe Addicted to LI Member

    Any way to update this past 20 ip addresses?

    I've got the latest Victek (1.22.8005)
     
  28. spliff

    spliff LI Guru Member

    Guys this isn't working for me. I'm using the 1.22ND version of Victek's mod. I want to restrict an IP to just 100kbps on the downstream. Even when I set the ceiling to 100 it downloads at 6 megabits on my 16 meg connection. The upstream capping works, though.

    [​IMG]
    [​IMG]
     
  29. yulaw

    yulaw Network Guru Member

    I got the same problem with the qos limiter as spliff. Download isn't limited but upload is. Is this a bug or is there another setting thats needed?
     
  30. mejobloggs

    mejobloggs Addicted to LI Member

    Is this gone in 1.23? I can't find it
     
  31. Victek

    Victek Network Guru Member

    Yes, it's gone in the standard mod, will be built in the test version.
     
  32. peyton

    peyton LI Guru Member

    Yes it is.
    In fact it was never release in the official version and Victek removed it in the 1.23 mod for now.
    Maybe in a future test version.
     
  33. mejobloggs

    mejobloggs Addicted to LI Member

    Aw pity. Is there another way I can manage something similar?

    Both me and my brother play online games, and we make each other lag. When using the IP/Mac Limiter I would just split our connection in half and it was sweet. I don't understand the QOS stuff, but can that help? If so I'll learn about it
     
  34. peyton

    peyton LI Guru Member

    You could generate the same thing with the wrt54 script generator :

    http://www.robsonn.user.icpnet.pl/generator.zip

    It's very user friendly, all you have to do is paste the commands in your admin/script/firewall section and reboot to apply.
     
  35. yulaw

    yulaw Network Guru Member

    Robsonn's script generator solves my problem in 1.23 stock firmware. It will limit both upload and download. Just create the limits and paste the script into the firewall. Only thing you might need to change is the wired or wireless adapter.
     
  36. terintamel

    terintamel Addicted to LI Member

    I am on a Motorola Canopy Wisp and my bandwidth is set for burst allocation. Basically for the first 50mb of data downloaded I get the full bandwidth of the radio for my connection. That is ~7Meg. After that my bandwidth throttles to 3Meg sustained until the download is complete. It then takes a minute or so for the burst to build back up and be at 7Meg again.

    My question is what should I set the Download/Upload Bandwidth to 7meg or 3meg? I would like to be able to access the burst, but still properly distribute the bandwidth between 3 IPs once the burst is used up. Will it cause issues setting to my burst instead of my sustained?

    Example settings:
    Download Bandwidth: 6300
    Upload Bandwidth: 6300

    IP1 dl rate:682 dl ceil: 6300 ul rate: 170 ul ceil:6300
    IP2 dl rate:682 dl ceil: 6300 ul rate: 170 ul ceil:6300
    IP3 dl rate:1024 dl ceil: 6300 ul rate: 170 ul ceil:6300
     
  37. bripab007

    bripab007 Network Guru Member

    I would love to figure a way to take advantage of variable bandwidth cable connections, too.

    I've tried using my max bandwidth settings in QOS, but what happens is your RTT and latency goes way up, off the charts.
     
  38. Toastman

    Toastman Super Moderator Staff Member Member

    terintamel, seems nobody answered this. Of course, the answer is that you must use the lower, more normal figure. When you set QOS up I think you will find that what QOS is trying to achieve will be screwed up by your ISP's changing his speeds, and QOS will work very intermittently.
     
  39. terintamel

    terintamel Addicted to LI Member

    Thanks for the info. Fortunately I work for my WISP so I just shutoff the bursting capability of the Canopy radio and I'm using the sustained in my QOS.
     
  40. Toastman

    Toastman Super Moderator Staff Member Member

    Well, you can't do better than that !! haha
     
  41. greatscott

    greatscott Addicted to LI Member

    This is not working for me. I just want one computer (static IP 192.168.1.101) download and upload rate to be limited to 1000kbps, I followed the manual exactly, I have:
    [​IMG]


    But I'm still able to download and upload at my regular speed.
     
  42. Victek

    Victek Network Guru Member

    1st. The IP should be in DHCP list, static IP it's difficult to be controlled because are not in the Tomato DHCP list.
    2nd. You can't fix the same values for rate and ceiling, read the manual.
    3rd. What version are you running?
    4th. Did you erase nvram after upgrade to this version?.
     
  43. greatscott

    greatscott Addicted to LI Member

    1. On XP the IP is assign by DHCP, on Tomato I added the MAC/IP to the "Static DHCP" list.
    2. In "IP/MAC BW Limit", I changed the values to 500kbps | 1000kbps | 100kbps | 200kbps
    3. WRT54GL v1.1 / Tomato RAF 1.23.8505ND
    4. I've erased the nvram twice and started from scratch since upgrading from the original Tomato 1.21 to Tomato RAF 1.23.8505ND.

    I also just rebooted the router, and the limit is still not working. I noticed in http://www.linksysinfo.org/forums/showpost.php?p=339667&postcount=453
    mw1001 had similar issues with the bw limiter and still had the problem after he started everything from scratch.
    Do you think it would make any difference if I upgrade to Tomato RAF 1.23.8511ND?
     
  44. Victek

    Victek Network Guru Member

    No, any RAF 1.23 version works... are you sure that your PC IP is the one you wrote in IP/MAC limiter list? .. is the only mistake I can think about. :)
     
  45. greatscott

    greatscott Addicted to LI Member

    I thought that was the case at first, I double checked just now and I'm using the correct IP for my computer. I also tried to limit another computer, but it still is not getting limited. Is the limit suppose to be instant or takes affect after a few MB transfer? For example if I have the DL Rate at 500kbps and the DL Ceil at 1000kbps and do a speed test at speedtest.net, it would show nothing over 1000kbps?
    Also I don't need to do anything under "ARP Binding", right?
     
  46. Victek

    Victek Network Guru Member

    It reacts after you saved the settings, and yes, you don't need to enter the IP in ARP binding list. By the way.. what router model are you using? opss, sorry, I saw, WRT54GL, correct? :rolleyes:
     
  47. greatscott

    greatscott Addicted to LI Member

    Yes, WRT54GL v1.1 with Tomato RAF 1.23.8505ND
     
  48. Victek

    Victek Network Guru Member

    Upgrade to 1.23.8511, erase nvram. configure manualy all settings, don't restore previous configuration file. Try again
     
  49. davipiero

    davipiero Addicted to LI Member

    If I enable both the original QoS and your IP/MAC QoS, Which one will be the in the higher priority? I'm using Tomato 1.23

    Here is the example:
    In original QoS, I set traffic limit for IP 192.168.1.2 on port 1024-65355 to be in lowest class which is 15kBps. In your new IP/MAC QoS, I also enable DL rate and DL Ceil for this IP at 30 kBps. Assuming there is no other client is online. Which one will be enabled to this IP when it is downloading via torrent at port 5676?

    Thank you...
     
  50. Victek

    Victek Network Guru Member

    Try it .. IP/MAC limiter takes the priority
     
  51. davipiero

    davipiero Addicted to LI Member

    So, How can I restrict BW with your new IP/MAC limiter while in the other hand I need to push P2P and Torrent to the ground?

    Thank you....
     
  52. Victek

    Victek Network Guru Member

    As all the scripts are based on iptables then the most restricted settings will be effective. As a common sense I will use QoS settings to make a policy based on rules and the IP/MAC limiter will fix the bandwidth for each machine running the application/ports that have been fixed in the QoS. I think is the wise implementation when you like to use both features, the QoS for quality and the IP/MAC limiter for IP customization/restriction.
     
  53. davipiero

    davipiero Addicted to LI Member

    In conclusion..

    I may still restrict BW at port 1024-65535 using the original QoS, while I also restrict the BW per client. When a client using port 1024-65535, it will be applied by rules from original QoS, for another port (eg: 80) client will follow BW restriction set by IP/MAC QoS. Is this correct?
     
  54. davipiero

    davipiero Addicted to LI Member

    Well, I'm using your mod for ver 1.23. The rule is also applied for LAN to LAN traffic.
    I know because I'm using opera, It has built-in netmeter. When I want to open my router's page, It become much more slower. And in Opera's netmeter, it is seen that my access to router's page is only as fast as I set in IP/MAC QoS...

    I tried also to use the original QoS, I set port 1024-65535 to be in lowest class, and the default traffic (traffic not specified) also to be in lowest class. Then, the graph tells me that now http traffic at port 80 is put at lowest class (Which is only 1 kBps). I'm afraid the new QoS can't work in this matter so I disable the original QoS..

    By the way, What is ARP binding? What is it for?

    Thank you...
     
  55. Victek

    Victek Network Guru Member

    To create a restricted access rules for wired devices, same as wireless restriction.
     
  56. kabar

    kabar Addicted to LI Member

    it works fine. but you have to enable ARP binding. the "unlisted users" are the users unlisted in arp binding table, not in the ip/mac limiter table. seems to work fine for me.
    hope Victek will fix this bug that when youre using arp binding the device list also shows every client listed it the arp binding table, no matter if they are connected or not. and this irritating asterisk (or blank space) instead of host name in device list bug. altough, im very pleased to use Victek mod. cant wait to test the impelemnted sd mod :) cheers!
     
  57. Victek

    Victek Network Guru Member

    haha .. this * is some Alien I can't kick out .. It comes from stock Tomato .. Let's wait for Tomato 2.0 ;)
     
  58. maerd

    maerd Addicted to LI Member

    Hi, I would like to beable to change the bandwidth restrictions to lower values automatically for peak hours and then shift them back up for off peak. Would this be possible with the scheduled scripts? What should I write for my scripts?
     
  59. rexthedog

    rexthedog Guest

    Hi!
    I'm using the latest Tomato RAF Mod 1.23.8515ND and am having a wierd problem.
    I erased nvram and configured my settings, set DL Rate to 64, DL Ceiling to 128, UL Rate to 64 and UL Ceiling to 128.
    Really wierd is that when I use a DL Rate of 64 and DL Ceiling of 128, the download transfer on the limited machine does get limited to 800kb/s which is to much for those values. To get the download-rate I wish (30kb/s-40kb/s), I have to put in a DL Rate of 3 and Ceiling of 5, but when I do this, the Upload gets limited to something around 0-1kb/s, no matter what my UL Rate and Ceiling is. I hope someone can help me!
    Thanks!
     
  60. Victek

    Victek Network Guru Member

    Eii, As I joust answered you by e.mail, be sure you are using the right IP, fix the IP in static DHCP and avoid to use any fix IP for this feature, all the IP should be distributed by the DHCPc firmware.
     
  61. FattysGoneWild

    FattysGoneWild LI Guru Member

    Victek,

    I am finally looking more into this feature with the firmware. Question. I am on cable internet and my plan is set to 20mb/2mb. I can go into my cable modem and see what they provisioned me for. It looks like this:

    Down 22400 kbps
    Up 2240 kbps

    Can I put those numbers in for the up and down speed? Or do you suggest lowering the number?
     
  62. Victek

    Victek Network Guru Member

    I did a test using a reliable speedtest and fixed the rate showed in the measurement.
     
  63. yoda

    yoda Addicted to LI Member

    I'm having problems with QOS

    This is my setup

    Computer 1
    Port 80
    Downloading

    Computer 2
    Port 80
    Streaming youtube in HD

    I get Glitching in the youtube video is there any way to reduce glitching in the video?
     
  64. rhester72

    rhester72 Network Guru Member

    Sounds like you don't have enough "leftover" bandwidth to stream HD video to the second machine - if the load average on your router is reasonable (read: below 1.0), your router isn't the limiting factor. This is of course made a lot worse if you are doing wireless streaming.

    Rodney
     
  65. yoda

    yoda Addicted to LI Member

    Thanks Rodney
     
  66. Toastman

    Toastman Super Moderator Staff Member Member

    yoda and fattysgonewild, there really isn't any point in posting these requests for help if you simply don't read and follow the information provided, we all seem to keep going over the same old ground every few days.

    Fatty's - the tomato FAQ, the Wiki, my QOS thread, and many, many other posts easily accessible on this forum all tell you precisely what figures to put in there. That is - 85% to 90% of the MINIMUM speed that you measure on your line at different times of the day and night. This is not a suggestion, it is a basic requirement without which the QOS system cannot function.

    If you do not read and follow basic instructions it is not surprising that you have difficulty in making things work.
     
  67. Jedis

    Jedis LI Guru Member

    I just installed Victek's mod on my router today.

    I'm trying to configure this option. However, I don't see a way to do this by MAC address? It just says IP and a user can easily change their IP to avoid this completely.

    Any suggestions?
     
  68. Victek

    Victek Network Guru Member

    ARP Binding, associate MAC address with IP, then go IP/MAC limiter and write the IP.
     
  69. Jedis

    Jedis LI Guru Member

    Done :)

    So what will happen if a user configures a static IP on their computer that doesn't match the IP set in the router for the MAC? Will it force the IP anyway or stop them from connecting?
     
  70. Victek

    Victek Network Guru Member

    Try it .. will not able to be connected
     
  71. mrsus

    mrsus Guest

    any way to schedule IP/Mac BW limit with a script ?? I want it to turn on during Peak and off during Offpeak.

    Cheers
     
  72. gptro81

    gptro81 Addicted to LI Member

    Hi, I want to do that too. On during peak hours off during non peak hours, but how?
     
  73. benny.shen

    benny.shen LI Guru Member

    can i use ip range in the IP QOS? say: 192.168.1.100-192.168.1.150, blah, blah,blah?
     
  74. arthurtoo

    arthurtoo Addicted to LI Member

    hi all,

    i've configured the ip/mac bw limiter and it's working but with abit of a problem though. the limit's are fine, they reach the limit that i have set. but the problem is with the priority. even though i've configure PC A to have higher priority than PC B, PC B still gets more bandwidth because i started the download after PC A.

    if i were to start the download on PC B first, then start the download on PC A, PC A will get more of the bandwidth. so right now, it's like whoever who starts the download last will get more bandwidth, and not by the priority set.

    is there any configuration that i've missed? my config are as per below.

    Max download: 1500
    Max upload: 384

    PC A: 300/1350/50/350/Highest
    PC B: 200/1350/50/350/Medium
     
  75. karogyoker

    karogyoker Addicted to LI Member

    copy this to Administration/Scripts/WAN up script:

    Code:
    sleep 5
    echo -e "#!/bin/sh\nnvram set new_qoslimit_enable=1\nservice qoslimit start" > /tmp/bw_limit_start.sh
    echo -e "#!/bin/sh\nnvram set new_qoslimit_enable=0\nservice qoslimit stop" > /tmp/bw_limit_stop.sh
    chmod +x /tmp/bw_limit_start.sh
    chmod +x /tmp/bw_limit_stop.sh
    cru a bwlimitstart "* 17 * * * sh /tmp/bw_limit_start.sh"
    cru a bwlimitstop "* 22 * * * sh /tmp/bw_limit_stop.sh"
    
    this enables BW limit at hour 17 and disables it at hour 22

    if you want to remove the rules, go to Tools/System and execute the following:
    Code:
    cru d bwlimitstart
    cru d bwlimitstop
    
    And delete the last two lines from wan up script too.

    then you can check the settings by executing:
    Code:
    cru l
    
    there are two lines by default.

    of course you can set more on/off rules, just execute
    Code:
    cru a bwlimitstart "* 11 * * * sh /tmp/bw_limit_start.sh"
    cru a bwlimitstop "* 14 * * * sh /tmp/bw_limit_stop.sh"
    
    for example

    (or you can add these lines to wan up script too)

    ------------------------------------------------------------------------

    Or you can use the Administration/Scheduler... LOL
    but you can add only 3 rules from there. but then you can add new rules manually too.
    if you selected the times and days then use the command
    enable:
    Code:
    nvram set new_qoslimit_enable=1
    service qoslimit start
    
    disable:
    Code:
    nvram set new_qoslimit_enable=0
    service qoslimit stop
    
    this way you dont need to write any wan up script
     
  76. karogyoker

    karogyoker Addicted to LI Member

    another cool script what i use before i start playing online games, to keep my ping low if somebody else starts a download or upload on the LAN. I just need to push cisco button before I start playing and then push again when i stopped playing.

    Code:
    if [ `nvram get new_qoslimit_enable` -eq 0 ];then
     led white off amber on
     nvram set new_qoslimit_enable=1
     service qoslimit start
     led amber off white on 
    else
     led white off amber on
     nvram set new_qoslimit_enable=0
     service qoslimit stop
     led amber off white off
    fi
     
    r4nd0m likes this.
  77. arthurtoo

    arthurtoo Addicted to LI Member

    thanks karogyoker for the scripts. it was really useful. im using both ur button script as well as the scheduler script.

    i added the button colour to the scheduler script as well just to know whether if its on/off :)
     
  78. karogyoker

    karogyoker Addicted to LI Member

    i have restarted my router and
    /tmp/new_qoslimit_start.sh
    and
    /tmp/new_qoslimit_stop.sh
    disappeared!
    where are they?

    if i enable BW limit and press save, then it generates those files.

    @Victek: What does Save do? I want those two files to generate automatically.
     
  79. Victek

    Victek Network Guru Member

    These files are generated when you type 'service new_qoslimit start' or stop . You can add into Administration/Buttons|LED window and asociate it to SES event.
     
  80. karogyoker

    karogyoker Addicted to LI Member

    This is the real solution what i need. Thank you!

    edit: i deleted those two .sh-s and then i typed service new_qoslimit start but they are not re-generated. HALP!
    edit2: solution: service qoslimit start
     
  81. karogyoker

    karogyoker Addicted to LI Member

    bump (see previous comment)

    edit: see next comment
     
  82. karogyoker

    karogyoker Addicted to LI Member

    Victek please help, see comment #80

    edit: Ok, i have found what was wrong, it's not service new_qoslimit, it's service qoslimit.
    edit2: scripts above fixed
     
  83. benny.shen

    benny.shen LI Guru Member

    cool, thanks for the info
     
  84. Armand1234

    Armand1234 Addicted to LI Member

    Hi sir Victek, and hello to other forum contributors. :)

    I have a specific question.

    First my setup:
    WRT54GL v1.1 @ Tomato RAF 1.25.8025.2, Roters LAN IP is 192.168.1.22
    Router is on static IP and connected on internet through WAN port. My internet speed is 8192/1024 kbps
    Wireless is not in use.

    EDIT:

    I wanted this too. I found this, and this work for me:

    You could set an Access Restriction with:
    "All Day" and "Everyday" and "Block All Internet Access" with
    "Applies To All Except" and set the MAC's that are permitted access.

    I think this would prevent unknown MAC's from using the system.

    -----------------------------------------------------------------------------------------------
    Next Question after I explain my newest situation:

    DHCP is configured to give IP from 192.168.1.151 to 192.168.1.199 . I have a PC connected to routers LANport 4. In router I write his MAC address. In static DHCP I put his MAC address to give him IP 192.168.1.156 .
    I put 192.168.1.156 in IP/MAC BW Limit to have 2down/0,5up megabits. And this is work for me.
    When I say work, it works when that PC LAN adapter is at "Obtain network settings automatically" , restrictions work on that IP (192.168.1.156)
    But when I write a manual IP settings on that PC LAN adapter, for example 192.168.1.200, subnet, and gateway ip ( routers IP 192.168.1.22) and DNS , restrictions seems to be inaccurate.
    Then this PC download 3-4 Megabits.
    How can I restrict his speed with MAC adress, not a IP address?

    ---------------------------------------------------------------------------

    EDIT: I know now

    I have to put his mac and ip address in ARP Binding, and enable arp binding :)

    Thanks, and sorry for allready answered questions :)

    Regards

    ____________________________________________________________________

    EDIT:

    I add MAC/IP in ARP binding, and at PC put manual IP address, and he is escape the bw limit. :( :(

    What I am douing wrong??

    Edit: I didnt check "limit unlisted machines" in arp binding. Sorry :) my bad

    Enjoj
     
  85. zoz2000

    zoz2000 Addicted to LI Member

    Hi Victek!
    I have a request:
    May i ask you to add a whitelist feature to the Access Restrictions section? I think it would be very useful. Now i'm using an init iptable script.
     
  86. olegs69

    olegs69 Guest

    Hello VicTek, thank you very much for the nice looking mod.

    Sadly, it does not seem to be working for me :(.
    Read through 3 hours of posts and tried many of the suggestions.
    Flashed, cleared nvram, flashed, cleared, etc, etc.

    Going to try Trazapeko (spelling?) mod.
    Hopefully that works.

    Still, there are a lot of great features in VicTek's mod.

    Thanks again.


    EDIT:
    Only works for Lan and not wireless for some reason. That's ok, I herded all the tenants unto an old router I had lying around ;)
     
  87. unknwn

    unknwn Guest

    hello,
    my setup is whr-hp-g54 on Tomato Firmware v1.25.8515 .2RAF ND.
    I have a problem using IP/MAC Bandwidth limiter.
    When i set download limit up to ~26Mbps it works well. Howerver then i set DLCeil more than ~26Mbps(for example 50Mbps) it still caps my speed at ~26Mbps.
    When i disable bandwith limiter download speed jumps to its maximum which is 60Mbps.
     
  88. Andromeda

    Andromeda Networkin' Nut Member

    Limit for 1 IP

    How can I set a limit for one IP?
    My max. UL is 1000 kbps / DL is 25000 kbps.

    One IP min. UL 150 kbps max. full if not other will use this,
    min. DL 1000 kbps max. full if not other will use this.

    All over IP have same priority / max. bandwidth.

    How must I write for this result?

    192.168.1.6 1000 kbps 25000 kbps 150 kbps 1000 kbps Normal 250 40/s

    Is this for my example correct? The other IP's must not in the list?

    I would only limit the Gameing-PC, if other users / PC want to use the Internet.
    Is the Gaming-PC online alone, so he should be allowed to use the full range and need not be limited.

    Thanks for your help...
     
  89. hakowy

    hakowy Networkin' Nut Member

    I have same problem, i set my PC(A) on HIGHEST priority and PC B on Lowest priority,
    PC A: DL limit:3000/4500
    PC B: DL limit: 512/1024

    PC B use all his DL ceil limit(1024), even when i am downloading, his download speed doesnt get lower to 512, why?
     
  90. willpower101

    willpower101 Serious Server Member

    is victek the only mod with this? What are the others?
     
  91. azdps

    azdps LI Guru Member

    willpower101 you should look at the tomato firmware wiki comparison chart.

    http://en.wikipedia.org/wiki/Tomato_(firmware)#Feature_comparison

    most popular and active firmware versions right now are:

    toastman
    teaman
    shibby

    based on the comparison chart, shibby and teaman include bandwidth limiter with their firmware builds.
     
  92. willpower101

    willpower101 Serious Server Member

    Thank you so much. I didn't even realize that existed.
    I'm a little confused though: I did not find a single 32k nvram (WRT320N) on teaman's google site. Does he only support routers with 60k?
     
  93. azdps

    azdps LI Guru Member

  94. Dreamcat4

    Dreamcat4 Network Newbie Member

    Same problem here.

    [EDIT] I have retested today on the shibby/advancedtomato v1.28. And this feature is OK. Just you must correctly set the download / upload numbers as kbit/sec. Then it works. :rolleyes:
     
    Last edited: May 25, 2015
  95. anotherone

    anotherone Connected Client Member

    1) can I use together ip range bandwidth limiter and defafault Qos ?
    if yes which one have bigger priority?
    2) can I use values like in ip range bandwidth limiter like 900/1900ceill 200/470ceill ? because it is not working in my linksys e900 with latest tomato with adblock and pixelserv.
    only if I use the same values in download and ceill I can see the limitations working
     
  96. discosonic

    discosonic New Member Member

    Can you guys explain how bandwidth limiter works if I specifying IP range instead of single IPs? How DL Rate and DL Ceil will be shared in this case? Thanks.
     
  97. discosonic

    discosonic New Member Member

    I still need help with bandwidth limiter. If I specify IP range, for example, 172.16.1.1-254 and DL Rate 1000 kbps will DL Rate be shared between 254 IPs (4 kbps :) for every device) OR every device from this range will have 1000 kbps minimum speed?
     

Share This Page