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.
- 09-01-2010 #1
- Join Date
- Sep 2010
Bandwidth limiting per user?
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!
- 09-01-2010 #2
- 09-02-2010 #3
*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.
- 09-03-2010 #4
- Join Date
- Apr 2009
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
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!
- 09-03-2010 #5