shadowsocks / go-shadowsocks2

Modern Shadowsocks in Go
Apache License 2.0
4.51k stars 1.41k forks source link

Make only one session between client and server? #211

Open Sia200 opened 3 years ago

Sia200 commented 3 years ago

Hey.

Let's say I have established a connection between the client and the server and exposing a socks server on the client. Each time that I'll use the SOCKS server, a new connection will be created between the client and the server. This is a problem for me because I want to control the source port that the client uses.

Is there any way to transfer all SOCKS data through one long lasting session?

Thanks

BigSully commented 2 years ago

@Sia200 You can take a look at chisel. Chisel maintains one websocket connection, and create new session(ssh channel) on this exact one existing connection.