All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Arcus <shop@open-t.co.uk>
To: lartc@vger.kernel.org
Subject: Re: Limiting download from server
Date: Tue, 14 May 2013 17:38:23 +0000	[thread overview]
Message-ID: <5192768F.9040000@open-t.co.uk> (raw)
In-Reply-To: <BLU176-W238CE9A6AA0BB4697756F2D7A10@phx.gbl>

On 14/05/13 16:15, Carlos Nepomuceno wrote:
> Hi guys! This is my first post on this list.
>
> I'd like to ask for your advice on how to limit the download rate and total traffic from a server based on the IP of the client.
>
> I need to put some restrictions on particular clients that are overloading a server (CentOS 6).
>
> Any help will be very much appreciated.
>

You might want to start by reading some of the info at lartc.org. I'm 
afraid some of it is seriously out of date - but other bits are very 
much current. I started with the HTB script from this page:

http://lartc.org/howto/lartc.cookbook.ultimate-tc.html#AEN2241

and then further adapted it to suit my needs. You will most likely need 
to use different classes for different client IP addresses - and set the 
rate (and maybe the "ceil") option as needed for each class - in order 
to only allow it as much bandwidth as you want it to have.

If you need to add and remove IP addresses on the fly - you might need 
to "complicate" the script a bit further - but if your clients use 
static IP addresses - setting up few classes and filters for few clients 
shouldn't be too difficult.

Hope the above helps

      reply	other threads:[~2013-05-14 17:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-14 15:15 Limiting download from server Carlos Nepomuceno
2013-05-14 17:38 ` Sebastian Arcus [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5192768F.9040000@open-t.co.uk \
    --to=shop@open-t.co.uk \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.