Skip to content

Instantly share code, notes, and snippets.

@Plou
Created August 14, 2013 13:00
Show Gist options
  • Select an option

  • Save Plou/6230827 to your computer and use it in GitHub Desktop.

Select an option

Save Plou/6230827 to your computer and use it in GitHub Desktop.
Allow to set a max download rate to limit bandwith consumption to any port
// set max down rate to 625 Kb/s on ssh port (git : 9418)
sudo ipfw pipe 1 config bw 5000KByte/s
sudo ipfw add 1 pipe 1 src-port 22
// delete the rule
sudo ipfw delete 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment