redsocks
redsocks copied to clipboard
Can we use HTTP proxy, when redsocks2 is configured with type=https-connect ?
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 ?
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.