Koozali.org: home of the SME Server

bandwith throttling?????

Offline cattledog

  • ***
  • 70
  • +0/-0
bandwith throttling?????
« 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

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: bandwith throttling?????
« Reply #1 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.

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline cattledog

  • ***
  • 70
  • +0/-0
Re: bandwith throttling?????
« Reply #2 on: September 18, 2015, 12:21:34 PM »
I thought that bandwidthd would be better suited but unable to install for some reason

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: bandwith throttling?????
« Reply #3 on: September 18, 2015, 12:22:34 PM »
can you please give us some details?

Offline cattledog

  • ***
  • 70
  • +0/-0
Re: bandwith throttling?????
« Reply #4 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

Offline cattledog

  • ***
  • 70
  • +0/-0
Re: bandwith throttling?????
« Reply #5 on: September 18, 2015, 12:29:31 PM »
Stefano...were you asking y could not install?

Offline cattledog

  • ***
  • 70
  • +0/-0
Re: bandwith throttling?????
« Reply #6 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

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: bandwith throttling?????
« Reply #7 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

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: bandwith throttling?????
« Reply #8 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."

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: bandwith throttling?????
« Reply #9 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

Offline cattledog

  • ***
  • 70
  • +0/-0
Re: bandwith throttling?????
« Reply #10 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

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: bandwith throttling?????
« Reply #11 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

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: bandwith throttling?????
« Reply #12 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
« Last Edit: September 26, 2015, 01:40:18 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!