kcptun in rust to learn rust and tokio_0.1
writen on the National Day holiday of 2019 when I started to learn rust and tokio_0.1
Prepare Rust development environment
Clone this repo and cd into it
Run the following command
Server: cargo run server
Client: cargo run
ssh username@localhost -p2022
The above commands will establish port forwarding ssh channel as:
ssh_client -> Client(2022/tcp) -> Server -> TARGET_IP:(22/tcp)
which tunnels the original connection:
ssh_client -> TARGET_IP:(22/tcp)
realize tcp proxy based on kcp and yamux crate
1.use full async await 2.replace yamux with h2