Example WanProxy config not working on Linux

sreenaath vasudevan sreenaathkv at gmail.com
Tue May 17 16:07:03 PDT 2016


Hi
I tried running the example config from the example page @ wanproxy.org and
I kept getting RSTs for the SYN from the client. The details are as follows

1. I am using the example config (2nd example) to run WANProxy as SOCKS
proxy.
    This will redirect the connection to the SOCKS proxy running in the
remote site.
2. My setup is as follows

VM1----->VM2(Client side WanProxy- port 3300)----->VM3(Server side
Wanproxy- port 3301)------>VM3(socks proxy- port 3302)------->VM4(Server)

VM1 - Client where the http_proxy is set to point to VM2:3300
VM2 - Client side wan proxy where the wanproxy is listening on port 3300
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
VM4 - Server where http daemon is running.

3. All the four VMs can reach other respectively.
4. From VM1, when trying to fetch file remotely from VM4 (after setting
http_proxy to point to VM2:3300),* I get RST packet from VM2->VM1 for the
SYN packet sent from VM1->VM2.*
    *Why is this happening?*
    I see that there is a listen socket on VM2 at port 3300
    VM2 at VM2:~$ netstat -a | grep 3300
    tcp        0      0 localhost:3300          *:*
LISTEN
    VM2 at VM2:~$

   *Some tcpdump captures here*
   VM1 at tVM1:~$ sudo tcpdump -i eth0 host 192.168.122.14
   tcpdump: verbose output suppressed, use -v or -vv for full protocol
decode
   listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
   15:44:50.841999 IP 192.168.122.152.42260 > 192.168.122.14.3300: Flags [
*S*], seq 1162999370, win 29200, options [mss 1460,sackOK,TS val 17645917
ecr 0,nop,wscale 7], length 0
   15:44:50.842229 IP 192.168.122.14.3300 > 192.168.122.152.42260: Flags [
*R*.], seq 0, ack 1162999371, win 0, length 0

   VM2 at VM2:~$ sudo tcpdump -i eth0 host 192.168.122.152
   tcpdump: verbose output suppressed, use -v or -vv for full protocol
decode
   listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
   15:45:42.513912 IP 192.168.122.152.42262 > 192.168.122.14.3300: Flags [
*S*], seq 1078011013, win 29200, options [mss 1460,sackOK,TS val 17658865
ecr 0,nop,wscale 7], length 0
   15:45:42.513937 IP 192.168.122.14.3300 > 192.168.122.152.42262: Flags [
*R*.], seq 0, ack 1078011014, win 0, length 0


Should any more config needs to be done? Does the example config work for
the above use case?

-- 
regards
sreenaath
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wanproxy.org/pipermail/wanproxy-wanproxy.org/attachments/20160517/98a1553b/attachment.htm>


More information about the wanproxy mailing list