LOCAL port forwarding:
$ ssh -L 1234:127.0.0.1:4321 61.1.1.2
^^^^^^^^^^^^^^^
<local portion>
will forward the local port 1234 to 6.1.1.2 4321.
I have indicated the local portion above.
You can check it like this.
$ nc -l -p 1234
on the localhost
and
$ nc -l -p 4321
or even you can port forward to the remote web server on port 80.
When clients connect to your machine on port 1234, all traffic will go
to the remote end 4321.
So after executing the above 3 commands, you can type on the local machine
$ nc 127.0.0.1 1234
hi
and hi will be printed both the nc servers above.
This command
REMOTE port forwarding:
$ ssh -R 4000:192.168.1.15:2000 61.1.1.4
^^^^^^^^^^^^^^^^^^^^^
<local portion>
will forward the port 4000 on the remote end 61.1.1.4 to the machine
192.168.1.15 on your local LAN port 2000.
I have indicated the local IP and port above. So this is the way you
think thro' it.
In local port forwarding the first port and first IP are local as I
indicated above.
In remote port forwarding the first IP and second port are local.
Think for half an hour. You will get it. And PLEASE TRY OUT stuff.
No use reading my tips without hard work from your side.
My tips are not for reading and archival.
You have to learn by doing. There is NO other way.
You have to learn technology by executing commands.
Study is only 50%. Action is the more important 50%.
I can't make it any more clearer.
Thanks.
-Girish
--
Gayatri Hitech
web: http://gayatri-hitech.com
SpamCheetah Spam filter:
http://spam-cheetah.com
_______________________________________________
To unsubscribe, email [email protected] with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc