From wiki
Port forwarding or port mapping is a name given to the combined technique of:- translating the address and/or port number of a packet to a new destination
- possibly accepting such packet(s) in a packet filter (firewall)
- forwarding the packet according to the routing table.
The destination may be a predetermined network port (assuming protocols like TCP and UDP, though the process is not limited to these) on a host within a NAT-masqueraded, typically private network, based on the port number on which it was received at the gateway from the originating host.
The technique is used to permit communications by external hosts with services provided within a private local area network.
Examples
Windows serverKad dodje komunikacija prema 213.186.16.227:1433 preusmjeri to na 192.168.7.27:1433
netsh interface portproxy add v4tov4
listenport=1433 listenaddress=213.186.16.227
connectport=1433 connectaddress=192.168.7.27
Display all port forwards::
netsh interface portproxy show all
Delete:
netsh interface portproxy delete v4tov4
listenport=1433 listenaddress=213.186.16.227
For putty tunneling:
http://www.codemastershawn.com/library/tutorial/ssh.tunnel.php