IMPORTANT NOTE: If you use a unix system "java -cp .;./libs/apache-commons.jar" should be replaced by "java -cp .:./libs/apache-commons.jar" Notice the colon and semicolon diferences. If you are using windows you have to do the other way arround, change the : with a ;. Mac users... i don't know, try one way, and if it doesn't work try the other one ;) Redirection examples: --------------------- * Redirect local 8080 port to www.google.com port 80 java -cp .;./libs/apache-commons.jar javatunnel.JavaTunnelClient -mode Redirect -l 8080 -d www.google.com -dport 80 * Redirect local 1234 port to 192.168.1.24 port 23 java -cp .;./libs/apache-commons.jar javatunnel.JavaTunnelClient -mode Redirect -l 1234 -d 192.168.1.24 -dport 23 SSL Proxy examples ------------------ * Use 192.168.0.2:3128 SSL enabled proxy to bounce against www.google.com port 80 from localport 8080 That means that all tcp/ip data incoming to localport 8080 will be sent emulating a SSL connecition using 192.168.0.2:3128 proxy to the following destiantion www.google.com:80 java -cp .:./libs/apache-commons.jar javatunnel.JavaTunnelClient -mode SSLProxy -l 8080 -d www.google.com -dport 80 -p 192.168.0.2 -pport 3128 * And another example: using proxy myproxy.mycompany.com:8080 to bounce against aforbiddensite.net:80 from localport 666 java -cp .:./libs/apache-commons.jar javatunnel.JavaTunnelClient -mode SSLProxy -l 666 -d aforbiddensite.ne -dport 80 -p myproxy.mycompany.com -pport 8080 HTTP Tunneling examples: ------------------------ *Using myproxy.mycompany.com:8080 proxy and myserver.javatunnel.com:80 as a tunnel server connect to forbiddenplace.com:666 using localport 1234 java -cp .:./libs/apache-commons.jar javatunnel.JavaTunnelClient -mode HTTPTunnel -l 1234 -d forbiddenplace.com -dport 666 -p myproxy.mycompany.com -pport 8080 -s myserver.javatunnel.com -sPort 80 *And a more usefull example, how to connect to a irc server if you live behind a http proxy: java -cp .:./libs/apache-commons.jar javatunnel.JavaTunnelClient -mode HTTPTunnel -l 6667 -d theircservername.com -dport 6667 -p myproxy.mycompany.com -pport 8080 -s myserver.javatunnel.com -sPort 80 It may be usefull for some servers to add to your computer hots file the server name pointing to your loopback address, and use the server name in the irc client. HTTP Proxy Mode examples ------------------------ *Using myserver.javatunnel.com:80 as th tunnel server set a HTTPProxy in the local machine listening in port 8080 java -cp .:./libs/apache-commons.jar javatunnel.JavaTunnelClient -mode HTTPProxy -l 8080 -s myserver.javatunnel.com -sport 80 Now set the preferences of your favaourite web browser to use as proxy the HTTPProxy ip and port(or localhost if it runs in the same machine) and enjoy. *Using myserver.javatunnel.com:8080 as the tunnel server, myproxy.mycompany.com:8080 as a http proxy set a HTTPProxy listening at port 8080 java -cp.:./libs/apache-commons.jar javatunnel.JavaTunnelClient -mode HTTPProxy -l 8080 -s myserver.javatunnel.com -sport 8080 -p myproxy.mycompany.com -pport 8080 Have Fun.