<div dir="ltr"><div><div>Hi<br></div>I tried running the example config from the example page @ <a href="http://wanproxy.org">wanproxy.org</a> and I kept getting RSTs for the SYN from the client. The details are as follows<br></div><div><br>1. I am using the example config (2nd example) to run WANProxy as SOCKS proxy.<br>    This will redirect the connection to the SOCKS proxy running in the remote site.<br></div><div>2. My setup is as follows<br><br></div><div>VM1----->VM2(Client side WanProxy- port 3300)----->VM3(Server side Wanproxy- port 3301)------>VM3(socks proxy- port 3302)------->VM4(Server)<br><br></div><div>VM1 - Client where the http_proxy is set to point to VM2:3300<br></div><div>VM2 - Client side wan proxy where the wanproxy is listening on port 3300<br></div><div>VM3 - Server side wanproxy where the wan proxy is listening on port 3301. Also, because of server.conf whcih has socks proxy config, SOCKS proxy is listening on 3302<br></div><div>VM4 - Server where http daemon is running.<br><br></div><div>3. All the four VMs can reach other respectively.<br></div><div>4. From VM1, when trying to fetch file remotely from VM4 (after setting http_proxy to point to VM2:3300),<b> I get RST packet from VM2->VM1 for the SYN packet sent from VM1->VM2.</b><br></div><div>    <b>Why is this happening?</b> <br>    I see that there is a listen socket on VM2 at port 3300<br>    VM2@VM2:~$ netstat -a | grep 3300<br>    tcp        0      0 localhost:3300          *:*                     LISTEN<br>    VM2@VM2:~$<br><br></div><div>   <i><b>Some tcpdump captures here</b></i><br>   VM1@tVM1:~$ sudo tcpdump -i eth0 host 192.168.122.14<br>   tcpdump: verbose output suppressed, use -v or -vv for full protocol decode<br>   listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes<br>   15:44:50.841999 IP 192.168.122.152.42260 > 192.168.122.14.3300: Flags [<b>S</b>], seq 1162999370, win 29200, options [mss 1460,sackOK,TS val 17645917 ecr 0,nop,wscale 7], length 0<br>   15:44:50.842229 IP 192.168.122.14.3300 > 192.168.122.152.42260: Flags [<b>R</b>.], seq 0, ack 1162999371, win 0, length 0 <br></div><div><br>   VM2@VM2:~$ sudo tcpdump -i eth0 host 192.168.122.152<br>   tcpdump: verbose output suppressed, use -v or -vv for full protocol decode<br>   listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes<br>   15:45:42.513912 IP 192.168.122.152.42262 > 192.168.122.14.3300: Flags [<b>S</b>], seq 1078011013, win 29200, options [mss 1460,sackOK,TS val 17658865 ecr 0,nop,wscale 7], length 0<br>   15:45:42.513937 IP 192.168.122.14.3300 > 192.168.122.152.42262: Flags [<b>R</b>.], seq 0, ack 1078011014, win 0, length 0<br><br></div><div><div><div><br></div><div>Should any more config needs to be done? Does the example config work for the above use case?<br><br></div><div>-- <br><div class="gmail_signature">regards<br>sreenaath</div>
</div></div></div></div>