View Single Post
Old 9th September 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Default

$ ssh user@gateway -p 2205 -L 8080:10.0.0.61:80

That will open port 8080 on your local machine, and forward any packets that hit it to port 80 on machine 10.0.0.61 on the remote network. (My man page specifies a capital L). Specify localhost (127.0.0.1) if you want the remote server itself to receive the packets.

-R does the same thing in reverse: Opens the port on the remote end and forwards packets back to your network.
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote