<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"><style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: ????; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<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 style="">
<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;">http://wanproxy.org/examples.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;">https://github.com/diegows/wanproxy/wiki/Configuration</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] 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/config] INFO: Configuring WANProxy.<br>1481182764.863883 [/io/system] INFO: Starting IO system.<br>1481182764.863991 [/wanproxy/proxy/proxy0/listener] INFO: Listening on: [0.0.0.0]:2016<br>1481182764.864026 [/event/thread] INFO: Starting event thread.<br>1481182764.864239 [/wanproxy/proxy/proxy1/listener] INFO: Listening on: [0.0.0.0]:2018<br>1481182826.467252 [/zlib/inflate_pipe] ERR: virtual void InflatePipe::consume(Buffer*): inflate(): data error<br>1481182826.467342 [/wanproxy/proxy/proxy1/connector] ERR: void ProxyConnector::splice_complete(Event): Unexpected event: <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">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>lidonghai@adtsec.com</div></div></span></div>
<div></div></div>
</td>
</tr>
</tbody></table>
</body></html>