How do I find out the type of http proxy server I'm tunneling through?
-
Following standard online directions, I set up an ssh tunnel at home using putty to access private web pages accessible only on my work network. Fortunately, this just worked; when I sshed into a machine on our private network with the tunneling options set in putty, and set my browser to use the corresponding port on localhost, I could access web pages on our private network. I am curious how this typically works on the server side. Did someone already set up a proxy server in addition to the ssh server? The following question seems to suggest that this is unnecessary, and that the ssh server already supports http proxy requests: http://superuser.com/questions/92934/do-i-need-to-have-a-proxy-server-to-have-http-over-ssh How I can investigate on my own to see which http proxy server my traffic is going through?
-
Answer:
The SSHv2 protocol includes functionality for requesting that the server http://tools.ietf.org/html/rfc4254#section-7.2 and relay data between the client (you) and the given remote host, over your SSH connection. All it cares about is the raw TCP stream. Your SSH client (i.e. PuTTY or OpenSSH) is able to use this functionality in several ways: in addition to statically configured remote host:port ("local forwarding" or "remote forwarding"), the client is also able to act as a http://en.wikipedia.org/wiki/SOCKS server allowing other programs (such as Firefox) to specify where to connect. To the browser, your SSH program looks like an ordinary SOCKS proxy server. (The SSH server you are connecting to doesn't know all of this – it just acts on the "open a TCP connection to google.com:80" requests. No additional proxy server is involved, either.) web browser ↔ (SOCKS 5) ↔ SSH client ↔ (SSH) ↔ SSH server ↔ (TCP) ↔ web server Note that the proxy protocol used is SOCKS, not HTTP. In other words, the SSH client doesn't care about HTTP requests – it works at a lower level, relaying raw TCP connections. This also means that any protocol using TCP can be tunneled this way, including mail, HTTP/SSL, and SSH itself.
jonderry at Super User Visit the source
Related Q & A:
- How do i find my incoming server and my outgoing email server name?Best solution by Yahoo! Answers
- How do I find out if my incoming e-mail server is a POP3 or IMAP?Best solution by Yahoo! Answers
- How do I find out my incoming/outgoing email server type for yahoo?Best solution by Yahoo! Answers
- How do I find my e-mail server and the outgoing server so I can e-mail?Best solution by Yahoo! Answers
- How do I find the name of my Incoming Mail server?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.