I'm trying to create a secure tunnel that can goes through port 443 (SHTTP) to my personal server at home, which then forwards it to port 22(SSH) on my personal server at my house.
To attempt to accomplish this I have SSH set up on my personal server as well as GNU Httptunnel installed on my laptop and server (
http://www.nocrew.org/software/httptunnel.html). To test this setup everything is being done on my local network. 192.168.1.103 is my personal server running slackware and i'm tunneling from my laptop running Gentoo.
First, I set up the tunnel on my server by having all connections on port 443 fowarded to port 22:
hts -F localhost:22 443
Next I forwarded all connections to port 22 to port 443 on my laptop:
htc -F 22 192.168.1.103:443
Now, to make everything secure I set up a SOCKS proxy to foward everything on port 9999 to my SSH server:
ssh -D 9999 username@192.168.1.103
Finally, I set up SOCKS in firefox to localhost and port 9999. I also changed network.proxy.socks_remote_dns in about
:config to true.
From what I can see, this all should work, but it doesn't seem to be working. I tried doing the following:
htc -F 1234 192.168.1.103:443
and then doing ssh -p 1234 username@192.168.1.103 to try to connect to the server through the http tunnel I made, but I just got connection refused messages (I tried another server on my network too just to be sure).
I'm not sure what I am doing wrong or if my logic is wrong. If anyone has any ideas, it would be appreciated.
EDIT: Thought I would mention that setting up the SOCKS proxy without going through the httptunnel works just fine. I've also tried using different ports for the server and my laptop with no luck.