From a8ea145707a29306546b1785114da7992ab2f6b3 Mon Sep 17 00:00:00 2001 From: ssrlive <30760636+ssrlive@users.noreply.github.com> Date: Thu, 9 Nov 2023 23:23:54 +0800 Subject: [PATCH] testing script --- tests/iperf/dante.conf | 2 +- tests/iperf/test.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/iperf/dante.conf b/tests/iperf/dante.conf index b723f5b..1970568 100644 --- a/tests/iperf/dante.conf +++ b/tests/iperf/dante.conf @@ -1,5 +1,5 @@ # logoutput: /var/log/socks.log -internal: 10.0.0.3 +internal: 10.0.0.3 port = 10800 external: 10.0.0.3 clientmethod: none socksmethod: none diff --git a/tests/iperf/test.sh b/tests/iperf/test.sh index 09fd0b4..cea9fc2 100755 --- a/tests/iperf/test.sh +++ b/tests/iperf/test.sh @@ -38,9 +38,12 @@ sleep 1 ip tuntap add name tun0 mode tun ip link set tun0 up ip route add 10.0.0.4 dev tun0 -"$tun2proxy" --proxy socks5://10.0.0.3:1080 & +"$tun2proxy" --proxy socks5://10.0.0.3:10800 & # Run iperf client through tun2proxy iperf3 -c 10.0.0.4 iperf3 -c 10.0.0.4 -R + +# Clean up +# sudo ip link del tun0