<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This a great project.  However, I have this strange thing that happens with wanproxy. I can redirect my TCP sessions through it. However, when I initiate an iperf test, it reaches the other end and then immediately resets the connection. So all I end up getting for my SYN request is a RST ACK. I am wondering if there is something wrong with my setup so I’m posting it for someone to please raise a flag here. My topology looks like this<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>LAN ---> SOCKS ---> WANPROXY CLIENT ---> WANPROXY SERVER (WITH SOCKS) ----> INTERNET (IPERF SERVER)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I use the socks proxy to get many TCP ports through the proxy. I would appreciate information about another way of doing this. So that’s the topology, here are the wanproxy configs<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>CLIENT SOCKS PROXY<o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>redsocks {<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>     local_ip = 0.0.0.0;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>     local_port = 5001;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>     ip = 127.0.0.1;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>     port = 3300;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>}<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>CLIENT CONFIG<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>create interface if0<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>set if0.family IPv4<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>set if0.host "127.0.0.1"<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>set if0.port "3300"<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>activate if0<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>create peer peer0<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>set peer0.family IPv4<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>set peer0.host "4.4.4.4"<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>set peer0.port "3301"<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>activate peer0<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>create proxy proxy0<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>set proxy0.type TCP-TCP<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>set proxy0.interface if0<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>set proxy0.interface_codec None<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>set proxy0.peer peer0<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>set proxy0.peer_codec None<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'>activate proxy0<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal>SERVER CONFIG<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>create interface if0<o:p></o:p></p><p class=MsoNormal>set if0.family IP<o:p></o:p></p><p class=MsoNormal>set if0.host "4.4.4.4"<o:p></o:p></p><p class=MsoNormal>set if0.port "3301"<o:p></o:p></p><p class=MsoNormal>activate if0<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>create peer peer0<o:p></o:p></p><p class=MsoNormal>set peer0.family IPv4<o:p></o:p></p><p class=MsoNormal>set peer0.host "localhost"<o:p></o:p></p><p class=MsoNormal>set peer0.port "3302"<o:p></o:p></p><p class=MsoNormal>activate peer0<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>create proxy proxy0<o:p></o:p></p><p class=MsoNormal>set proxy0.type TCP-TCP<o:p></o:p></p><p class=MsoNormal>set proxy0.interface if0<o:p></o:p></p><p class=MsoNormal>set proxy0.interface_codec None<o:p></o:p></p><p class=MsoNormal>set proxy0.peer peer0<o:p></o:p></p><p class=MsoNormal>set proxy0.peer_codec None<o:p></o:p></p><p class=MsoNormal>activate proxy0<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>create interface if2<o:p></o:p></p><p class=MsoNormal>set if2.family IPv4<o:p></o:p></p><p class=MsoNormal>set if2.host "localhost"<o:p></o:p></p><p class=MsoNormal>set if2.port "3302"<o:p></o:p></p><p class=MsoNormal>activate if2<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>create proxy-socks proxy-socks0<o:p></o:p></p><p class=MsoNormal>set proxy-socks0.interface if2<o:p></o:p></p><p class=MsoNormal>activate proxy-socks0<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>It feels like overkill to me so suggestions to simplify are welcome. Thank you.<o:p></o:p></p></div></body></html>