Note that there are some explanatory texts on larger screens.

plurals
  1. POTunnel over HTTPS
    text
    copied!<p>At my workplace, the traffic blocker/firewall has been getting progressively worse. I can't connect to my home machine on port 22, and lack of ssh access makes me sad. I was previously able to use SSH by moving it to port 5050, but I think some recent filters now treat this traffic as IM and redirect it through another proxy, maybe. That's my best guess; in any case, my ssh connections now terminate before I get to log in.</p> <p>These days I've been using Ajaxterm over HTTPS, as port 443 is still unmolested, but this is far from ideal. (Sucky terminal emulation, lack of port forwarding, my browser leaks memory at an amazing rate...) I tried setting up <code>mod_proxy_connect</code> on top of <code>mod_ssl</code>, with the idea that I could send a <code>CONNECT localhost:22 HTTP/1.1</code> request through HTTPS, and then I'd be all set. Sadly, this seems to not work; the HTTPS connection works, up until I finish sending my request; then SSL craps out. It appears as though <code>mod_proxy_connect</code> takes over the whole connection instead of continuing to pipe through <code>mod_ssl</code>, confusing the heck out of the HTTPS client.</p> <p>Is there a way to get this to work? I don't want to do this over plain HTTP, for several reasons:</p> <ul> <li>Leaving a big fat open proxy like that just stinks</li> <li>A big fat open proxy is not good over HTTPS either, but with authentication required it feels fine to me</li> <li>HTTP goes through a proxy -- I'm not <em>too</em> concerned about my traffic being sniffed, as it's ssh that'll be going "plaintext" through the tunnel -- but it's a lot more likely to be mangled than HTTPS, which fundamentally cannot be proxied</li> </ul> <p>Requirements:</p> <ul> <li>Must work over port 443, without disturbing other HTTPS traffic (i.e. I can't just put the ssh server on port 443, because I would no longer be able to serve pages over HTTPS)</li> <li>I have or can write a simple port forwarder client that runs under Windows (or Cygwin)</li> </ul> <h2>Edit</h2> <p><a href="http://dag.wieers.com/howto/ssh-http-tunneling/" rel="noreferrer">DAG: Tunnelling SSH over HTTP(S)</a> has been pointed out to me, but it doesn't help: at the end of the article, they mention <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=29744" rel="noreferrer">Bug 29744 - CONNECT does not work over existing SSL connection</a> preventing tunnelling over HTTPS, exactly the problem I was running into. At this point, I am probably looking at some CGI script, but I don't want to list that as a requirement if there's better solutions available.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload