jpillora / chisel

A fast TCP/UDP tunnel over HTTP
MIT License
13.48k stars 1.39k forks source link

low performance with chisel #347

Open gundami opened 2 years ago

gundami commented 2 years ago

i'm using linux, and i found the speed under chisel is too slow. my server is linux too. network is 1Gbps, i use iperf3 to test the speed. image directly connect image with chisel not even one-fifth of the speed

vochong commented 2 years ago

Chisel always uses encryption for the tunnel traffic, so both your server and client must be fast machines in order to have high throughput.

SuperSandro2000 commented 2 years ago

Encapsulating SSH/SOCKS inside of HTTP/WebSocket has quite some overhead which is expected. To reach faster speeds use a vpn like wireguard.

rucciva commented 1 year ago

To anyone looking for alternative, might i suggest https://github.com/rapiz1/rathole. It support tunneling via websocket. From my brief benchmark using iperf3, it can attain almost 2x the bandwith of ssh tunnel.