<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18975"></HEAD>
<BODY bgColor=#e7e7e7><FONT face=ËÎÌå>
<DIV>
<DIV><FONT face="Courier New">Hi <SPAN id=_FoxToName>Juli</SPAN>£¬</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">Thanks for the valuable WANProxy
project! </FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">We'have "gmake" your codes on FreeBSD and Ubuntu
Linux platforms smoothly,</FONT></DIV>
<DIV><FONT face="Courier New">and try to test the WAN Optimization performance.
</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">However, we've 2 questions about the configuration
file that need </FONT><FONT face="Courier New">your help.</FONT></DIV>
<DIV><FONT face="Courier New">Per the configuration "Examples" (<A
href="http://wanproxy.org/examples.shtml">http://wanproxy.org/examples.shtml</A>):</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">a/ <U><FONT color=#0000ff>Proxying over SSH (a
VPN) to an intranet webserver</FONT></U></FONT></DIV>
<DIV><FONT face="Courier New">
<OL>
<LI><EM>Create <CITE>client.conf</CITE> on the client-side proxy containing:
</EM>
<BLOCKQUOTE><EM><TT>create codec codec0</TT><BR><TT>set codec0.codec
XCodec</TT><BR><TT>activate codec0</TT><BR><BR><TT>create interface
if0</TT><BR><TT>set if0.family IPv4</TT><BR><TT>set if0.host
"127.0.0.1"</TT><BR><TT>set if0.port "3300"</TT><BR><TT>activate
if0</TT><BR><BR><TT>create peer peer0</TT><BR><TT>set peer0.family
IPv4</TT><BR><TT>set peer0.host "<FONT
color=#0000ff>localhost</FONT>"</TT><BR><TT>set peer0.port
"3301"</TT><BR><TT>activate peer0</TT><BR><BR><TT>create proxy
proxy0</TT><BR><TT>set proxy0.interface if0</TT><BR><TT>set
proxy0.interface_codec None</TT><BR><TT>set proxy0.peer
peer0</TT><BR><TT>set proxy0.peer_codec codec0</TT><BR><TT>activate
proxy0</TT> </EM></BLOCKQUOTE>
<LI><EM>Start the client-side proxy: </EM>
<BLOCKQUOTE><EM><TT>wanproxy -c <CITE>client.conf</CITE></TT>
</EM></BLOCKQUOTE>
<LI><EM>Create <CITE>server.conf</CITE> on the server-side proxy containing:
</EM>
<BLOCKQUOTE><EM><TT>create codec codec0</TT><BR><TT>set codec0.codec
XCodec</TT><BR><TT>activate codec0</TT><BR><BR><TT>create interface
if0</TT><BR><TT>set if0.family IPv4</TT><BR><TT>set if0.host "<FONT
color=#0000ff>localhost</FONT>"</TT><BR><TT>set if0.port
"3301"</TT><BR><TT>activate if0</TT><BR><BR><TT>create peer
peer0</TT><BR><TT>set peer0.family IPv4</TT><BR><TT>set peer0.host
"intranet"</TT><BR><TT>set peer0.port "80"</TT><BR><TT>activate
peer0</TT><BR><BR><TT>create proxy proxy0</TT><BR><TT>set proxy0.interface
if0</TT><BR><TT>set proxy0.interface_codec codec0</TT><BR><TT>set
proxy0.peer peer0</TT><BR><TT>set proxy0.peer_codec
None</TT><BR><TT>activate proxy0</TT> </EM></BLOCKQUOTE>
<LI><EM>Initiate an SSH port-forwarding session and start the server-side
proxy: </EM>
<BLOCKQUOTE><EM><TT>ssh -L 3301:<FONT color=#0000ff>localhost</FONT>:3301
<CITE>username</CITE>@<CITE><FONT color=#0000ff>server</FONT></CITE>
wanproxy -c <CITE>server.conf</CITE></TT>
</EM></BLOCKQUOTE></LI></OL></FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New"> <FONT color=#0000ff><STRONG>Kindly pls adv
whether "localhost" above = "server" (sproxy's IP
address)?</STRONG></FONT></FONT></DIV>
<DIV><STRONG><FONT color=#0000ff face="Courier New"> If not, what
"localhost" means? Pls clarify. Thanks.</FONT></STRONG></DIV>
<DIV><FONT face="Courier New"> </FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">
<DIV><FONT face="Courier New">b/ <U><FONT color=#0000ff>Proxying over a WAN
using SOCKS</FONT></U></FONT></DIV><FONT face="Courier New"><EM>
<OL>
<LI>Create <CITE>client.conf</CITE> on the client-side proxy containing:
<BLOCKQUOTE><TT>create codec codec0</TT><BR><TT>set codec0.codec
XCodec</TT><BR><TT>activate codec0</TT><BR><BR><TT>create interface
if0</TT><BR><TT>set if0.family IPv4</TT><BR><TT>set if0.host
"127.0.0.1"</TT><BR><TT>set if0.port "3300"</TT><BR><TT>activate
if0</TT><BR><BR><TT>create peer peer0</TT><BR><TT>set peer0.family
IPv4</TT><BR><TT>set peer0.host "<FONT
color=#0000ff>server</FONT>"</TT><BR><TT>set peer0.port
"3301"</TT><BR><TT>activate peer0</TT><BR><BR><TT>create proxy
proxy0</TT><BR><TT>set proxy0.interface if0</TT><BR><TT>set
proxy0.interface_codec None</TT><BR><TT>set proxy0.peer
peer0</TT><BR><TT>set proxy0.peer_codec codec0</TT><BR><TT>activate
proxy0</TT> </BLOCKQUOTE>
<LI>Start the client-side proxy:
<BLOCKQUOTE><TT>wanproxy -c <CITE>client.conf</CITE></TT> </BLOCKQUOTE>
<LI>Create <CITE>server.conf</CITE> on the server-side proxy containing:
<BLOCKQUOTE><TT>create codec codec0</TT><BR><TT>set codec0.codec
XCodec</TT><BR><TT>activate codec0</TT><BR><BR><TT>create interface
if0</TT><BR><TT>set if0.family IPv4</TT><BR><TT>set if0.host "<FONT
color=#0000ff>server</FONT>"</TT><BR><TT>set if0.port
"3301"</TT><BR><TT>activate if0</TT><BR><BR><TT>create peer
peer0</TT><BR><TT>set peer0.family IPv4</TT><BR><TT>set peer0.host "<FONT
color=#0000ff>localhost</FONT>"</TT><BR><TT>set peer0.port
"3302"</TT><BR><TT>activate peer0</TT><BR><BR><TT>create proxy
proxy0</TT><BR><TT>set proxy0.interface if0</TT><BR><TT>set
proxy0.interface_codec codec0</TT><BR><TT>set proxy0.peer
peer0</TT><BR><TT>set proxy0.peer_codec None</TT><BR><TT>activate
proxy0</TT><BR><BR><TT>create interface if1</TT><BR><TT>set if1.family
IPv4</TT><BR><TT>set if1.host "<FONT
color=#0000ff>localhost</FONT>"</TT><BR><TT>set if1.port
"3302"</TT><BR><TT>activate if1</TT><BR><BR><TT>create proxy-socks
proxy-socks0</TT><BR><TT>set proxy-socks0.interface if1</TT><BR><TT>activate
proxy-socks0</TT> </BLOCKQUOTE>
<LI>Start the server-side proxy on <CITE>server</CITE>:
<BLOCKQUOTE><TT>wanproxy -c <CITE>server.conf</CITE></TT>
</BLOCKQUOTE></LI></OL>
<DIV></EM></FONT><FONT face="Courier New"> <FONT
color=#0000ff><STRONG>Kindly pls adv whether "localhost" above = "server"
(sproxy's IP address) or "Intranet" in the sample?</STRONG></FONT></FONT></DIV>
<DIV><STRONG><FONT color=#0000ff> If not, what "localhost" means? Pls
clarify;</FONT></STRONG></DIV>
<DIV><FONT face="Courier New"> <FONT color=#0000ff><STRONG>Also, we notice
that we can start the server-side proxy on Ubuntu Linux 10.10 platform
well, however fails </STRONG></FONT></FONT></DIV>
<DIV><FONT color=#0000ff><STRONG> on FreeBSD 7.3 platform -- sounds that
Ubuntu includes Socks-server while FreeBSD not? Any
ideas?</STRONG></FONT></DIV>
<DIV><STRONG><FONT color=#0000ff> </FONT></STRONG></DIV>
<DIV><STRONG><FONT color=#0000ff></FONT></STRONG> </DIV>
<DIV><STRONG><FONT color=#0000ff>Thank you Juli for the
help!</FONT></STRONG></DIV></FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">Best Regards</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">Peter Wu</FONT></DIV>
<DIV><FONT face="Courier New">In Shanghai, China</FONT></DIV>
<DIV><FONT face="Courier New">Email: <A
href="mailto:peterwu@sohu.com">peterwu@sohu.com</A></FONT></DIV></DIV></FONT></BODY></HTML>