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

Tomato QOS Help

Discussion in 'Tomato Firmware' started by but2002, Jun 1, 2010.

  1. but2002

    but2002 Networkin' Nut Member

    I host a server that runs on port 2302, and on internal IP

    What I want to do is make QOS disabled by default, but when there's a lot of traffic going on on that port and IP, then I want to kick in QOS to prioritize traffic on that server, but I don't want any kind of QOS when the server is empty.
  2. but2002

    but2002 Networkin' Nut Member


    Anybody have any tips or ideas?
  3. karogyoker

    karogyoker Addicted to LI Member

    how much is "lot"?

    btw, you can write a script in your server, what monitors it's traffic, and if it's a "lot" then it ssh into the router and switch qos on.

    nvram set qos_enable=1
    service qos start

    turning off:
    nvram set qos_enable=0
    service qos stop

    edit: you can do the monitoring on the router too, but it's more complicated i think, you have to get info from iptables, filter it by somehow, im not that expert in it, but i saw some bandwith calculations in these forums
  4. but2002

    but2002 Networkin' Nut Member

    I'm a n00b when it comes to these kinds of scripts.

    Basically, it's a game server, a lot of traffic is really any connection established for 5 seconds or longer.
  5. karogyoker

    karogyoker Addicted to LI Member

    and why don't you want to enable QoS?

    untick: ACK SYN FIN RST
    tick ICMP
    tick reset class...
    Set default class: lowest

    Outbound rate: max = your real max outbound rate * 0.80

    Set highest 99% None
    Set lowest 1% 100%

    Save changes

    Then in classification menu, add a new rule:
    Src IP: Highest and it's name shold be game server or whatever

    there must not be any other rules

    Save changes

Share This Page