Port Forwarding
Port Forwarding can be used to encrypt email, web or any other traffic through the internet. Port Forwarding can also be used to bypass restrictive firewalls.
There are two types of Port Forwarding: Local and Remote. Local forwarding allows you to open a port on YOUR machine and associate it with a port on some remote network. such as User => port on user's box => ssh => linuxbox => mail port on email server. Remote forwarding work the same way, but backwards.
The ssh program can be told to listen on any port either on the remote or local computer, forward any service or data through the encrypted connection, and sent it to some other destination from the other end.
The main command will be ssh -f -N -L9999:mailhost:9999
-f switch tells ssh to run in the background
-N switch tells ssh to not actually run the command just do the forwarding
-L switch tells ssh which local machine to connect to. You can specify as many -L lines as you like
-C switch tells ssh to use compression
a good example is ssh -f remotesystem cat secretdata | lpr
which tells ssh to connect to remotesystem and send the information in secretdata to the printer.
Another example is to set your Linux box up to accept ssh connections and then connect to your box through an IE browser to bypass firewall restrictions. Descriptions for such a connection can be found on the buzzsurf web site.
To return to the main directory for SSH tutorials.
There are two types of Port Forwarding: Local and Remote. Local forwarding allows you to open a port on YOUR machine and associate it with a port on some remote network. such as User => port on user's box => ssh => linuxbox => mail port on email server. Remote forwarding work the same way, but backwards.
The ssh program can be told to listen on any port either on the remote or local computer, forward any service or data through the encrypted connection, and sent it to some other destination from the other end.
The main command will be ssh -f -N -L9999:mailhost:9999
-f switch tells ssh to run in the background
-N switch tells ssh to not actually run the command just do the forwarding
-L switch tells ssh which local machine to connect to. You can specify as many -L lines as you like
-C switch tells ssh to use compression
a good example is ssh -f remotesystem cat secretdata | lpr
which tells ssh to connect to remotesystem and send the information in secretdata to the printer.
Another example is to set your Linux box up to accept ssh connections and then connect to your box through an IE browser to bypass firewall restrictions. Descriptions for such a connection can be found on the buzzsurf web site.
To return to the main directory for SSH tutorials.

<< Home