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.
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.