<div dir="ltr">The configurations online are not wrong.  Please draw a diagram of your configuration, and are you placing client and server in the same config (the logs seem to suggest so), or on two systems?<div><br></div><div>Thanks,</div><div>Juli.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 7, 2016 at 11:33 PM, <a href="mailto:lidonghai@adtsec.com" target="_blank">lidonghai@adtsec.com</a> <span dir="ltr"><<a href="mailto:lidonghai@adtsec.com" target="_blank">lidonghai@adtsec.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<table width="99.99%" height="100%" style="padding:10px;background-color:transparent" border="0" cellpadding="0" cellspacing="0" background="cid:_Foxmail.1@f10867b4-b99c-4c12-4816-b346f859035e">
<tbody><tr>
<td valign="top" style="width:100%;height:100%">
<div>
<div><span style="font-size:16px;color:rgb(0,0,0);background-color:rgba(0,0,0,0)">hi guys, I found wanproxy recently, and I try to make it running,but the configuration on the official webpage confused me a lot.</span></div><div><span style="font-size:16px;color:rgb(0,0,0);background-color:rgba(0,0,0,0)">according to the website[</span><span style="background-color:rgba(0,0,0,0);font-size:16px;line-height:1.5"></span><a href="http://wanproxy.org/examples.shtml" style="background-color:transparent;font-size:16px;line-height:1.5" target="_blank">http://wanproxy.org/ex<wbr>amples.shtml</a><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0);font-size:16px;line-height:1.5"> && </span><span style="background-color:rgba(0,0,0,0);font-size:16px;line-height:1.5"><a href="https://github.com/diegows/wanproxy/wiki/Configuration" target="_blank">https://github<wbr>.com/diegows/wanproxy/wiki/<wbr>Configuration</a></span><span style="background-color:rgba(0,0,0,0);font-size:16px;line-height:1.5">], </span></div><div><span style="background-color:rgba(0,0,0,0);font-size:16px;line-height:1.5">both of them showed that like this:</span></div><div><pre><code>client</code></pre><pre><code>create proxy proxy0
set proxy0.interface if0
<span style="background-color:rgb(255,255,0)">set proxy0.interface_codec <font color="#ff0000"><b>None</b></font></span>
set proxy0.peer peer0
<span style="background-color:rgb(255,255,0)">set proxy0.peer_codec <font color="#ff0000"><b>codec0</b></font></span> 
activate proxy0</code></pre></div><span style="font-size:16px;color:rgb(0,0,0);background-color:rgba(0,0,0,0)"></span><div><span style="font-size:16px;color:rgb(0,0,0);background-color:rgba(0,0,0,0)">server</span></div><div><pre><code>create proxy proxy0
set proxy0.interface if0
<span style="background-color:rgb(255,255,0)">set proxy0.interface_codec <b><font color="#ff0000">codec0</font></b></span>
set proxy0.peer peer0
<span style="background-color:rgb(255,255,0)">set proxy0.peer_codec <b><font color="#ff0000">None</font></b></span>
activate proxy0</code></pre></div><div>but when I started the programe, and run iperf[upload data] on the server side, it gave error:</div><div><img src="cid:_Foxmail.1@775b0522-9b4f-8978-65d2-ae8ba3d6df20" border="0" style="background-color:transparent;font-size:10.5pt;line-height:1.5"></div><div><span style="background-color:rgba(0,0,0,0);font-size:16px;line-height:1.5"><br></span></div><div><span style="background-color:rgba(0,0,0,0);font-size:16px;line-height:1.5">wanproxy showed this:</span></div><div><span style="background-color:rgba(0,0,0,0);font-size:16px;line-height:1.5">1481182764.863249 [/wanproxy] <wbr>INFO: All rights reserved.</span></div><div><span style="font-size:16px;color:rgb(0,0,0);background-color:rgba(0,0,0,0)">1481182764.863324 [/wanproxy/c<wbr>onfig] INFO: Configuring WANPr<wbr>oxy.<br>1481182764.863883 [/io/system]<wbr> INFO: Starting IO system.<br>1481182764.863991 [/wanproxy/p<wbr>roxy/proxy0/listener] INFO: Li<wbr>stening on: [0.0.0.0]:2016<br>1481182764.864026 [/event/thre<wbr>ad] INFO: Starting event threa<wbr>d.<br>1481182764.864239 [/wanproxy/p<wbr>roxy/proxy1/listener] INFO: Li<wbr>stening on: [0.0.0.0]:2018<br>1481182826.467252 [/zlib/infla<wbr>te_pipe] ERR: virtual void <wbr>InflatePipe::consume(Buffer*):<wbr> inflate(): data error<br>1481182826.467342 [/wanproxy/p<wbr>roxy/proxy1/connector] ERR: vo<wbr>id ProxyConnector::splice_comp<wbr>lete(Event): Unexpected event:<wbr> <Error>/0 [Success]</span></div><div><br></div><div>when I exchange the configuration like this:</div><div><div><pre><code>client</code></pre><pre><code>create proxy proxy0
set proxy0.interface if0
<span style="background-color:rgb(255,255,0)">set proxy0.interface_codec <font color="#ff0000"><b>codec0</b></font></span>
set proxy0.peer peer0
<span style="background-color:rgb(255,255,0)">set proxy0.peer_codec <font color="#ff0000"><b>None</b></font></span>
activate proxy0</code></pre></div><span style="color:rgb(0,0,0);font-size:16px;background-color:rgba(0,0,0,0)"></span><div><span style="color:rgb(0,0,0);font-size:16px;background-color:rgba(0,0,0,0)">server</span></div><div><pre><code>create proxy proxy0
set proxy0.interface if0
<span style="background-color:rgb(255,255,0)">set proxy0.interface_codec <b><font color="#ff0000">None</font></b></span>
set proxy0.peer peer0
<span style="background-color:rgb(255,255,0)">set proxy0.peer_codec <b><font color="#ff0000">codec0</font></b></span>
activate proxy0</code></pre></div></div>
<div>it worked as expected.</div><div>so, could anyone tell me why this happened?</div><div>or the configuration on the websites is wrong? </div><div>Thanks in advance.</div><div><br></div><div><br></div><div><br></div><div>yours sincerely.</div><hr style="width:210px;height:1px" color="#b5c4df" size="1" align="left"><span class="m_6530545865780083947HOEnZb"><font color="#888888">
<div><span><div style="MARGIN:10px;FONT-FAMILY:verdana;FONT-SIZE:10pt"><div><a href="mailto:lidonghai@adtsec.com" target="_blank">lidonghai@adtsec.com</a></div></div></span></div>
<div></div></font></span></div>
</td>
</tr>
</tbody></table>
</div><br>______________________________<wbr>_________________<br>
wanproxy mailing list<br>
<a href="mailto:wanproxy@lists.wanproxy.org" target="_blank">wanproxy@lists.wanproxy.org</a><br>
<a href="http://lists.wanproxy.org/listinfo.cgi/wanproxy-wanproxy.org" rel="noreferrer" target="_blank">http://lists.wanproxy.org/list<wbr>info.cgi/wanproxy-wanproxy.org</a><br>
<br></blockquote></div><br></div></div>