Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: cattledog on September 18, 2015, 09:32:06 AM

Title: bandwith throttling?????
Post by: cattledog on September 18, 2015, 09:32:06 AM
Hi all
Having kids makes life very interesting, so while one plays games and the other watches youtube or any sort of vids online.
When the two are on I want to be able to control the bandwith on the machine that is watching vids, but wish to control it with the server.

Is there a program for this?

Cheers
Title: Re: bandwith throttling?????
Post by: janet on September 18, 2015, 11:02:10 AM
cattledog

http://wiki.contribs.org/Qos
and
http://wiki.contribs.org/Wondershaper

I am not sure of the status of contribs, refer notes in the above link.

The original script still appears to function OK.
I think the qos contrib is supported.

Title: Re: bandwith throttling?????
Post by: cattledog on September 18, 2015, 12:21:34 PM
I thought that bandwidthd would be better suited but unable to install for some reason
Title: Re: bandwith throttling?????
Post by: Stefano on September 18, 2015, 12:22:34 PM
can you please give us some details?
Title: Re: bandwith throttling?????
Post by: cattledog on September 18, 2015, 12:27:59 PM
I have 36 machines and two of the ips I want to control how mach traffic they are allowed.

ie:ip with online gaming full down and upload
2nd ip: person that watches movies halve what the get with traffic up and down
Title: Re: bandwith throttling?????
Post by: cattledog on September 18, 2015, 12:29:31 PM
Stefano...were you asking y could not install?
Title: Re: bandwith throttling?????
Post by: cattledog on September 18, 2015, 12:31:27 PM
This is what happens if I try to install:

Resolving Dependencies
--> Running transaction check
---> Package smeserver-bandwidthd.noarch 0:2.0.1.2-1.el6.sme will be installed
--> Processing Dependency: bandwidthd for package: smeserver-bandwidthd-2.0.1.2-1.el6.sme.noarch
--> Finished Dependency Resolution
Error: Package: smeserver-bandwidthd-2.0.1.2-1.el6.sme.noarch (smedev)
           Requires: bandwidthd
 You could try using --skip-broken to work around the problem
Title: Re: bandwith throttling?????
Post by: Stefano on September 18, 2015, 12:37:50 PM
bandwidthd is available in SME8 contribs repo, please read here:

http://wiki.contribs.org/SME9.0_Contribs_QA#Setup
Title: Re: bandwith throttling?????
Post by: janet on September 18, 2015, 01:38:41 PM
cattledog

Quote
I thought that bandwidthd would be better suited but unable to install for some reason

From the Contrib wiki article at http://wiki.contribs.org/Bandwidthd
"Bandwidthd is a UNIX daemon/Windows service for graphing the traffic generated by each machine on several configurable subnets."

bandwidthd is for creating a graph of usage, not for controlling usage.
My earlier suggestions are  what you require based on your first post
"I want to be able to control the bandwith on the machine that is watching vids, but wish to control it with the server."

Title: Re: bandwith throttling?????
Post by: Stefano on September 24, 2015, 11:04:11 AM
cattledog

even if you are more interested in Qos or Wondeshaper contribs, please take a lookm here:

http://bugs.contribs.org/show_bug.cgi?id=9061

and, if you can, test the new rpm, thank you
Title: Re: bandwith throttling?????
Post by: cattledog on September 25, 2015, 03:11:36 AM
Hi...
I have tried the new bandwidthd.....this is the error trying from server manager
DB Error, could not connect to database

but if I go to https://192.168.1.34/bandwidthd-static/ I receive a graph and data.

I would rather use the server manager to get live information

cheers
Title: Re: bandwith throttling?????
Post by: Stefano on September 25, 2015, 08:33:53 AM
Hi...
I have tried the new bandwidthd.....this is the error trying from server manager
DB Error, could not connect to database

please, give more details, I'll report in bugzilla

thank you
Title: Re: bandwith throttling?????
Post by: stephdl on September 26, 2015, 12:47:09 PM
Hi...
I have tried the new bandwidthd.....this is the error trying from server manager
DB Error, could not connect to database

you can have a worskforme, but I don't understand what is occurring here, can you explain what you did, if you tried directly the installation instruction or if you messed a bit the server ?

Code: [Select]
config show bandwidthdyou will find the db password
Code: [Select]
DbPassword=XXXXXXXXXXXthen
Code: [Select]
mysql
grant all privileges on bandwidthd.* to bandwidthd identified by 'XXXXXXXX';
flush privileges;
exit