Alternative Putty Tunnel


Following on from my post The Putty Tunnel If you need to create an ssh tunnel on a browser that doesn’t have foxy proxy installed then here is an alternative way to do it. I favour Firefox but it should work similarly on less favourable browsers 🙂

Putty / Tutty

  • Create an ssh session to CM
  • select SSH / Tunnel
  • In source port put a number i.e. 9080 click dynamci and add.
  • Click Session and save to you CM connection
  • Open and login to CM once at the command line leave it open.

Firefox Browser

  • goto options / advance / network tab /settings
  • change from no proxy to manual proxy
  • add 127.0.0.1 and your port you created earlier i.e 9080 then click ok

** Remember ot go back in the options / advanced / network / settings and click no proxy and ok to disable it again for normal browsing when finished. **

The Putty Tunnel


 

Using putty and firefox to tunnel across to web pages.

Download foxy proxy and add it to your browser (also available for chrome)

In putty on your cm connection go to SSH / Tunnels and enter a source port i.e 9080 and then click on Dynamic and save it your CM session.

image

Now open Firefox and right click on the foxy proxy icon image at the top of the browser and click options.

Click add new proxy

In the Host or IP Address enter 127.0.0.1 in the Port enter your port number you entered in putty i.e 9080 and then click SOCKS proxy and ok

image

Now double click on your new entry

image

Give it a name i.e. Tunnel and change the colour so you can distinguish it, then click on the URL Patterns tab.

image

For each ip address pattern you want to connect to add a new URL pattern for example for 10.x.x.x addresses I enter 10.* for the name and *://10.*  then click ok. This will allow we to connect to anything in that range once I have a successful tunnel open to CM.

image

Now open putty and connect to your CM session and login. Leave the session open. In your Firefox brower right click on the foxy proxy icon and select your new tunnel proxy. Enter the address of the device you are trying to connect to and if it is working you should see the foxy proxy icon spin. image