Koozali.org: home of the SME Server

SME Badwidth Limitation

Offline que28er

  • *
  • 5
  • +0/-0
SME Badwidth Limitation
« on: September 11, 2007, 01:43:06 PM »
Hi;

Anyone know how to cap the amount of bandwidth users can use.
E.g John Doe has 100Mbs of internet for the month, and once he reaches his cap SME rejects connections from him.

Thanks

Offline Reinhold

  • *
  • 517
  • +0/-0
    • http://127.0.0.1
Re: SME Badwidth Limitation
« Reply #1 on: September 11, 2007, 08:18:59 PM »
que28er,

...just wondering what you (really) want here:
(before I try to be helpful  :smile:)

You want to limit the amount of data that can be transferred by JohnDow to or from or via the SME server, measured in bytes transferred in a period of a single month? ... ?
iow:
Where is JohnDoe located vs. the SME ? which interface ?
What is your measure: MB or Mbs ?   (Megabytes or Megabyte/seconds or Megabytes/month) ?

Regards
Reinhold



............

Offline que28er

  • *
  • 5
  • +0/-0
Re: SME Badwidth Limitation
« Reply #2 on: September 12, 2007, 09:01:53 AM »
Well lets say you have an internet cafe where instead of charging per half hour you charge per 20 Megs of data user; after 20 MB of transmission(in and out) the session is capped.
Is there a rpm that can do this within SME?

Offline Reinhold

  • *
  • 517
  • +0/-0
    • http://127.0.0.1
Re: SME Badwidth Limitation
« Reply #3 on: September 14, 2007, 01:07:37 PM »

I'afraid I'm am not aware of any such contrib for SME...

Internet Cafes I know charge "by the minute" not "by Megabyte".
(...which makes sense to me since these days "it's equipment rental time" not octets in places I know/frequent.)
...also: if you want to take stuff home they charge for CD or for pages_printed  :P  good business  :eek:

If otoh you want to limit file-downloads because they are blocking your connection...
if you need some bandwidth available for things like HTML,
if you want to limit web access to xxkbit per second for files like .zip .rar .pdf...
if at the same time, you don't want a single user to use more than their fair share of sustained bandwidth
...have a look at SQUID "delay-pool" Definitions
plenty of examples for cut & paste on the web, search via google...

In general I can only recommend: Bandwidth-Limiting-HOWTO

Regards
Reinhold
............