This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Qos and Kazaa

Are there anybody outthere that has any experience regarding Qos and Kazaa ???

I have a user on my network that drains all the bandwidth by using KaZaa. I would like to use Qos but it does not seem to work. 

Any help would be nice.....

Best regards 

Mountainman


This thread was automatically locked due to age.
Parents Reply Children
  • It seems like he gets all the bandwidth allthough I've tried to set up a rule: 

    From (Client): LAN_Network__
    Service:       Kazaa (port 1214)
    To (Server):   WAN_Network__
    Weight:        low
    Share:         Share/Max

    It accepts the rule, but perhaps I did this wrong, I dont know.
  • Hi Mountainman,
    this morning I took a look into QoS. Please follow these steps:

    a) Configure your Network Interface:
    Go to Network:Interfaces -> edit -> show advanced. Set your QoS BW to the physical speed of your Interface (most likely 100Mbit, Fast Ethernet Interface).
    Then set your QoS Real BW (kbits) to the bandwith you want your QoS'ed Services to share - any connection which is not matched by a QoS Rule will not be affected by that setting! So, if you only want to use QoS for your Kazaa Users and you want them to be maxed out at 256kbit, set this to 256.

    b) Configure your QoS - Settings:
    Go to Network:QoS. Add a rule which matches your Kazaa Traffic. If that's your only QoS-Rule, the weight doesn't matter (because you don't have to share those 256 kbits). Set the share to "share/max" or "don't share". Enable that rule.
     
    Your Output should be similar to this (kernel tc settings):
     
    code:
     
    ---- classes ----

           name     | parent  | scheduler | rate       | bounded | isolated
          ------------------------------------------------------------------
           1:       | root    | cbq       | 100Mbit    | yes     | yes     
           1:1      | 1:      | cbq       | 256Kbit    | yes     | yes     

     

    Make sure your Traffic matches the QoS rule. This should work, if not please report your kernel tc settings here and we will see what we can do :-)

    Greets,
    andreas
  • Now it seems to work.

    Thanks for your very good and quick help...
     
    Mountainman
  • Hi emgadmin,

    yes, of course that is possible.
    You have to set the QoS BW to 384kb, create "Networks" for each client (netmask /32), set matching QoS Rules for each client and use the "Weight" and "Share" Options to distribute the BW in a 1:2 ratio. If I got you right, this should do the trick - easy, isn't it? :-)

    Greets,
    andreas
  • That's interesting.
    But I limit my quos'ed services to 256 kbit.

    Is possible to setup a bandwidth for IP?
    I mean, I want to give to desk X with IP y 256 kbit, and to desk Z with ip K 128 kbit (since Z is a "downloader" clerk ). is possible?
  • Hi .

    Thanks for the quick answer. It works.

    Another question. Is possibile to disable
    Qos for an interface?
    I mean, my setup have 3 interface, LAN, DMZ , WAN

    I've set up Qos for all. But I really need Qos onto  
    WAN . So I've setup the real bw into WAN , set up the rules and all works.

    But since I've enabled also onto LAN & DMZ (for testing), and now I don't need it, seems it's not possible to be disables. I've tried setting real bw = 0 , but this doesn't delete qos for that interface.

    Any hint?
  • Hi,
    this is more a cosmetical issue.
    Remeber that QoS only effects traffic which matches a QoS rule, so if you have no rules matching on traffic via LAN or DMZ Interface, it won't be QoS'ed.
    It would be nicer to "disable" QoS for an Interface. You could achieve that via the console access, but is that worth it for cosmetical issues? [:)] 
    There is work to do with the QoS handling (we know that), and your feedback gives us an impression where the problems are. Thanks for all the input!

    Greets,
    andreas
  • Hi.

    The problem is that if I cannot delete
    the qos, when I add a qos rule to limit someone
    bw, that rule apply also onto DMZ & LAN eth.
    I mean, if I want to limit internet access,
    I setup a rule like:

    from qosed_ip service any to server any

    I think it's the only way to limit the entire
    bw for WAN access. Tell me if I'm wrong.

    But, I don't want to limit access to my DMZ (where
    our ftp/www/mail servers are), so I need to disable qos for dmz. If I can't , the rule above
    will also apply to my DMZ... and if I'm using a ratio of 1:2 , one user will have 75mbits and the other 25 mbits out of 100 (the hardware and real bandwidth of my DMZ eth).

    I'm trying to disable it via console.
    I've done the following:
    in /etc/wfe edited itf.conf , in order to delete the qos lines of LAN and DMZ. The network restarted... and qos is still here (seen using tc).

    Ok, let's use tc so...
    I gave this :
    # tc qdisc del dev eth0 root
    and
    # tc qdisc del dev eth2 root

    where eth0 and eth2 are my LAN & DMZ iface.
    now tc shows only qdisc for my eth1 (WAN) and
    that's correct.

    but, as soon as I add a rule... voilà, qos rules
    for eth0 & eth2 appears again *grin*

    so there's a cache somewhere?
    even if disabled in itf.conf, seems that the mdw daemon "turn on" again the qos (the mdw logs tell that).

    and now I'm stalled...

    probably I must delete & reconfigure the interface? hope not. also I can't , since I can't stop them (clerks) working     .

    there's anything I could do with the console?
    That doesn't scare me...  [:)]  

    thanks...
  • Of course I could use share/max as rule,
    in order to let a user use the full bw, if the other isn't using it. But hope there's a cleaner way.
  • OK, I see your problem :-)

    There is currently no _nice_ way to delete that, but there is a workaround: just set to QoS Bandwith for the interface you want QoS to be disabled to 1Gbit. Then the work on console:
    In /etc/wfe/conf/itf.conf, you have the following two QoS entries for a QoS'ed Interface:
     
    code:
     
    qosbw = 1GBit
    qosreal = 

    Now delete both to set the Interface to a "unconfigured" QoS state.

    Hope that fixes your prob.  [:)] 
    andreas