LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-16-2007, 10:46 AM   #1
Trionnis
LQ Newbie
 
Registered: May 2007
Posts: 4

Rep: Reputation: 0
Question Traffic rate limiting per IP on CentOS 5.0?


Hello all,

I've been searching for the past couple of days for a solution to a problem, and I'm hoping the gurus around here can help

What I need to accomplish is to be able to set a rate limit on a per-ip basis, on aliased ips. Something that works simply is the best. I've found a few things that would work like I'd want, such as http://lwn.net/1998/1119/shaper.html , however that seems to be extremely outdated.

I don't need all the extra features that tc provides, and frankly, the person that's asking me to help them with this likely wouldn't have the time or the patience to mess with such a complex setup. Something like "./ratelimit 10.0.0.1 10" to limit the IP 10.0.0.1 to 10mbps (both ways would be ideal), is just the ticket. I have no problems building a small script to handle some of the setup, but I would *really* rather avoid having to muck with tc configs for so simple a task.

Any suggestions or pointers?

Thanks
 
Old 05-17-2007, 04:15 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well often you don't really want to limit anything, just shape. it's a sad state if you arbitrarily carve up bandwidth that could be amicably used between processes. try the wondershaper script... http://lartc.org/wondershaper/
 
Old 05-17-2007, 07:54 AM   #3
Trionnis
LQ Newbie
 
Registered: May 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Well, it actually *is* a need to carve up bandwidth (metaphorically speaking), as this is for customers that are going to be buying a preset Mbps on their IP, and I need to limit it to what they've bought. Let me give you a bit of an explanation and maybe that will help.

I'm setting this up for a client than plans to sell shoutcast hosting to his customers on a base per-mbps cost. So if one of his customers buys 8Mbps, he needs to be able to set it up so their IP can't exceed 8Mbps. This is kind of for his protection to prevent massive overuse and costs.

edit: I forgot to mention that this will be used on virtual interfaces (e.g. eth0:1, eth0:2, etc), which seems to rule out a few of the things I've found as they're designed to work on physical interfaces only.

I'll certainly take a look at that script though, if it can do what I need, that's great. Thanks for the pointer!

Last edited by Trionnis; 05-17-2007 at 07:59 AM.
 
  


Reply



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
Traffic shaping (limiting outgoing bandwidth of all TCP-traffic except FTP/HTTP) ffkodd Linux - Networking 3 10-25-2008 12:09 AM
qmail + limiting traffic ilnli Linux - Software 0 08-06-2006 01:27 PM
Traffic monitoring and limiting AlexJ Linux - Networking 2 04-14-2005 09:28 AM
Rate limiting with Iptables on port 21 rino2003 Linux - Networking 1 12-26-2004 06:34 PM
Kernel Rate Limiting mikeyt_3333 Linux - Networking 1 10-25-2001 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration