LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-20-2010, 12:22 PM   #1
alexxxutz
LQ Newbie
 
Registered: Mar 2009
Posts: 19

Rep: Reputation: 0
Limiting bandwidth per each connection


I want to put a bandwidth limit on the 8000 port. The limit not have to be global! It must be per connection! For example if i put a 20kB/s limit on the 8000 port and I have 3 clients connected to the port, i want that each have the 20kB/s. How can I do that? I readed something about TC, but i don`t know how to use it... I`m a little noobie Sorry for my bad english

Last edited by alexxxutz; 05-20-2010 at 05:30 PM.
 
Old 05-20-2010, 01:27 PM   #2
fruttenboel
Member
 
Registered: Jul 2008
Posts: 270

Rep: Reputation: 48
Quote:
Originally Posted by alexxxutz View Post
I want to put a bandwidth limit on the 8000 port. The limit not have to be global! It must be per connection! For example if i put a 20kB/s limit on the 8000 port and I have 3 clients connected to the port, i want that each have the 20kB/s. How can I do that? I readed something about TC, but i don`t know how to use it... I`m a little noobie Sorry for my bad english
Use a managed switch. One like this: http://www.vedt.nl/longshine/apps/gs8208.html or http://longshine.de/longshine/produc...S8208A_eng.pdf

You can now limit per connection. In other cases... I don't know...
 
Old 05-20-2010, 01:37 PM   #3
alexxxutz
LQ Newbie
 
Registered: Mar 2009
Posts: 19

Original Poster
Rep: Reputation: 0
i have a dedicated server. no phisical access. i have just terminal access. i readed about tc with tbf but i dont know how to write the rules
 
Old 05-20-2010, 04:15 PM   #4
alexxxutz
LQ Newbie
 
Registered: Mar 2009
Posts: 19

Original Poster
Rep: Reputation: 0
I want to make a limit like this:

192.168.0.4 -> 64kbps
192.168.0.4 -> 64kbps
192.168.0.4 -> 64kbps
ANOTHER IP -> 64kbps
ANOTHER IP -> 64kbps

Each connection to the port from any IP, have to be limited to 64kbps. If a single IP connects 3 times simultaneously i want each connection to be limited to 64kbps. How can I do this?
 
Old 05-24-2010, 01:26 PM   #5
alexxxutz
LQ Newbie
 
Registered: Mar 2009
Posts: 19

Original Poster
Rep: Reputation: 0
nobody knows? Is it that complicated?
 
Old 05-24-2010, 01:35 PM   #6
brucehinrichs
Member
 
Registered: Mar 2008
Location: US
Distribution: Debian Sid; Sabayon, UbuntuStudio, Slackware-multilib 13.1, Peppermint Ice, CentOS
Posts: 575

Rep: Reputation: 67
You received two suggestions. Did you try them? What were the results? Or maybe you ignored them? Hint: you won't get favorable responses if you simply ignore the ones offered.
 
Old 05-24-2010, 01:57 PM   #7
alexxxutz
LQ Newbie
 
Registered: Mar 2009
Posts: 19

Original Poster
Rep: Reputation: 0
I received just a suggestion (the managed switch) and I already answered. I do not have physical access to the server. is a dedicated server and I can not mount switches and other devices. limiting must be made in linux
 
Old 05-24-2010, 09:24 PM   #8
greezmunkey
LQ Newbie
 
Registered: May 2010
Posts: 2

Rep: Reputation: 0
alexxxutz,

I'm going to chime in here, and I could be wrong - but about the only way I see that you can rate limit Ethernet connections to your server will be to "create" individual interfaces for each connection. The only way I can think of to do that would be pppoe. As a connection is made, a virtual interface is created, and is controllable via simple commands, or implemented the "right" way that connection would be controllable via radius.

The only other way I can think of would be to employ a proxy server like squid, but I don't know squid well enough to be sure.

So there it is, if I'm wrong I'll consider myself to have been slapped with a large trout.

greezmunkey

Last edited by greezmunkey; 05-24-2010 at 09:27 PM.
 
  


Reply

Tags
bandwidth, limit


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Limiting Bandwidth rajaguru14 Linux - Newbie 3 02-14-2009 01:35 PM
Bandwidth Limiting signature16 Linux - Software 4 05-21-2006 03:53 PM
Bandwidth Limiting UnrealTear Linux - Software 2 04-10-2004 10:33 PM
Bandwidth limiting dunkyb Linux - Networking 3 09-17-2003 04:36 AM
bandwidth limiting karunesh Linux - Networking 5 11-09-2002 02:28 AM


All times are GMT -5. The time now is 12:32 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration