OpenWrt Forum Archive

Topic: Bandwidth management tool for openwrt (optional web-based frontend)

The content of this topic has been archived on 23 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all,
I've coded a GPL bandwidth management tool for linux. that requires no complex dependecies at all execpt for bash (or with some adaptations may run in smallest shells). It uses tc (htb classes) and iptables as backend. A simple bash based web cgi-bin is also avaiable (and it will be enhanced in this days)
It's called htb-gen, and is meant to set up/down portions of bandwith for each host or network, that goes trough the router/firewall. Prioritary traffic(web, mail, gaming, ftp, voip, streaming) is preferred over Junk traffic(kazaa, emule, etc).  Also dynamic bandwith borrow and re-assignation is done betwen host thanks to htb boundaries.

A conf file may look like this
#               down    down    up      up
#               min     max     min     max
#ip             (rate)  (ceil)  (rate)  (ceil)
192.168.1.2     0       64      0       32
192.168.1.3     0       128     0       64
192.168.1.4     0       256     0       128
10.0.0.1/30     256     512     128     256
200.80.22.2     256     256     256     256

As you see
-Is extremely easy to maintain a large amount of hosts/networks
-ips from different networks are allowed(they have to pass FORWARD anyway)
-newtork syntax is allowed, bw will be assigned to the network
-fixed rate support, i can garantee some bw.
-A 0(zero) in rate means that it will be automagickly calculated based on the
ceil weigth, and the unassigned bandwidth
-there are a lot more of posibilties, see DOCS

I made all in bash, to be possible to put it in openwrt. But a packager (or package mantainer) is needed. Anyway, i guess that it is possible already use it, but to have a package  will be great.

To take a deeply look and download the source go to
http://www.freshmeat.net/projects/htb-gen/

If someone whant to test it in a openwrt will be cool.
I guess that a tool like this will be very usefull in openwrt.

Regards!
--
Luciano

Nbd is working to integrate QoS configuration into webif for his scripts.

The discussion might have continued from here.