Skip to content

Instantly share code, notes, and snippets.

@ryan-blunden
Created October 1, 2012 19:07
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 ryan-blunden/3813755 to your computer and use it in GitHub Desktop.
Save ryan-blunden/3813755 to your computer and use it in GitHub Desktop.
Limit connection speed to 3G speeds
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