ipfw

ipfw is the firewall, which has a number of interesting features and is woefully underused.

Bandwidth Throttling Notes

Example:

sudo ipfw pipe 1 config bw 15KByte/s

Attaching the pipe to outgoing port 80:

sudo ipfw add 1 pipe 1 src-port 80

Removing the pipe:

sudo ipfw delete 1