Is there a way you can use your local internet proxy for remote computer with tunneling via SSH. My machine has access to internet via proxy. But the remote computer does not. I don't have admin rights there. Here is the schematic :

Internet   Internet
   /\         /\
   ||         ||
  proxy       XX
   ||         ||
   \/         \/

What I think I need to do is I have to remote port forward to a local port then forward that port to my proxyurl. What settings should be done in putty to make this work. Can anyone help.

migrated from serverfault.com May 9 '14 at 21:25

This question came from our site for system and network administrators.

  • Do you have admin rights anywhere in this ? – Iain May 9 '14 at 11:11
  • No, dont have admin rights in A or B. – user568109 May 9 '14 at 11:16

Yes(ish): OpenSSH supports SOCKS4/SOCKS5 compatible proxying, via the -D option.

Putty also supports this -- Look under the "Tunnels" option in the tree menu you get when you launch Putty and you should see an option for dynamic port forwarding. This is also described in the Putty documentation.

Note however that you may have issues proxying through a host that itself is going through a proxy ("Try it and see!").

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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