Skip to content

Instantly share code, notes, and snippets.

@kirichkov
Created April 18, 2013 08:45
Show Gist options
  • Save kirichkov/5411235 to your computer and use it in GitHub Desktop.
Save kirichkov/5411235 to your computer and use it in GitHub Desktop.
# Throttle all incoming and outgoing data to port 3000 at 48KB/s
# Throttle all incoming and outgoing data to port 3000 at 48KB/s
sudo ipfw pipe 1 config bw 48KByte/s
sudo ipfw add 101 pipe 1 src-port 3000
sudo ipfw add 102 pipe 1 dst-port 3000
# Delete
sudo ipfw delete 101 pipe 1
sudo ipfw delete 102 pipe 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment