Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Recently I've tried to set up proxy using ssh -D 2454 username@servername (to browse the Internet through ssh tunnel), but failed to do this correctly. I would be happy for any suggestions and/or links to manuals, containing some useful information or hints on how to troubleshoot it.

Here is more detailed description of the problem

  1. I run ssh -D 2454 TheUser@TheServer (under user, not root). The command connects to TheServer and shows no warnings.
  2. In Mozilla Firefox under Edit>Preferences>Advanced>Connection Settings I choose the following settings: Manual proxy configuration, HTTP Proxy: 127.0.0.1, Port: 2454, SOCKS v5 (click this link to see the printscreen)
  3. Try to load a few pages. Firefox says "The connection to the server was reset while the page was loading".

However Firefox feels that I forwarded the port: if I skip step 1 it says "Firefox is configured to use a proxy server that is refusing connections".

Some technical details:

  1. Local computer (127.0.0.1) is running Ubuntu 11.10.
  2. Remote computer (TheServer) is running Windows 7 with Cygwin.
  3. ssh connection does work (I can run commands on TheServer, rsync successfully downloads files from it)
  4. Proxy over ssh works just fine when I boot Windows and set it up with putty (with TheUser and TheServer unchanged).
  5. Mozilla Firefox works just fine without proxy.
share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

The option -D is emulating the SOCKS proxy - thus I would rather remove the configuration from HTTP proxy fields and move it to the SOCKS proxy fields. I'm surprised it worked via putty.

Second thing, verify if the server can connect to the pages that you are trying to test. Try to establish a connection from the server somehow - lynx, links, or maybe firefox via VNC. If you don't have these, it would leave you with nc or telnet, which work as well but are harder to use.

share|improve this answer
1  
Thank you. Indeed, I've written configuration to the wrong place. It should be in SOCKS proxy fields. Now, thanks to you, it works. –  fiktor Feb 5 '12 at 19:53
    
I don't think you can do much with nc or telnet to a SOCKS server? how far can you get in testing in doing that? –  barlop May 19 '12 at 13:55
    
Huh? I don't understand this answer. –  Bryce Jun 5 at 22:52
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.