Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: fpausp 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
-
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:
-
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
-
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.
-
Hi,
you might find this useful:
www.hanscees.com/sme7/wondershaperbeefedup.html
just contributed it.
Hans-Cees