Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bendilley
Last active August 29, 2015 13:56
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 bendilley/8918052 to your computer and use it in GitHub Desktop.
Save bendilley/8918052 to your computer and use it in GitHub Desktop.
Simulate slow connection on OS X/BSD
# set-up a narrow pipe
sudo ipfw pipe 1 config bw 350kbit/s plr 0.05 delay 500ms
# assign that pipe to all connections on port 8080
sudo ipfw add pipe 1 dst-port 8080
# delete that pipe
sudo ipfw pipe delete 1
# or just flush everything back to its original state
sudo ipfw flush
@bendilley
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment