Stop Microsoft

Operating Systems => Linux and UNIX => Topic started by: Stryker on 2 January 2003, 21:58

Title: limiting bandwidth
Post by: Stryker on 2 January 2003, 21:58
Is there any way I can setup my redhat box so that a user can not download/upload more than X bits in Y ammount of time? I want to set up a server so that when i get dsl back again i can start allowing users, but i dont want them to hog all my bandwidth. Thanks.
Title: limiting bandwidth
Post by: dulcipher on 2 January 2003, 18:55
Yes,

Are u using Apache?  There is a tool in it that allows you to limit the amount of bytes that a particular connection can download from you, but be careful, it goes by IP, so if people are using a proxy, there coulld be some problems.
Title: limiting bandwidth
Post by: Master of Reality on 2 January 2003, 23:02
i think it depends on the program. Are you giving them FTP access? I think ProFTP has a setting somewhere to limit the bandwith.
Title: limiting bandwidth
Post by: Stryker on 3 January 2003, 02:54
I was looking for more of a kernel feature of some sort. I want to block all connections from too much bandwidth. I don't have ftp as it is not very secure, i let them ftp out if they want. And as for apache, i do use it, but most people aren't into making web pages. Most people that I let use it are using it to make a MUD and they need a place to host it. And it's theirs so i can't just add code in there, and if i did they'd see it. (not to mention it's morally wrong)
Title: limiting bandwidth
Post by: flap on 3 January 2003, 04:37
Could this be achieved with the 'limit' module in iptables?
Title: limiting bandwidth
Post by: Stryker on 3 January 2003, 04:39
quote:
Originally posted by flap:
Could this be achieved with the 'limit' module in iptables?


i know nothingi about iptables, i'm using ipchains. i'll play around with it later, but i dont know.