Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know this is probably a common question, but after looking around for a few hours (on this site and others), I can't find a solution.

I'm trying to set up a simple proxy. I already have a server running Windows Server 2008.

I've installed Cygwin and have OpenSSH installed. I also have sshd (the openssh daemon) running. Port 22 is forwarded correctly.

On my client side I have Putty on a Windows 7 machine. I can successfully open a connection to my server and log in to access the shell.

So what do I do next?

Do I just name the ports I want tunneled in Putty or do I need to tell my SSH server what to do with those ports?

Thanks for the help. Let me know if I left anything out.

Edit: Ended up using the following: Link

Just wish I could get it to work with FoxyProxy.

Also, for anyone looking in the future, don't forget to forward your DNS requests also. It took me a while to figured out why blocked sites were still being blocked, even with all my traffic being tunneled through my connection.

share|improve this question – Zoredache Mar 9 '10 at 2:19

You need to use the -D option to ssh. This sets up a SOCKS proxy listening on localhost connecting through the ssh server. eg

ssh -D 8080

Then configure FoxyProxy with a SOCKS proxy for localhost port 8080. Using FoxyProxy is incredibly useful here because it lets you use patterns to only tunnel the traffic you want to be proxied. Eg. you can access your corporate intranet web sites seamlessly but all of your other web requests go out your regular gateway (so you can safely browse your pr0n sites while working from home).

share|improve this answer
Easiest solution I've tried so far and it's really effective. Consider accepting this solution cause it does work. – sataniccrow May 29 '14 at 9:10

I assume you want to proxy other things over your SSH connection? All you need to do is add the ports you want to the Putty connection on the clientside. It's under Connection->SSH->Tunnels in the Putty configuration. Local vs Remote vs Dynamic forwarding depending on what exactly kind of tunneling you want to do, and in which direction you want the tunnel to be open.

Here are a bunch of tutorials explaining the process in detail.

share|improve this answer

Your Answer


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.