Last active
December 14, 2015 06:19
-
-
Save elfrank/5041498 to your computer and use it in GitHub Desktop.
simulate network latency and lower bandwidth
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
# display current rules | |
sudo ipfw show | |
# create pipe with preferred settings | |
sudo ipfw pipe 1 config delay 10ms bw 256kbit/s | |
sudo ipfw add pipe 1 dst-ip 127.0.0.1 dst-port 8000 | |
# flush all the rules | |
sudo ipfw flush |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment