Find the answer to your Linux question:
Results 1 to 5 of 5
Hi! I'm glad I came on this forum! I have a question the answer is very important to me. So: On the VPS / Dedicated Server Linux wich 3 users ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    3

    Bandwidth limiting per user?


    Hi!
    I'm glad I came on this forum!
    I have a question the answer is very important to me.
    So: On the VPS / Dedicated Server Linux wich 3 users created. How can I limit bandwidth each in a separate? For example first user speed 1 MB. 5 MB second and third 10 MB. Expect some clear answers. Regards, Silviu!

  2. #2
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    Hello and welcome!

    I've not had to set this up before, but maybe this will get you started: Bandwidth Limiting HOWTO
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  3. #3
    Linux Engineer Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    773
    *hm* .. that would work if all data was passed through the proxy. but that surely is not the case on a dedicated server. there usually are plenty of different software running that can't be passed through a proxy. i would try this:

    * force each of the users to authenticate in a common way to identify their IP
    * inject htb rules into iptables for that IP that limits bandwidth for that IP

    This solution would probably also work if the users access the server from different locations (IPs), in which case you could keep a small database with the lease/ip information per user and calculate a bandwidth amount for each IP based on user per "IPs for user". If no login was made you can of course fall back to a default speed group that everybody (of the world) is part of.

    How to set this up is another question that I can't answer you. basically you could provide some kind of login service to the users and a script behind it that alters the iptables respectively. The service can be either some fancy protocol, http auth, ldap auth, ppp login, ... there it strongly depends on how customizable that login is.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,753
    Quote Originally Posted by jayd512 View Post
    Hello and welcome!

    I've not had to set this up before, but maybe this will get you started: Bandwidth Limiting HOWTO
    Unfortunately, that link is almost 10 years old. Things have changed!

    Rather than bandwidth limiting, bandwidth prioritization may be a better option for you, so everyone gets as much as is available, but some get more than others. Assuming specific users are using specific machines, most routers/firewalls will support this in some manner.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  6. #5
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    Quote Originally Posted by Rubberman View Post
    Unfortunately, that link is almost 10 years old. Things have changed!

    Rather than bandwidth limiting, bandwidth prioritization may be a better option for you, so everyone gets as much as is available, but some get more than others. Assuming specific users are using specific machines, most routers/firewalls will support this in some manner.
    Oops... didn't even notice the date stamp on the link
    I'll have to look a little more closely next time!
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •