[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Apply bandwidth limit to entire RaQ4



Gidday All,

I'm trying to figure out how to limit an entire RaQ4 server to a maximum
bandwidth capacity through all IP Addresses, Sites etc... I've been looking
through the archives, but they're really only talking about the rate
sites/ip's should be limited too.

The program the UI uses to apply bandwidth limits is "/sbin/bw_setip" and if
(256 kbps * 1000 / 8 bits) = 32000 Bps (hope that's right :) to limit a
server to 256kbps max bandwidth then...

the command should be something like (or hopefully exactly like):
# /sbin/bw_setip -i 0.0.0.0/0 -p tcp -t rw -b 32000

bw_setip help message:
<snip>
[admin admin]# /sbin/bw_setip -h
bw_setip: set an IP based bandwidth limit
usage: bw_setip [-h] -i addr_spec -p proto_spec -t rw [-b bps] [-d]
        -h: print this message
        -i addr_spec: limit host or address, optional trailing '/mask'
        -p proto_spec: 'protocol/port' specifier, port optional
        -t rw: read/write limit, 'r', 'w', or 'rw'
        -b bps: byte limit per second
        -d: delete an existing limit
</snap>

Can anyone shed any light no whether this is the right approach? Would it
work? Is their a better way (apart from applying a limit through a router.)?

Rgds,
Dave