extremecoders-re / go-dispatch-proxy

SOCKS5/Transparent load balancing proxy developed in Go, combines multiple internet connections
MIT License
278 stars 45 forks source link

Great little tool #5

Closed gregor-hh closed 3 years ago

gregor-hh commented 3 years ago

What a great little tool, it works well on Windows.

But I have a feature Request:

May it be possible that the tool use another two „parent socks“ instead of interfaces?

I have 2 SSH Tunnels with SOCKS over 2 WAN interfaces (each SSH Tunnel on one Interface)

I need to loadbalance theese.

Is this possbile?

extremecoders-re commented 3 years ago

This is possible but would require a refactor. Like instead of handling the SOCKS connection, forward it to the upstream.

Also I think this is natively supported in HAProxy.

gregor-hh commented 3 years ago

Unfortunately it has to run on windows.

Your tool is nice, small and needs few resources.

would be perfect if it could optionally use other socks instead of interfaces (load balanced)

Would that be a lot of extra code?

I mean, could you imagine building that or is it too much work?

best regards

extremecoders-re commented 3 years ago

Not too much work. In fact it would be easier as there's no need to handle socks. Need to just pipe the sockets.

Not sure when I'll be able to get time to implement this but you can give it a shot if you're versed with Go. As an example you can consider the second example here: https://www.stavros.io/posts/proxying-two-connections-go/

extremecoders-re commented 3 years ago

This has been implemented in the latest release.

gregor-hh commented 3 years ago

Awesome, you integrated it and it works perfect.

So Great! Many thanks to you, Iam very happy now.

Best regards