-1

What's the simplest way to enforce a maximum download limit per machine on a network, over a period of time?

For example, 10 GB, per computer, per week?

I'm hoping maybe there's either a custom piece of hardware I can buy online, or some firmware that I could configure to do this (e.g. DD-WRT).

After the limit is up, I'd like it to either cut off the user's access, or throttle the user's download speed, or to notify me somehow.

Any suggestions?

jonathanconway
  • 547
  • 5
  • 7
  • 17

1 Answers1

2

"Limit per machine" is a rather difficult task as machines usually are not authenticating themselves in any way and may change IP addresses at any time.

You could consider enforcing the use of a proxy like Squid, preferably with user authentication and an addon like Squish for accounting and limiting.

An approach without a proxy server could be tried using iptables' accounting facilities and some periodically-run scripting logic inserting REJECT rules for exceeding clients. This has the downside of not being bound to users and not being able to give meaningful messages like "your quota is exceeded" - it will just look like a connection problem.

the-wabbit
  • 40,319
  • 13
  • 105
  • 169