3

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.

clang1234
  • 131
  • 1
  • 6

2 Answers2

2

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 my.host.com

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).

jdizzle
  • 558
  • 3
  • 8
  • 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 09:10
0

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.

davr
  • 1,729
  • 3
  • 14
  • 25