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 ?
|