Currently the posts are filtered by: traffic shaping
Reset this filter to see all posts.
I'm using a Fritz!Box Fon WLAN 7170 as Hotspot in my caf'e. The DSL speed is 6000kBit/s and I only want people use 1MBit/s maximum. The Fritz!Box offers traffic shaping only to prioritize VOIP over common traffic.
If you have linux box, you may use the tc command to do the following traffic shaping using class based queues (cbq):
#!/bin/sh
DEV=eth0
DEV=tiwlan0
TC=tc
RATE=768kbit
# erase all old
$TC qdisc del dev $DEV root
# set new
modprobe cls_u32
$TC qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 10mbit
$TC class add dev $DEV parent 1: classid 1:1 cbq rate $RATE \
allot 1500 prio 5 bounded isolated
$TC filter add dev $DEV parent 1: protocol ip prio 16 u32 \
match ip dst 0.0.0.0/0 flowid 1:1
Ok, this is a very hard limit of 768kBits/s for the whole WLAN-interface of the Fritz!Box. Of course you may add lter rules for specific hosts, ports, netmasks or whatever. See the lartc-guide for details.
So far theory. But how to get this stuff working on the Fritz!Box? I found the Freetz-project which modifies the original firmware. You may add kernel modules, some applications and a new webinterface.
This is a very rough howto. Don't hesitate to ask you questions as comment.