Koozali.org: home of the SME Server

homeserver with downloadlimit for each user ?

Offline fpausp

  • *
  • 728
  • +0/-0
homeserver with downloadlimit for each user ?
« on: October 29, 2005, 01:03:32 PM »
Hi,

I like to install a homeserver for me and my friends where they have a file-, mailserver, internetaccess ... The problem is i have a adsl-connection with 5GB downloadlimit.

Is there a solution for sme where i can limit the bandwith and the download for each user, or should i use  somthing else ?


regards
fpausp
Viribus unitis

Offline lu2fgn

  • **
  • 55
  • +0/-0
    • http://www.sateliteros.com.ar
homeserver with downloadlimit for each user ?
« Reply #1 on: October 29, 2005, 03:17:22 PM »
Hi fpausp ??

Yes I am using the cbq.init to control the download
bandwith, it has several good things in it you can
let share the extra bandwith left over or not etc etc
this is the only tool taht is working for me.

Best regards

Alberto.
73
 :pint:  :hammer:
......

Offline fpausp

  • *
  • 728
  • +0/-0
homeserver with downloadlimit for each user ?
« Reply #2 on: October 29, 2005, 05:59:19 PM »
Hi Alberto, thanks for the info, what version of sme do you use ? I downloaded the script and had a look on it. Can you explain how to integrate this on sme6 and 7 ?

fpausp
oe4...
73
Viribus unitis

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
homeserver with downloadlimit for each user ?
« Reply #3 on: November 03, 2005, 02:57:06 PM »
CBQ is already part of SME 6 and 6.5, the script example is in /etc/sysconfig/cbq/
From the example you can pretty much follow and make to fit your needs.
So you should make a file in /etc/sysconfig/cbq (like cbq-1024.server-client)
with the following contents:

DEVICE=eth0,100Mbit,10Mbit #my internal network card
RATE=10Kbit
WEIGHT=1Kbit
PEAK=12Kbit
PRIO=6
RULE=192.168.100.120
BOUNDED=yes
ISOLATED=yes

Now you should be able to start cbq with: 'cbq start'. If you have multiple shaperfiles in /etc/sysconfig/cbq, you can individually start cbq-1024.server-client by adding the filename behind start, eg: 'cbq start cbq-1024.server-client'.

Remember that the only direction you can shape traffic, is outbound of a networkcard. This config file now shapes all outbound traffic, for 192.168.100.120, to 10Kbit (1KB/s). Eg. The client .120 can now download at a maximum of 1 KB/s. His upload is still my full upload capacity, but because your computer wants to know if his transmitted packets did arrive, this download-limiter also limits his upload.

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
homeserver with downloadlimit for each user ?
« Reply #4 on: November 06, 2005, 09:41:57 PM »
Hi,
you might find this useful:
www.hanscees.com/sme7/wondershaperbeefedup.html

just contributed it.

Hans-Cees
nl.linkedin.com/in/hanscees/