testing script

This commit is contained in:
ssrlive 2023-11-09 23:23:54 +08:00
parent 4ffa610b49
commit a8ea145707
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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