redsocks http-connect fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
redsocks (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
$ lsb_release -rd
Description: Ubuntu 12.04.1 LTS
Release: 12.04
$ dpkg -l redsocks
ii redsocks 0.2-1 Redirect any TCP connection to a SOCKS or HTTPS proxy server
$ /usr/local/
redsocks.
simplified config:
base {
log_debug = off;
log_info = off;
log = "syslog:local7";
daemon = on;
redirector = iptables;
}
redsocks {
local_ip = 127.0.0.1;
local_port = 8124;
ip = 10.1.2.3; // replace with your actual HTTP CONNECT proxy ip
port = 80; // replace with the actual HTTP CONNECT proxy port
type = http-connect;
}
The included redsocks 0.2 binary connects to the http-connect proxy and correctly requests the external connection, but does not start sending any more traffic. Replacing the binary with the 0.4 git compiled binary and using the same config and iptables rules works properly. iptables rules are redirecting traffic to redsocks as per documentation.
sends:
CONNECT 1.2.3.4:80 HTTP/1.0
and gets:
HTTP/1.0 200 Connection established
Proxy-Agent: (my cache server)
and then nothing more till the connection times out.
Status changed to 'Confirmed' because the bug affects multiple users.