redsocks icon indicating copy to clipboard operation
redsocks copied to clipboard

Can we use HTTP proxy, when redsocks2 is configured with type=https-connect ?

Open Thanraj opened this issue 2 years ago • 1 comments

SETUP 1: When redsocks2 configuration is type=http-connect, can we use HTTPS proxy ?

base { log_debug = on; log_info = on; log = "file:/data/data/redsocks2.log"; daemon = on; redirector = iptables; }

redsocks { bind = "127.0.0.1:8123"; relay = "10.161.104.36:9000"; // IP and Port of the proxy server type = http-relay; login = "admin"; password = "admin"; autoproxy = 0; }

redsocks { bind = "127.0.0.1:8124"; relay = "10.161.104.36:9000"; type = http-connect; login = "admin"; password = "admin"; autoproxy = 0; }

===========================================================================

SETUP 2: When redsocks2 configuration is type=https-connect, can we use HTTP proxy ?

base { log_debug = on; log_info = on; log = "file:/data/data/redsocks2.log"; daemon = on; redirector = iptables; }

redsocks { bind = "127.0.0.1:8123"; relay = "10.161.104.36:9001";// IP and Port of the proxy server type = https-connect; login = "admin"; password = "admin"; autoproxy = 0; }

redsocks { bind = "127.0.0.1:8124"; relay = "10.161.104.36:9001"; type = https-connect; login = "admin"; password = "admin"; autoproxy = 0; }

===================================================

Please define if there is any rule based on redsocks2 configuration to use HTTP/HTTPS proxy ?

Thanraj avatar Jul 26 '22 12:07 Thanraj

When 'https-proxy' is set, redsocks2 make SSL connection to proxy server first. http proxy protocol is sent via SSL connection once the connection is up. Same way as HTTPS connection.

semigodking avatar Nov 13 '22 11:11 semigodking