mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-05-31 11:52:14 +00:00
Memory leak fixing (#77)
* incoming packet with FIN or RST * read_server_n_write_proxy_handler * testing script * Interest::WRITABLE and continue_read * read_data_from_tcp_stream * logging hide * test * script iperf
This commit is contained in:
parent
4016e401b2
commit
e5041e6d9e
4 changed files with 148 additions and 41 deletions
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# sudo apt install iperf3 dante-server
|
||||
# sudo systemctl stop danted
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
echo $SCRIPT_DIR
|
||||
|
@ -38,9 +39,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
|
||||
iperf3 -c 10.0.0.4 -R -P 10
|
||||
|
||||
# Clean up
|
||||
# sudo sh -c "pkill tun2proxy; pkill iperf3; pkill danted; ip link del tun0; ip netns del test"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue