Putty.exe – SSH Dynamic port forwarding with SOCKS aka SOCKS Proxy

Port forwarding allows remote computers (for example, computers on the Internet) to connect to a specific computer or service within a private local-area network (LAN). Port forwarding via SSH (SSH tunneling) creates a secure connection between a local computer and a remote machine through which services can be relayed.

There are three types of port forwarding with SSH:
a. Local port forwarding: connections from the SSH client are forwarded via the SSH server, then to a destination server
b. Remote port forwarding: connections from the SSH server are forwarded via the SSH client, then to a destination server
c. Dynamic port forwarding: connections from various programs are forwarded via the SSH client, then via the SSH server, and finally to several destination servers

Local port forwarding is the most common type. For example, local port forwarding lets you bypass a company firewall that blocks Wikipedia.

Remote port forwarding is less common. For example, remote port forwarding lets you connect from your SSH server to a computer on your company’s intranet.

Dynamic port forwarding is rarely used. For example, dynamic port forwarding lets you bypass a company firewall that blocks web access altogether. Although this is very powerful, it takes a lot of work to set up, and it’s usually easier to use local port forwarding for the specific sites you want to access.

Port-forwarding is a widely supported technique and a feature found in all major SSH clients and servers, although not all clients do it the same way. For help on using a specific client, consult the client’s documentation. For example, the PuTTY manual has a section on port forwarding in PuTTY.

For this article I will only show the “Dynamic port forwarding”

  1. Open your Putty.exe and type your DNS name with the local port 22

putty1

however before we continue we need to make verification of our public IP address for me im using 192.5.6.3 for this tutorial as show below

putty1a

2. In your Putty after you type your DNS name we need to configure the Dynamic port. Go to SSH-> Source port: 2222 and select the radio button “Dynamic” and “Auto”.

putty2

Then press okay to login in your Linux Box

 

putty1c

3. Launch the IE browser go to Tools -> Internet Options -> Lan Settings -> check the “Proxy Server” as show below and then go to “Advanced” to configure the port

putty4

4. “Use 127.0.0.1 port 2222” as show

putty5

 

5. Now check again your IP address it should show the IP address of your Linux box and now you can connect to local private network in the remote site to open the application in your browser.

putty7

Be the first to comment on "Putty.exe – SSH Dynamic port forwarding with SOCKS aka SOCKS Proxy"

Leave a comment

Your email address will not be published.