limit outgoing bandwidth for an application

Discussion in 'Linux Networking' started by Lasse K. Christiansen, Jul 3, 2003.

  1. How would i go about limiting outgoing bw from my computer for a specific
    application ?

    I know how to do it with a cisco router but not how to do it with Linux.

    Actually i would like to police traffic so that outgoing http and rtp
    requests would get as much bandwidth as needed while some specific
    application would only be provided with a specific maximum amount of
    bandwidth !

    Have anyone done that ? or can this be done at all ?

    Thanks in advance

    Lasse
     
    Lasse K. Christiansen, Jul 3, 2003
    #1
    1. Advertisements

  2. Lasse K. Christiansen

    signuts Guest

    Although i'm not entirely sure how to do this I can point you in the right
    direction. There are going to be a few problems I can think of off hand.
    Using iptables (http://www.netfilter.org) you can limit traffic based on a
    particular uid or gid and in conjunction with that and specifying the
    destination port you should be able to properly limit the traffic. The
    iptables targets you are probably interested in are LIMIT and ULOG (a
    better LOG target replacement).
     
    signuts, Jul 3, 2003
    #2
    1. Advertisements

  3. Lasse K. Christiansen

    Nick Austin Guest

    How would you do this with a Cisco router? Are you talking about layer 7
    classification?

    If your looking for layer 7 classification, then you should check this
    out http://l7-filter.sourceforge.net/ other wise you should check the
    owner match ability of iptables....

    Good Luck!
     
    Nick Austin, Jul 3, 2003
    #3
  4. Lasse K. Christiansen

    Klaatu Guest

    See Trickle http://freshmeat.net/projects/trickle/?topic_id=87
    or Linux Bandwidth Arbitrator
    http://freshmeat.net/projects/arbitrator/?topic_id=253,150
     
    Klaatu, Jul 4, 2003
    #4
  5. I was kinda more interesting in policing and shaping the traffic not just
    denying specific traffic ? will netfilter do that for me as well ? or am i
    supposed to look into TC ??

    Regards

    Lasse

    Den Thu, 03 Jul 2003 17:08:25 -0400. skrev signuts:
     
    Lasse K. Christiansen, Jul 4, 2003
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.