Web Hosting Talk







View Full Version : Bandwidth limiter on my ded server ?!


BioXShell
11-24-2002, 04:36 PM
Hey.

Just bought a Dedicated server. On this server im not doing hosting.. im hosting many BOTS + IRC Servers.. I would like to know if there are any software i could use to limit my bandwith..


Ex: 10GB limit a day. If the 10GB Limit a day has been reached well my server goes down.. or cut the internet hehe

thanks alot

tazzy
11-24-2002, 04:42 PM
You could limit bandwidth (bits per second)
with mod_bandwidth or mod_throttle ... search for them..

SilenceGold
11-25-2002, 06:27 AM
Which OS?

If you were using FreeBSD, you could use dummynet as an example.

cperciva
11-25-2002, 07:52 AM
Just write a cron job which checks your firewall counters every five minutes and, if you've passed the threshold, adds a rule which silently drops all packets. To re-enable the server, add another cron job which, at midnight, deletes that rule.

Why, exactly, you would want to do this, I don't know... but that's how to do it.

bwho
11-25-2002, 07:56 AM
some hosts provide bandwidth notifications that you can set.
I know for instance communitech's control panel has the ability to either email you once your server has reached X GB, or to actually turn your ethernet port off for you.

nice flag cpervica :)