<div>Hi, Juli,</div><div><br></div><div>Thank you so much for your quick reply.</div><div><br></div><div>Actually, we were just trying to figure out how WANProxy works, and trying to replicate the example on the website. We were planning to use SSH optimization example from the website because it was straight forward to see the improvement of file transfer speed in the second time. If we use the simple example on <a href="http://wanproxy.org/examples.shtml">http://wanproxy.org/examples.shtml</a> , how can we measure the improvement? </div>
<div><br></div><div>I am also a bit confused about the configuration in the .conf files. What are the differences between an "interface" and a "peer"? Specifically, what ip/host address and port number should I use respectively for the server and client if server and client are on two separate machines? Is there a third machine (as "intranet") in the example setup? </div>
<div><br></div>Thank you very much for your explanation. It will definitely be very helpful for us to understand how to use WANProxy. <div><br><div class="gmail_quote">On Mon, Feb 11, 2013 at 1:46 AM, Juli Mallett <span dir="ltr"><<a href="mailto:juli@clockworksquid.com" target="_blank">juli@clockworksquid.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Boxiang,<br>
<br>
You will need to check out WANProxy trunk from Subversion rather than<br>
using the 0.8.0 release if you want to use SSH optimization.  If you<br>
could provide me with your configs and the exact commands you're<br>
trying to run if you still having trouble after updating, I should be<br>
able to give you more specific help with your other issues.<br>
<br>
Thanks,<br>
Juli.<br>
<div><div class="h5"><br>
On Mon, Feb 11, 2013 at 12:39 AM, Boxiang Pan <<a href="mailto:aquarypbx@gmail.com">aquarypbx@gmail.com</a>> wrote:<br>
> Hello,<br>
><br>
> We just started to use WANProxy, we were trying to run the example on<br>
> <a href="http://wanproxy.org/ssh.shtml" target="_blank">http://wanproxy.org/ssh.shtml</a> about SSH WAN optimization, but when we tried<br>
> to scp to the server by using  $scp -P 2200<br>
> username@server_ip:~/somefile.zip  .  , the client received an error saying<br>
> "connection refused" . We noticed that on the webpage, it mentions that both<br>
> server and client will require an RSA private key. Our question is :<br>
> should we use "ssh-keygen -t rsa" to generate rsa key on server and client<br>
> separately?<br>
> which private key should we put in ssh-server1.pem on each machine?<br>
><br>
> Below is a detailed description the problem we encountered and a screenshot<br>
> is here:<br>
> <a href="https://docs.google.com/document/d/1qFbvN53aR1pOgGuRT5JbyVcaODL5qjAR7f0JUnAxDFU/edit?usp=sharing" target="_blank">https://docs.google.com/document/d/1qFbvN53aR1pOgGuRT5JbyVcaODL5qjAR7f0JUnAxDFU/edit?usp=sharing</a><br>

> We'd appreciate any suggestions and help. Thank you very much.<br>
> ----<br>
><br>
> We have 2 machines, both connected to the same LAN, and both have installed<br>
> WANProxy successfully.<br>
><br>
> One machine is the client, and we put the example client.conf into the same<br>
> directory as wanproxy. We changed set peer0.host "<a href="http://remote-server.net" target="_blank">remote-server.net</a>" to the<br>
> other machine(server)'s ip address.<br>
><br>
> The other machine is the server, and we put the example server.conf into the<br>
> same directory as wanproxy. We changed set if1.host "0.0.0.0" to set<br>
> if1.host "127.0.0.1" .<br>
><br>
> Then we turned off the firewall of both machines, and ran $./wanproxy -c<br>
> client.conf , Here's the error we got:<br>
><br>
> Boxiangs-MacBook-Pro:wanproxy boxiang$<br>
> Boxiangs-MacBook-Pro:wanproxy boxiang$ ./wanproxy -c client.conf<br>
> 1360558538.469823 [/wanproxy] INFO: WANProxy 0.8.0<br>
> 1360558538.469866 [/wanproxy] INFO: Copyright (c) 2008-2012 WANProxy.org.<br>
> 1360558538.469876 [/wanproxy] INFO: All rights reserved.<br>
> 1360558538.469913 [/wanproxy/config] INFO: Configuring WANProxy.<br>
> 1360558538.470113 [/config/type/enum] ERR: virtual bool<br>
> ConfigTypeEnum<WANProxyConfigProxyType>::set(const ConfigValue *, const<br>
> std::string &): Invalid value (SSH-SSH)<br>
> 1360558538.470126 [/config/class] ERR: bool ConfigClass::set(ConfigObject *,<br>
> const std::string &, ConfigType *, const std::string &): Member (type) could<br>
> not be set.<br>
> 1360558538.470135 [/config] ERR: bool Config::set(const std::string &, const<br>
> std::string &, const std::string &): Member (type) in object (proxy0) could<br>
> not be set.<br>
> 1360558538.470144 [/wanproxy/config] ERR: void<br>
> WANProxyConfig::parse_set(std::deque<std::string> &): Set of object member<br>
> (proxy0.type) failed.<br>
> 1360558538.470154 [/wanproxy/config] ERR: bool<br>
> WANProxyConfig::configure(const std::string &): Error in configuration<br>
> directive:    set proxy0.type SSH-SSH<br>
> 1360558538.470173 [/wanproxy] ERR: int main(int, char **): Could not<br>
> configure proxies.<br>
> Boxiangs-MacBook-Pro:wanproxy boxiang$<br>
> Boxiangs-MacBook-Pro:wanproxy boxiang$<br>
><br>
><br>
> We then removed the line  set proxy0.type SSH-SSH  in both server.conf and<br>
> client.conf, and then we were able to start wanproxy. We used "ssh-keygen -t<br>
> rsa" to generate rsa key for both client and server, and put the private key<br>
> into ssh-server1.pem file in the same directory as wanproxy. We have tried<br>
> putting the private rsa generated by the client on both client and server;<br>
> putting the private rsa on the client and public rsa on the server, but in<br>
> either case, we got a "connection refused" error when we tried to scp to the<br>
> server .<br>
><br>
> --<br>
><br>
> Boxiang Pan<br>
><br>
> Department of Electrical and Computer Engineering<br>
> University of California, San Diego<br>
><br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> wanproxy mailing list<br>
> <a href="mailto:wanproxy@lists.wanproxy.org">wanproxy@lists.wanproxy.org</a><br>
> <a href="http://lists.wanproxy.org/listinfo.cgi/wanproxy-wanproxy.org" target="_blank">http://lists.wanproxy.org/listinfo.cgi/wanproxy-wanproxy.org</a><br>
><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><font color="#663333"><font face="verdana, sans-serif">Boxiang Pan</font><br><br></font><div><div><font color="#663333">Department of Electrical and Computer Engineering</font></div>
<div><font color="#663333">University of California, San Diego </font></div><div><font color="#663333"><br></font><br></div><div><br></div></div>
</div>