PORT
FORWARD
What
is port forward ?
Port
forward is a java application which gives you the ability to open
tunnes between your local computer and a remote ssh server.
Tunnels can be created both local or remote
Examples:
- Open a local tunnel to reach
a remote mysql database
Your application needs to connect to a remote database server (mysql
for example), but the database server (remote.server.example) is not
configured to expose mysql to internet directly.
Port forward will open a local port (3306) and redirect the connections
to remote.server.example ssh server
The remote.server.example ssh server will connect to it's local mysql
server

- Open a local tunnel to use a
remote VNC desktop
You want to connect to your home computer which has a vnc server but
from work, the firewall blocks vnc connections (generally on port 5901)
If you have a ssh server at home, you could use it as bridge to connect
to a client in your home:
| Your
position |
internet |
your
linux ssh server ->>
|
-->>
you client with vnc (192.168.0.40)
|
you
office
|
internet |
<<<<<
----- your home ----- >>>>>
|

You will be now able to connect using a vncclient giving 127.0.0.1:0 as
address
- Open a remote tunnel to
pilot a remote linux server non reachable through internet
In this example, you will create a remote tunnel, this will give the
remote man to connect to and reach you.
I used this example if I have to pilot a remote pc, but this pc has no
static IP or is behind a firewall
The good solution is to activate port forward on the pc to be piloted
and to connect it to a server we can access.
PC 1 (to be piloted) --||||-- firewall ----- internet -----
accessible-server
As you can see in this situation, if firewall does not use NAT, you
have no way to reah PC 1
If you start port forward like this:

you will create a port (10000) on the accessible-server
(remote.server.example) which will redirect connections to the PC 1 to
a ssh server (port 22)
News
24/01 (January) /2006
second update: minor feature, added button to select command to execute upon succesfull connection
13/11 (november) /2005
first update: add ping ssh command to check if connections is up
05/02 (february) /2005
portforward is published on internet
26/02/2005
- After connection command added. (After successfully connected to
server, selected command is automatically executed on client)
- start and connect (you can launch portForward giving option: -e
connectionName , it will connect using the selected connection)
Download
License
Peoples
This
project is developed by
- Brisa Francesco (Italy)

Screenshoots
How
To
You
need to have installed a java virtual machine, at least a j2re 1.4.2 to
execute it.
Once downloaded and extracted to portforward.tar.gz
Under Linux:
Be
sure java is in you classpath
tar zxvf portforward.tar.gz
cd portForward
sh run_linux.sh
Under
windows:
Extract
portforward.tar.gz
open portForward directory
open runme.bat and edit first row to point to correct position of your
J2SE directory
execute it with runme.bat
Links