Thread: [bwm-tools-tech] Port Shaping
Brought to you by:
nkukard
From: Andrew N. <and...@gm...> - 2005-10-03 23:36:52
|
Ok well I have been using bwm-tools for quite a while now. It is awesome, I still have some things that I would like to do with it but have not had time to yet. Anyway I their a way to limit that a port can use. I have a user who loves news groups and is downloading them 24x7 that puts makes me have to throttle him way down so he does not affect other users. My question is can I just limit the port (119 in this case) to a specific speed? I know that in the documentation this is mentioned. I just don't see how. The part below I think I got figured out I just don't know how to make the class_nntp_in. Any help? <flow name="nntp_in" max-rate="24000" burst-rate="32000"> <queue prio="99" nfmark="101"> class_nntp_in </queue> </flow> |
From: Kobe L. <Ko...@pu...> - 2005-10-04 07:09:32
|
It's easy, just write a mark rule for the 119 port, something likde this <class name="nntp_in"> <address name="whetever" src-iface="eth1" proto="tcp" src="maybe add something here" dst="or here" src-port="119" /> </class> Andrew Niemantsverdriet wrote: >Ok well I have been using bwm-tools for quite a while now. It is >awesome, I still have some things that I would like to do with it but >have not had time to yet. Anyway I their a way to limit that a port can >use. I have a user who loves news groups and is downloading them 24x7 >that puts makes me have to throttle him way down so he does not affect >other users. My question is can I just limit the port (119 in this case) >to a specific speed? I know that in the documentation this is mentioned. >I just don't see how. > >The part below I think I got figured out I just don't know how to make >the class_nntp_in. Any help? > > ><flow name="nntp_in" max-rate="24000" burst-rate="32000"> > <queue prio="99" nfmark="101"> > class_nntp_in > </queue> ></flow> > > > >------------------------------------------------------- >This SF.Net email is sponsored by: >Power Architecture Resource Center: Free content, downloads, discussions, >and more. http://solutions.newsforge.com/ibmarch.tmpl >_______________________________________________ >bwm-tools-tech mailing list >bwm...@li... >https://lists.sourceforge.net/lists/listinfo/bwm-tools-tech > > > > |
From: Andrew N. <and...@gm...> - 2005-10-27 01:25:52
|
U29ycnkgYWJvdXQgYnJpbmdpbmcgdXAgYW5kIG9sZCB0aHJlYWQuLi4uCgoKT2sgc28gSSB0aG91 Z2h0IEkgaGFkIHRoaXMgZ29pbmcgZm9yIGEgd2hpbGUgYnV0I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