Discussion Locked

Bandwidth Throttle ( How To )

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

We need to throttle the allowed bandwidth on some of our servers.Is there an easy and or cheap way of doing this in unix ?

TIA
Simon

5 replies

by eperrin

Depends on the UNIX you are using and whether you have a firewall compiled into your kernel. FreeBSD for example
(from 3.x up) uses IPFW compiled into the kernel. You also have to have dummynet compiled in. In the configuration you would specify pipe number, bandwidth, queue slots and sizes, delays, packet loss rates etc.

The best thing to do is determine if you can compile in firewall capabilities and whether the specific firewall package allows piping bandwidth in such a way. Remember that doesn't mean you are going to use the firewall on the NIX box for packet filtering, it just means you'll throttle your bandwidth with that tool.

by alexbes

3 steps on FreeBSD 2.2.8 or later:

1. Compile Your kernel with
options DUMMYNET
options IPFIREWALL
and reboot

2. Configure pipe in /etc/rc.firewall
ipfw add pipe #... (see man dummynet)
ipfw pipe # config ...

3. Configure other firewall rules.

This discussion is closed to new replies.