<div>Hi, Juli,</div><div><br></div>We will remove the ssh forwarding part then.  Here's a digram with our conf files that I drew to show what I meant in the previous email. So all traffic that goest to "<a href="http://127.0.0.1:3300">127.0.0.1:3300</a>" on the client machine (192.168.0.100) will be forward to the server (<a href="http://192.168.0.101:3301">192.168.0.101:3301</a>) , and then the server will forward the traffic to the intranet (<a href="http://192.168.0.102:80">192.168.0.102:80</a>). Is this correct? <div>
<br></div><div>Thank you. <br><br><div class="gmail_quote">On Tue, Feb 19, 2013 at 12:47 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">Your understanding sounds correct to me at a glance.  A diagram may be<br>
more helpful than text, though.<br>
<br>
Your client and server should be separate machines, whether on the<br>
same LAN or with a WAN in between them.  SSH is just being used here<br>
to encrypt and authenticate the traffic between the client and server,<br>
and to forward ports on localhost so that you don't have to have ports<br>
listening where something else could connect to them.<br>
<br>
If that's confusing or unnecessary for your testing, I would suggest<br>
that you remove the SSH port forwarding from the picture entirely.<br>
It's not necessary for correct operation, and seems to be more of a<br>
stumbling block than I had assumed when I used it in the example on<br>
the website.<br>
<br>
Thanks,<br>
Juli.<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Feb 19, 2013 at 12:19 AM, Boxiang Pan <<a href="mailto:aquarypbx@gmail.com">aquarypbx@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I am still having some doubts understanding the first example (proxying over<br>
> ssh) at <a href="http://wanproxy.org/examples.shtml" target="_blank">wanproxy.org/examples.shtml</a>.<br>
><br>
> Please correct me if I am wrong. From my understanding, we have a client<br>
> machine, on which we have client.conf and run wanproxy -c client.conf. In<br>
> the client.conf, it listens on if0.host on port if0.port, then forward the<br>
> connection to peer0.host on peer0.port.<br>
><br>
> Next, we have a server machine, on which we have server.conf. In<br>
> server.conf, it listens incoming connection on if0.host on if0.port ( This<br>
> implies that "peer0.host, peer0.port" in client.conf should be the same as<br>
> "if0.host, if0.port" in server.conf) , and forward the connection to<br>
> peer0.host ("intranet" in the example) on peer0.port. Finally, on the server<br>
> machine, we run "ssh -L 3301:localhost:3301 username@server wanproxy -c<br>
> server.conf " , where the username is the login name of the server machine.<br>
> (question: what should localhost in the above command be if my client and<br>
> server are separate machines on the same LAN?)<br>
><br>
> Besides the server and the client, we also have a third machine "intranet",<br>
> that listens on "peer0.port" in the server.conf ( 80 in the example). This<br>
> machine does not need to have wanproxy installed.<br>
><br>
> What we did here was to forward everything that goes to "if0.host ,<br>
> if0.port"  in client.conf , by the proxy at "if0.host, if0.port" in<br>
> server.conf,  to the "intranet" machine at port 80.  For example, if I type<br>
> "ssh <a href="mailto:user@127.0.0.1">user@127.0.0.1</a> -p 3300", it will actually connect to "intranet" on port<br>
> 80.<br>
><br>
> Please correct me if I am wrong. Thank you very much.<br>
><br>
> --<br>
> Boxiang Pan<br>
><br>
> Department of Electrical and Computer Engineering<br>
> University of California, San Diego<br>
> Tel: <a href="tel:858-999-7655" value="+18589997655">858-999-7655</a><br>
><br>
><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><br></div><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>