go-gost / gost

GO Simple Tunnel - a simple tunnel written in golang
https://gost.run
MIT License
4.3k stars 521 forks source link

Support for reverse proxy to another socks5/http proxy #544

Open phpmathan opened 3 months ago

phpmathan commented 3 months ago

Currently, I'm listening to a TCP port with sniffing enabled, and then applying the filters based on the hostname, and then connecting to the destination, but I need to connect to another HTTP or socks5 proxy from the forwarder node which matches the applied filter. Simply say, I'm trying to achieve a host-based proxy to route. For certain hosts, I want to route through the socks5 proxy and all other routes directly.

NOTE: HTTP requests are routed as expected for the above requirement, whereas HTTPS fails.

Thanks.