Bandwidth Throttle ( How To )
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
Linux
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
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 simon
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.
by simon
by simon
This discussion is closed to new replies.
Sort by Trending