Last active
August 29, 2015 13:56
-
-
Save bendilley/8918052 to your computer and use it in GitHub Desktop.
Simulate slow connection on OS X/BSD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Credit to http://stackoverflow.com/a/1628495/418602 for this one.