ubuntu?
Author by : http://www.daily7.info
Next step by step how we install bandwidth management with the HTB Tools in
ubuntu:
Move all the contents of the sbin folder htb tools in / sbin server
#cd /usr/local/src/sbin
#mv htb /sbin
#mv htbgen /sbin
#mv q_checkcfg /sbin
#mv q_parser /sbin
#mv q_show /sbin
Enter the new file to the folder rc.htb init.d its server and replace a rc.htb
#mv rc.htb.new /etc/init.d/rc.htb
chmod rc.htb
#chmod 755 /etc/init.d/rc.htb
class Office_A {
bandwidth 1024;
limit 2048;
burst 2;
priority 1;
client Director {
bandwidth 256;
limit 512;
burst 2;
priority 1;
dst {
192.168.168.5/32;
};
};
client Manager {
bandwidth 128;
limit 256;
burst 2;
priority 1;
dst {
client Hotspot {
bandwidth 64;
limit 256;
burst 2;
priority 1;
dst {
192.168.168.7/32;
};
};
client Staff_office {
bandwidth 256;
limit 512;
burst 2;
priority 1;
dst {
192.168.168.11/32;
192.168.168.12/32;
192.168.168.13/32;
192.168.168.14/32;
192.168.168.15/32;
192.168.168.16/32;
192.168.168.17/32;
192.168.168.18/32;
192.168.168.19/32;
192.168.168.20/32;
192.168.168.21/32;
192.168.168.22/32;
192.168.168.23/32;
192.168.168.24/32;
192.168.168.25/32;
};
};
};