Download the HTB script (Hierarchy Token Bucket queuing)
#wget http://downloads.sourceforge.net/project/htbinit/HTB.init/0.8.5/htb.init-v0.8.5?use_mirror=voxel
Copy htb.init to /etc/init.d/htb.init
Create directory /etc/sysconfig/htb
Create rules on /etc/sysconfig/htb directory. Assuming only one interface (eth0), this is an example configuration:
# cd /etc/sysconfig/htb
# vi eth0
DEFAULT=30
R2Q=100
Save file
# vi eth0-2.root
RATE=100Kbit
# root class containing outgoing bandwidth
Now you can start htb.init
# /etc/init.d/htb.init start
Checking status
#/etc/init.d/htb.init stats
With webmin module
Install Tree:DAG_Node
#apt-get install libtree-dagnode-perl
or
# cpan -i Tree::DAG_Node
Then install webmin module.
Go Webmin ---> Webmin Configuration --> Webmin Modules
on Third Party Module : http://sehier.fr/webmin-htb/webmin-htb.tar.gz
and Install it.
To check the module go Networking ---> Hierarchy Token Bucket queuing
Configuring the rules is the trick of this Bandwidth manager.
No comments:
Post a Comment