Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
    
hak5.org/episodes/episode-416 –  Zoredache Mar 9 '10 at 2:19
add comment

2 Answers

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
add comment

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

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 at 9:10
add comment

Your Answer

 
discard

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.