problems when running the example for ssh wan optimization

Juli Mallett juli at clockworksquid.com
Tue Feb 12 10:20:17 PST 2013


Boxiang,

To measure the improvement, you might try transferring a large file of
random data over HTTP through the proxy.  Download it twice, and you
should see the difference the second time.

An 'interface' is something WANProxy listens on, a 'peer' is something
it connects to.  Does that make sense?  And yes, in the example setup
there is a third machine running an HTTP server called 'intranet', to
which connections are being proxied.

Thanks,
Juli.

On Tue, Feb 12, 2013 at 8:57 AM, Boxiang Pan <aquarypbx at gmail.com> wrote:
> Hi, Juli,
>
> Thank you so much for your quick reply.
>
> 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 http://wanproxy.org/examples.shtml , how can we measure
> the improvement?
>
> 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?
>
> Thank you very much for your explanation. It will definitely be very helpful
> for us to understand how to use WANProxy.
>
> On Mon, Feb 11, 2013 at 1:46 AM, Juli Mallett <juli at clockworksquid.com>
> wrote:
>>
>> Boxiang,
>>
>> You will need to check out WANProxy trunk from Subversion rather than
>> using the 0.8.0 release if you want to use SSH optimization.  If you
>> could provide me with your configs and the exact commands you're
>> trying to run if you still having trouble after updating, I should be
>> able to give you more specific help with your other issues.
>>
>> Thanks,
>> Juli.
>>
>> On Mon, Feb 11, 2013 at 12:39 AM, Boxiang Pan <aquarypbx at gmail.com> wrote:
>> > Hello,
>> >
>> > We just started to use WANProxy, we were trying to run the example on
>> > http://wanproxy.org/ssh.shtml about SSH WAN optimization, but when we
>> > tried
>> > to scp to the server by using  $scp -P 2200
>> > username at server_ip:~/somefile.zip  .  , the client received an error
>> > saying
>> > "connection refused" . We noticed that on the webpage, it mentions that
>> > both
>> > server and client will require an RSA private key. Our question is :
>> > should we use "ssh-keygen -t rsa" to generate rsa key on server and
>> > client
>> > separately?
>> > which private key should we put in ssh-server1.pem on each machine?
>> >
>> > Below is a detailed description the problem we encountered and a
>> > screenshot
>> > is here:
>> >
>> > https://docs.google.com/document/d/1qFbvN53aR1pOgGuRT5JbyVcaODL5qjAR7f0JUnAxDFU/edit?usp=sharing
>> > We'd appreciate any suggestions and help. Thank you very much.
>> > ----
>> >
>> > We have 2 machines, both connected to the same LAN, and both have
>> > installed
>> > WANProxy successfully.
>> >
>> > One machine is the client, and we put the example client.conf into the
>> > same
>> > directory as wanproxy. We changed set peer0.host "remote-server.net" to
>> > the
>> > other machine(server)'s ip address.
>> >
>> > The other machine is the server, and we put the example server.conf into
>> > the
>> > same directory as wanproxy. We changed set if1.host "0.0.0.0" to set
>> > if1.host "127.0.0.1" .
>> >
>> > Then we turned off the firewall of both machines, and ran $./wanproxy -c
>> > client.conf , Here's the error we got:
>> >
>> > Boxiangs-MacBook-Pro:wanproxy boxiang$
>> > Boxiangs-MacBook-Pro:wanproxy boxiang$ ./wanproxy -c client.conf
>> > 1360558538.469823 [/wanproxy] INFO: WANProxy 0.8.0
>> > 1360558538.469866 [/wanproxy] INFO: Copyright (c) 2008-2012
>> > WANProxy.org.
>> > 1360558538.469876 [/wanproxy] INFO: All rights reserved.
>> > 1360558538.469913 [/wanproxy/config] INFO: Configuring WANProxy.
>> > 1360558538.470113 [/config/type/enum] ERR: virtual bool
>> > ConfigTypeEnum<WANProxyConfigProxyType>::set(const ConfigValue *, const
>> > std::string &): Invalid value (SSH-SSH)
>> > 1360558538.470126 [/config/class] ERR: bool
>> > ConfigClass::set(ConfigObject *,
>> > const std::string &, ConfigType *, const std::string &): Member (type)
>> > could
>> > not be set.
>> > 1360558538.470135 [/config] ERR: bool Config::set(const std::string &,
>> > const
>> > std::string &, const std::string &): Member (type) in object (proxy0)
>> > could
>> > not be set.
>> > 1360558538.470144 [/wanproxy/config] ERR: void
>> > WANProxyConfig::parse_set(std::deque<std::string> &): Set of object
>> > member
>> > (proxy0.type) failed.
>> > 1360558538.470154 [/wanproxy/config] ERR: bool
>> > WANProxyConfig::configure(const std::string &): Error in configuration
>> > directive:    set proxy0.type SSH-SSH
>> > 1360558538.470173 [/wanproxy] ERR: int main(int, char **): Could not
>> > configure proxies.
>> > Boxiangs-MacBook-Pro:wanproxy boxiang$
>> > Boxiangs-MacBook-Pro:wanproxy boxiang$
>> >
>> >
>> > We then removed the line  set proxy0.type SSH-SSH  in both server.conf
>> > and
>> > client.conf, and then we were able to start wanproxy. We used
>> > "ssh-keygen -t
>> > rsa" to generate rsa key for both client and server, and put the private
>> > key
>> > into ssh-server1.pem file in the same directory as wanproxy. We have
>> > tried
>> > putting the private rsa generated by the client on both client and
>> > server;
>> > putting the private rsa on the client and public rsa on the server, but
>> > in
>> > either case, we got a "connection refused" error when we tried to scp to
>> > the
>> > server .
>> >
>> > --
>> >
>> > Boxiang Pan
>> >
>> > Department of Electrical and Computer Engineering
>> > University of California, San Diego
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > wanproxy mailing list
>> > wanproxy at lists.wanproxy.org
>> > http://lists.wanproxy.org/listinfo.cgi/wanproxy-wanproxy.org
>> >
>
>
>
>
> --
> Boxiang Pan
>
> Department of Electrical and Computer Engineering
> University of California, San Diego
>
>
>



More information about the wanproxy mailing list