I use ssh tunnel as web proxy, it works well, but it often stops responding after I browse a while, which can be several minutes or one hour, putty client doesn't respond either. I have to start a new putty client to continue using it.

If I don't use the tunnel for browsing, my putty client can usually keep alive for several hours even when I don't use the computer, it doesn't seem to be caused by the connection between my server (freebsd) and my computer. When browser and putty stop responding, if I close the browser, putty may recover after a while.

What's the possible reason for that? Thanks!

link|improve this question
feedback

closed as off topic by womble, Jason Berg, Scott Pack, Holocryptic, Iain Jul 30 '11 at 19:00

Questions on Server Fault are expected to generally relate to servers, networking, or desktop infrastructure, within the scope defined in the faq.

2 Answers

Next to impossible to guess without logs (client, server, etc.). You may try going through the logs as the starting point.

link|improve this answer
feedback

You use the words 'keep alive', but are you actually using the KeepAlive option?

If not, turn it on! It'll keep your TCP session from timing out. It's possible there's a stateful firewall in the way.

link|improve this answer
Thanks, I will give it a try. – lastsmoke Jul 31 '11 at 1:57
Still the same...Putty client rarely gets disconnected, but with ssh tunnel browsing, the browser and putty will easily hung. – lastsmoke Jul 31 '11 at 2:48
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.