[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[altq 1554] help with cbq
Hi all
First i am absolutely newbie with altq :)
I m trying to setup a traffic regulator but still have some question
My need is to limit both incoming and outgoing traffic
The box is running altq with Openbsd 3.1 rl0 is connected to the lan 172.16
and rl1 connected to the internet.
I can see a little speed loss when ping over the box but i am still perplex
Could 0 replace 'any' or shall i specify each port / protocol i need ?
Thanks by anticipation
# 172.16.68.0/24 customers 64kbps
# 172.16.128.0/24 customers 128kbps
#
interface rl0 bandwidth 10M cbq
class cbq rl0 root_class NULL priority 0 pbandwidth 100
class cbq rl0 default_class root_class pbandwidth 90 default
# outgoing lan => inernet
class cbq rl0 customers_64 default_class borrow exactbandwidth 64000 red
filter rl0 customers_64 0 0 172.16.64.0 0 0
class cbq rl0 customers_128 default_class borrow exactbandwidth 128000 red
filter rl0 customers_128 0 0 172.16.128.0 0 0
# incoming internet => lan
class cbq rl0 icustomers_64 default_class borrow exactbandwidth 64000 red
filter rl0 icustomers_64 0 0 xxx.xxx.xxx.xxx 0 0
class cbq rl0 iclients_128 default_class borrow exactbandwidth 64000 red
filter rl0 icustomers_128 0 0 xxx.xxx.xxx.xxx 0 0