mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-04-24 07:46:03 +00:00
testing script
This commit is contained in:
parent
4ffa610b49
commit
a8ea145707
2 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
# logoutput: /var/log/socks.log
|
# logoutput: /var/log/socks.log
|
||||||
internal: 10.0.0.3
|
internal: 10.0.0.3 port = 10800
|
||||||
external: 10.0.0.3
|
external: 10.0.0.3
|
||||||
clientmethod: none
|
clientmethod: none
|
||||||
socksmethod: none
|
socksmethod: none
|
||||||
|
|
|
@ -38,9 +38,12 @@ sleep 1
|
||||||
ip tuntap add name tun0 mode tun
|
ip tuntap add name tun0 mode tun
|
||||||
ip link set tun0 up
|
ip link set tun0 up
|
||||||
ip route add 10.0.0.4 dev tun0
|
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
|
# Run iperf client through tun2proxy
|
||||||
iperf3 -c 10.0.0.4
|
iperf3 -c 10.0.0.4
|
||||||
|
|
||||||
iperf3 -c 10.0.0.4 -R
|
iperf3 -c 10.0.0.4 -R
|
||||||
|
|
||||||
|
# Clean up
|
||||||
|
# sudo ip link del tun0
|
||||||
|
|
Loading…
Add table
Reference in a new issue