Hi, using proxychains with http_proxy, I get "Connection reset by peer" error with all applications. It does use my proxy and DNS server set and resolves addresses fine.
For eg, using wget:
proxychains wget google.com 1 ↵ ProxyChains-3.1 (http://proxychains.sf.net) (proxychains.sf.net%29) -2013-04-23 12:12:47- http://google.com/ Resolving google.com (google.com)… 173.194.36.7, 173.194.36.8, 173.194.36.9, … Connecting to google.com (google.com)|173.194.36.7|:80… |R-chain|-<>-144.16.192.216:8080-<><>-173.194.36.7:80-<><>-OK connected. HTTP request sent, awaiting response… Read error (Connection reset by peer) in headers. Retrying.
-2013-04-23 12:12:48- (try: 2) http://google.com/ Connecting to google.com (google.com)|173.194.36.7|:80… |R-chain|-<>-144.16.192.216:8080-<><>-173.194.36.7:80-<><>-OK connected. HTTP request sent, awaiting response… Read error (Connection reset by peer) in headers. Retrying.
Please help me solve this problem!
I had solve the similar problem.
You need apply this patch and replace the so library.
--- core.c 2015-10-10 09:37:12.811631147 +0800 +++ proxychains/core.c 2015-10-10 09:24:55.271504149 +0800 @@ -122,8 +122,11 @@ pfd[0].events=POLLIN; for(i=0;i<size-1;i++) {
Log in to post a comment.
Hi, using proxychains with http_proxy, I get "Connection reset by peer" error with all applications. It does use my proxy and DNS server set and resolves addresses fine.
For eg, using wget:
proxychains wget google.com 1 ↵
ProxyChains-3.1 (http://proxychains.sf.net) (proxychains.sf.net%29)
-2013-04-23 12:12:47- http://google.com/
Resolving google.com (google.com)… 173.194.36.7, 173.194.36.8, 173.194.36.9, …
Connecting to google.com (google.com)|173.194.36.7|:80… |R-chain|-<>-144.16.192.216:8080-<><>-173.194.36.7:80-<><>-OK
connected.
HTTP request sent, awaiting response… Read error (Connection reset by peer) in headers.
Retrying.
-2013-04-23 12:12:48- (try: 2) http://google.com/
Connecting to google.com (google.com)|173.194.36.7|:80… |R-chain|-<>-144.16.192.216:8080-<><>-173.194.36.7:80-<><>-OK
connected.
HTTP request sent, awaiting response… Read error (Connection reset by peer) in headers.
Retrying.
Please help me solve this problem!
I had solve the similar problem.
You need apply this patch and replace the so library.
--- core.c 2015-10-10 09:37:12.811631147 +0800
+++ proxychains/core.c 2015-10-10 09:24:55.271504149 +0800
@@ -122,8 +122,11 @@
pfd[0].events=POLLIN;
for(i=0;i<size-1;i++)
{
pfd[0].revents=0;
ready=poll(pfd,1,tcp_read_time_out);
if(ready!=1 || !(pfd[0].revents&POLLIN) || 1!=read(fd,&buff[i],1))
return -1;
else if(buff[i]=='\n')
@@ -144,8 +147,11 @@
pfd[0].events=POLLIN;
for(i=0;i<size;i++)
{
pfd[0].revents=0;
ready=poll(pfd,1,tcp_read_time_out);
if(ready!=1 || !(pfd[0].revents&POLLIN) || 1!=read(fd,&buff[i],1))
return -1;
}
@@ -164,8 +170,12 @@
// printf("\nconnect ret=%d\n",ret);fflush(stdout);
if(ret==-1 && errno==EINPROGRESS)
{
ret=poll(pfd,1,tcp_connect_time_out);
// printf("\npoll ret=%d\n",ret);fflush(stdout);
+
if(ret==1)
{
value_len=sizeof(int);