Bandwidth management with FreeBSD (using ipfw)

Tue 31 July 2007

You have FreeBSD installed on your server and you want to manage your bandwidth, here is a short example to start:

    ipfw add pipe 1 ip from any to 192.168.2.x out
    ipfw add pipe 2 ip from 192.168.2.x to any in
    ipfw pipe 1 config bw 10KB/s queue 10  # download speed
    ipfw pipe 2 config bw 5KB/s queue 10   # upload speed