antoniomika / sish

HTTP(S)/WS(S)/TCP Tunnels to localhost using only SSH.
https://ssi.sh
MIT License
4.02k stars 308 forks source link

Tunnel the same host/port to multiple destinations at the same time #235

Closed oprypkhantc closed 2 years ago

oprypkhantc commented 2 years ago

Hey.

Currently, sish supports --http-load-balancer option, which allows forwarding HTTP requests to multiple destinations. The feature I'm requesting is a similar behaviour, but instead of selecting one destination and tunneling the request, sish would instead forward the HTTP request to all destinations at once and return a predefined HTTP response (from a different host/endpoint?).

This is likely outside of the scope of sish, but it's worth asking.

antoniomika commented 2 years ago

Unfortunately this is out of the scope of sish. There are other proxy solutions that are dedicated to that use case (traffic mirroring), such as haproxy. Sorry!

(reason it is out of scope is sish just implements a simple round robin balancer. anything more complex than that should really be a separate project)