Last active
August 29, 2015 14:04
-
-
Save vvasabi/33de59064801f576e773 to your computer and use it in GitHub Desktop.
Emulate slower Internet speed. (Apple also provides a free Network Link Conditioner pref pane that does the same thing.)
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
#!/bin/bash | |
# Make Internet connection fast again | |
sudo ipfw delete 1 | |
sudo ipfw delete 2 | |
sudo ipfw delete 3 | |
sudo ipfw delete 4 |
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
#!/bin/bash | |
# Note that for this to work with localhost, use the machine’s current IP, such as 192.168.0.1 | |
sudo ipfw pipe 1 config bw 640KByte/s delay 100ms | |
sudo ipfw add 1 pipe 1 src-port 80 | |
sudo ipfw add 2 pipe 1 dst-port 80 | |
sudo ipfw add 3 pipe 1 src-port 443 | |
sudo ipfw add 4 pipe 1 dst-port 443 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment