Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔
Thinking&Review

Liaozhebin

🤔
Thinking&Review
View GitHub Profile
@Liaozhebin
Liaozhebin / iperf.sh
Last active Aug 9, 2019 — forked from madeye/iperf.sh
Bandwidth test for shadowsocks
View iperf.sh
#!/bin/bash
method=$1
ss-tunnel -k test -m $method -l 8387 -L 127.0.0.1:8388 -s 127.0.0.1 -p 8389 &
ss_tunnel_pid=$!
ss-server -k test -m $method -s 127.0.0.1 -p 8389 &
ss_server_pid=$!
iperf -s -p 8388 &