All Packages Class Hierarchy This Package Previous Next Index
Class jTunnel.Ojt
java.lang.Object
|
+----jTunnel.Ojt
- public class Ojt
- extends Object
- implements Runnable
It's mostly designed to open connections thru
a firewall Ijt.class is the class to run on a
computer "Inside" the firewall zone
Ojt.class is the class to run on an outside computer
Ijt will connect to Ojt and create a "Tunnel" where
all the outside requests will transit. Ijt then open
as much sockets as needed.
"for more details read the code :)"
Well how to make it works. ..
on the Outside computer type
"java Ojt "
on the Inside computer type
"java Ijt "
(Wait Time) is the time in minutes Ijt will wait if the
connection is aborded
now only the servers are running.
to affect a port on the Outside computer to the
inside world type "telnet "
once logged in type "hello" to show you are a human
then "help" will give u some help
Exemple: O = outside computer ; I = inside computer
O# java Ojt 1080 > O.log &
I# java Ijt O.perki.org 1080 10 > I.log &
O# telnet localhost 1080
hello
open 2080 toto.inside.net 80
quit
Now if you use the port 2080 of 0.perki.org you will be
connected to the port 80 of toto.inside.net
You can also specify all the connections to open at stratup:
O# java Ojt 1080 2080 toto.inside.net 80 2023 toto.inside.net 23
this is equal to : open 2080 toto.inside.net 80
open 2023 toto.inside.net 23
This is free software as long as you don't make money with it.
To build JTunnel I used a lot of code from proxy.java writen
by Matthias L. Jugel .. Thanx
-
Ojt(int)
-
-
main(String[])
-
usage: Ojt
-
run()
-
Ojt
public Ojt(int m_port)
main
public static void main(String args[])
- usage: Ojt
run
public void run()
All Packages Class Hierarchy This Package Previous Next Index