Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In Putty, there are three tunneling options:

enter image description here

Can someone explain what is the difference between them?

share|improve this question

4 Answers 4

up vote 9 down vote accepted

From the puTTY documentation, specifically, 4.23 The Tunnels Panel section:

Set one of the ‘Local’ or ‘Remote’ radio buttons, depending on whether you want to forward a local port to a remote destination (‘Local’) or forward a remote port to a local destination (‘Remote’). Alternatively, select ‘Dynamic’ if you want PuTTY to provide a local SOCKS 4/4A/5 proxy on a local port (note that this proxy only supports TCP connections; the SSH protocol does not support forwarding UDP).

  • Local -- Forward local port to remote host.
  • Remote -- Forward remote port to local host.
  • Dynamic -- Use SOCKS.
share|improve this answer
    
What is the benefit of using SOCKS5? –  LanceBaynes May 23 '11 at 17:29
    
@LanceBaynes: Benefits? As when compared to what? I'm not sure I understand what you're asking. –  jscott May 23 '11 at 18:13
    
sry, against the Local/Remote –  LanceBaynes May 23 '11 at 18:19
    
@lanceBaynes: The configuration of the resources you are accessing will determine which of the three options you need to use. This isn't a case of one option being "better" than the others. –  jscott May 23 '11 at 18:29

Local / Remote chooses whether you're connecting to a local port or a remote port (your own pc or another pc)

Dynamic is for a SOCKS proxy

See 4.19.2 Port forwarding http://the.earth.li/~sgtatham/putty/0.54/htmldoc/Chapter4.html

share|improve this answer

a local server is, well, local

typically it means a local server is connected on your LAN (local area network) and a remote server is not on you lan but connected over your WAN (wide area network) remote could be next door or the next continent or it could be in the same room, simply on separate network.

share|improve this answer
    
Welcome to ServerFault. Unfortunately your answer does not contribute or add to the discussion, especially for a question which was answered last year. Check out any open questions and see if you can help there instead. –  Brent Pabst Oct 17 '12 at 21:22
    
This isn't really relevant in context. You wouldn't set this according to the location of the server on the network, but rather whether you want to access the tunnel from the local machine (on which putty is running) or the remote machine (on which sshd is running). –  Falcon Momot May 24 '13 at 10:45

The answer from jscott is correct, however after reading it, it was still not completely clear to me when should I use local and when remote. So I researched further, and I have found the answer here:

Use local if you need to if you have a service running on a machine that can be reached from the remote machine, and you want to access it directly from the local machine. After setting up the tunneling you will be able to access the service using your local host IP (127.0.0.1)

Use remote if you have a service that can be reached from the local machine, and you need to make it available to the remote machine. It opens the listening socket on the machine you have used SSH to log into.

Dynamic is like local, but on the client side it behaves like a SOCKS proxy. Use it if you need to connect with a software that expects SOCKS forwarding.

share|improve this answer
1  
Specifically, remote opens the listening socket on the machine you have used SSH to log into. –  Falcon Momot May 24 '13 at 10:46
    
@FalconMomot Exactly. I have added your remark to the answer to make it clearer. –  lbalazscs May 24 '13 at 14:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.