Bandwidth controlling/priotity with CBQ
 
This manual is old, please see here for a better way to get the same result.


CBQ is a powerful tool, which lets you limit the networking bandwidth on specific TCP/UDP ports.

CBQ website: http://sourceforge.net/projects/cbqinit/
CBQ webinterface written in PHP: http://sourceforge.net/projects/webcbq

Installation
- Download cbq (cbq.init-v0.7.3), "chmod +x" it and save in "/sbin/cbq.init"
- Download the webinterface and configure webcqb in the file html/config.php
- Add an Apache configuration (virtual host) for the new website.
- Install "iproute2" (is part of every Linux distribution and will most likely already be installed)
- Make sure "sudo" is installed (should be part of your Linux distribution)
- Edit /etc/sudoers with "visudo", follow the steps of INSTALL.txt from webcbq

Edit /sbin/cbq.init (configuration section):
- Check the command locations (I had to change the "tc"-path to "/usr/sbin/tc", everything else was fine)
- Set the CBQ_PATH var to where your cbq folder of webcbq is ../html/cbq/


Example
My "cbq"-folder in the webcbq directory contains only one file:
DEVICE=eth0,10Mbit,1Mbit
RATE=128Kbit
WEIGHT=10Kbit
PRIO=5
RULE=11.22.33.44,55.66.77.88

As you see, this script limits the bandwidth going from my local machine (11.22.33.44) to my remote server (55.66.77.88). It is useful because I only have an adsl connection - doing an upload without bandwidth limitation would close my connection for other traffic. With the limitation, I can minimize the upload and work on the internet at the same time.

Start cbq with: /sbin/cbq.init start and stop with /sbin/cbq.init stop. You can ignore the find-command warning: "find: warning: you have specified the -maxdepth option after a non-option argument...".
 
admin / Dec 02, 2007
 
Files
 
cbq.init-v0.7.3: CBQ.init script demonstrate power of CBQ mechanism in network traffic management under Linux platform. This bash script parses human-readable config files...
 
   
 
 
Login: 
Pass: 
 
 
     
     
2004 - 2023 / lookass.ch
makememad@lookass.ch