Reply
antdude
Posts: 108
Registered: ‎10-18-2008

Can't get PuTTY's SSH proxy to work. Router related?

Hello.

I am trying to set up SSH proxy with PuTTY v0.60 on my home network, but it is not working correctly. It used too many months ago. I tried following many online instructions like on http://www.jonlee.ca/how-to-secure-your-traffic-using-an-ssh-tunnel-with-putty/ and http://blogs.techrepublic.com.com/security/?p=421 ...
1. Configured and tested a SSH2 connection to a SSH server with any proxy settings. Logged off and exited PuTTY.
2. Relaunched PuTTY, reconfigured that connection, and added proxy datas: Configuration -> Connection -> SSH -> Tunnels -> added source port (e.g., 7070 or 60000). destination (e.g., 127.0.0.1 or localhost), selected Dynamic to see D7070 or D60000 in Forwarded ports box.
3. Saved the updated session and tested PuTTY's SSH connection which worked.
4. Went to the web browser's proxy settings. For example with IE6's Internet Options -> Connections tab -> LAN Settings for proxy server option. Checked its box and entered an address (e.g., 127.0.0.1 or localhost) and port (e.g., 7070 or 60000).
5. Hit OK buttons to save.
6. Went to Web sites on Internet and got "The page cannot be displayed. The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings..." In Firefox and SeaMonkey, I get a blank page with no errors (nothing in its source either). I can reproduce this on three different computers (even a virtual one), two updated Windows (Windows 2000 SP4 and XP Pro. SP3) and three web browsers (Internet Explorer v6.0, and Mozilla's Firefox v2.0.0.20 and SeaMonkey v2.0.4).

If I disconnect from SSH server and retry a Mozilla's web browser with its proxy settings, then it tells me "Proxy Server Refused Connection. The connection was refused when attempting to contact the proxy server you have configured. Please check your proxy settings and try again." So it looks like I have it set up correctly in PuTTY and web browsers.

I recalled proxy was working in the past, but that's probably on my previous routers. Does Linksys WRT54GL v1.1 block proxies or something that I don't know about (didn't see anything from searches)? Also, I use OpenDNS on my router (don't think that would cause this problem since it is just DNS').

Thank you in advance. :smileyhappy:

Klatch
Posts: 2,829
Registered: ‎09-07-2006

Re: Can't get PuTTY's SSH proxy to work. Router related?

Do not use the proxy server.The box you are entering the ip address or host name,use the ip address of the router(192.168.1.1).Also,open the ports 7070 and 60000 and check.

antdude
Posts: 108
Registered: ‎10-18-2008

Re: Can't get PuTTY's SSH proxy to work. Router related?

 


Klatch wrote:

Do not use the proxy server.The box you are entering the ip address or host name,use the ip address of the router(192.168.1.1).Also,open the ports 7070 and 60000 and check.


Actually, I got it working last night with another reply in http://www.dslreports.com/forum/r24390644-Unable-to-get-PuTTYs-SSH-proxy-to-work forum thread. I misconfigured PuTTY's tunneling (only needed top from the replies in »Unable to get PuTTY's SSH proxy to work. ...

 

For 192.168.1.1, router acts like a proxy to the outside/external Linux servers?

 

Klatch
Posts: 2,829
Registered: ‎09-07-2006

Re: Can't get PuTTY's SSH proxy to work. Router related?

The router doesn’t really act as a proxy, which is why you need to open ports on the router for any internal servers. All the router does here is NAT the private internal IP to the public external IP and vice versa.

antdude
Posts: 108
Registered: ‎10-18-2008

Re: Can't get PuTTY's SSH proxy to work. Router related?


Klatch wrote:

The router doesn’t really act as a proxy, which is why you need to open ports on the router for any internal servers. All the router does here is NAT the private internal IP to the public external IP and vice versa.


Oh, I know about that, but I was connecting from my internal computers to another server OUTSIDE. I am not connecting to my computers behind my WRT54GL router. :smileyhappy: Anyways, the issue is resolved though. :smileywink: