Hi,<div><br></div><div>I am still having some doubts understanding the first example (proxying over ssh) at <a href="http://wanproxy.org/examples.shtml">wanproxy.org/examples.shtml</a>. </div><div><br></div><div>Please correct me if I am wrong. From my understanding, we have a client  machine, on which we have client.conf and run wanproxy -c client.conf. In the client.conf, it listens on if0.host on port if0.port, then forward the connection to peer0.host on peer0.port. </div>
<div><br></div><div>Next, we have a server machine, on which we have server.conf. In server.conf, it listens incoming connection on if0.host on if0.port ( This implies that "peer0.host, peer0.port" in client.conf should be the same as "if0.host, if0.port" in server.conf) , and forward the connection to peer0.host ("intranet" in the example) on peer0.port. Finally, on the server machine, we run "<span style="font-family:monospace;font-size:medium;background-color:rgb(255,255,255)">ssh -L 3301:localhost:3301 </span><cite style="font-family:monospace;font-size:medium;background-color:rgb(255,255,255)">username</cite><span style="font-family:monospace;font-size:medium;background-color:rgb(255,255,255)">@</span><cite style="font-family:monospace;font-size:medium;background-color:rgb(255,255,255)">server</cite><span style="font-family:monospace;font-size:medium;background-color:rgb(255,255,255)"> wanproxy -c </span><cite style="background-color:rgb(255,255,255)"><font face="monospace" style="font-size:medium">server.conf " , </font><font face="arial, helvetica, sans-serif"><span style="font-style:normal">where the </span>username<span style="font-style:normal"> is the login name of the server machine. (question: what should </span>localhost<span style="font-style:normal"> in the above command be if my client and server are separate machines on the same LAN?) </span></font></cite></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Besides the server and the client, we also have a third machine "intranet", that listens on "peer0.port" in the server.conf ( 80 in the example). This machine does not need to have wanproxy installed. <br clear="all">
</font><div><br></div><div>What we did here was to forward everything that goes to "if0.host , if0.port"  in client.conf , by the proxy at "if0.host, if0.port" in server.conf,  to the "intranet" machine at port 80.  For example, if I type "ssh <i>user</i>@<a href="http://127.0.0.1">127.0.0.1</a> -p 3300", it will actually connect to "intranet" on port 80. </div>
<div><br></div><div>Please correct me if I am wrong. Thank you very much. </div><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">Tel: 858-999-7655<br></font><br></div><div><br></div></div>
</div>