Skip to content

Instantly share code, notes, and snippets.

@mping
Created October 30, 2012 17:36
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 mping/3981751 to your computer and use it in GitHub Desktop.
Save mping/3981751 to your computer and use it in GitHub Desktop.
Redirect all traffic from one port to another, simulating slow connections
# will listen on 4444, redir to 4567, speed is 1024*32 = 32kbytes/sec (slow!)
redir --lport=4444 --cport=4567 --max_bandwidth $((1024*32))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment