-
-
Save ryan-blunden/3813755 to your computer and use it in GitHub Desktop.
Limit connection speed to 3G speeds
This file contains 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
if [ $1 == 'start' ]; then | |
ipfw pipe 1 config bw 30Kbit/s delay 350ms | |
ipfw add 1 pipe 1 src-port 80 | |
ipfw add 2 pipe 1 dst-port 80 | |
elif [ $1 == 'stop' ]; then | |
sudo ipfw delete 1 | |
sudo ipfw delete 2 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment