Created
September 22, 2017 13:48
-
-
Save brainstorm/2e1a8978e550b1a762651a0405cd3f54 to your computer and use it in GitHub Desktop.
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
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