Skip to content

Instantly share code, notes, and snippets.

@mtigas
Created May 6, 2011 17:34
Show Gist options
  • Save mtigas/959392 to your computer and use it in GitHub Desktop.
Save mtigas/959392 to your computer and use it in GitHub Desktop.
Aliases to help test a local or LAN server with "real world" internet connection speeds.
# Add to .bash_profile:
# Adds `slow_net` and `slow_net_off` commands to your terminal.
# * limits to 150KBps ~~ 1.2 Megabit internet
# * adds 200ms latency
alias slow_net="sudo ipfw pipe 1 config bw 150KByte/s delay 200ms && sudo ipfw add 1 pipe 1 src-port 80"
alias slow_net_off="sudo ipfw delete 1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment