LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-27-2011, 12:48 AM   #1
AsadMoeen
Member
 
Registered: Jun 2010
Posts: 160

Rep: Reputation: 3
Limiting a user's bandwidth


Hello.

I run Debian 64-bit.

I host GameServers on my machine. Yesterday, some corrupt files or error in configurations of one of the game-servers caused my whole system to destabilize. On checking, I saw one of the Gameserver's console giving Net_sendpacket spam errors. I disabled that server and things were fine then. It used up more than 100GB of my bandwidth in just 12 hours.

I deleted the server and copied all the files over again to fix that error. Now I want a prevention to this, if just in case it happens again.

I want to limit a sub-user's bandwidth in Linux. Like if I want a user only to use 10GB bandwidth per month + not more than 5MB/second. Is there any way to do it ?

How can I achieve this ?
 
Old 01-28-2011, 03:40 AM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
I assume you mean network bandwidth and not disk space quota. I have never had need to do this, but it looks like it is commonly achieved with a combination of Squid proxy and Iptables. I 'googled' "iptables bandwidth limit" and got a lot of hits on how to accomplish this. Generally the tactic seems to be to use Squid to limit the users and then use iptables to prevent anyone from getting around them.
 
Old 02-04-2011, 08:23 AM   #3
damade
LQ Newbie
 
Registered: Feb 2011
Distribution: Red hat, Solaris, AIX, HP-UX, FreeBSD
Posts: 15

Rep: Reputation: 2
You can try squid in Accelerator-mode with delay-pools feature enabled (./configure --enable-delay-pools) to control bandwidth.

damade
 
  


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
limiting a user's bandwidth spx2 Linux - Server 1 01-02-2008 07:09 PM
bandwidth limiting gubak Linux - Networking 1 03-02-2005 06:51 AM
bandwidth limiting help!!! jojo1031 Linux - Networking 1 08-23-2004 09:05 AM
Bandwidth Limiting boundless Linux - Networking 2 04-15-2003 02:07 PM
Limiting Bandwidth MasterC Linux - Networking 3 04-09-2003 03:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:38 PM.

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