Skip to content

Instantly share code, notes, and snippets.

@olegokunevych
Created December 27, 2013 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olegokunevych/8146412 to your computer and use it in GitHub Desktop.
Save olegokunevych/8146412 to your computer and use it in GitHub Desktop.
ipfw examples
sudo ipfw pipe 1 config bw 15KByte/s
creates a pipe that only allows up to 15KB/s to go through.
Then:
sudo ipfw add 1 pipe 1 src-port 80
will attach that pipe to the outgoing traffic on port 80, effectively limiting the outgoing traffic of the web server.
sudo ipfw delete 1
will remove the pipe from the port.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment