Skip to content

Instantly share code, notes, and snippets.

@brainstorm
Created September 22, 2017 13:48
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 brainstorm/2e1a8978e550b1a762651a0405cd3f54 to your computer and use it in GitHub Desktop.
Save brainstorm/2e1a8978e550b1a762651a0405cd3f54 to your computer and use it in GitHub Desktop.
box1$ cat speedtest-iperf
#!/bin/bash
IPERF=iperf3
IPERF_SERVER=7001
TEST_SECONDS=10
CLIENT_CMD="$IPERF -c localhost -p $IPERF_SERVER -d -t $TEST_SECONDS"
SERVER_CMD="$IPERF -1 -s -p $IPERF_SERVER"
$SERVER_CMD &
ssh -R 7001:0.0.0.0:7001 box2 $CLIENT_CMD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment