/*
* MyHTB Silviu Vladuti <zyx@zyx.ro>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
MyHTB is a free utils for htb with mySQL backend.
MyHTB is licensed under the GNU General Public License.
MyHTB it use
Hierarchical Token Bucket ( HTB ) - http://luxik.cdi.cz/~devik/qos/htb/
tc from iproute2 - http://developer.osdl.org/dev/iproute2/
MySQL: The World's Most Popular Open Source Database - http://www.mysql.com
WebFrontend - Apache + PHP
RRDtool - http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
Install
untar the source (tar xzvf myhtb.tar.gz)
Modify in Makefile path your mysql lib and include make (after compiling you will have the bin files myhtb, myrrd)
create the database myhtb
build your database from myhtb.sql
put myhtb.conf in /etc and set your database setings
copy myhtb-www dir in your web directory and modify conf.php (apache must suport php scripts)
put
0-59/5 * * * * /myhtb-dir/myhtb 1> /dev/null
0-59/5 * * * * /myhtb-dir/myrrd 1> /dev/null
in crontab file
and now access http://host/myhtb-www
