Tunneling HTTP through SSH
NOTE: HTTP Tunneling is only allowed for low bandwidth use!
What is HTTP Tunneling?
HTTP Tunneling is most used for two simple reasons.
- For bypassing firewalls.
- To protect from possible sniffers in a insecure network.
Windows
For this guide i am going to assume you have putty. First off all start by starting up Putty.
Now fill in your server's hostname and port.
Next up is to open the "Connection > SSH > Tunnels" Tab.
Here you need to fill in a destination port i used 1337 (you need to select one above 1024).
You can leave destination empty but you need to select Dynamic.
Now you can press the add button and you will see it added a forwarded port called D1337.
Now you need to go back to the Session tab and press open.
You should now login in into your shell as usual.
Now start firefox. and goto "Tools > options > Advanced > Network > Settings".
Here you need to fill the right details in we had configured earlier.
Under Socks Host fill in :"127.0.0.1" and under port fill in the chosen port(ie:"1337").
Press OK and now your ready to surf with an HTTP Tunnel.
Linux
To create an HTTP Tunnel in linux all you have to do is use the following command.
$ ssh -D 1337 username@ip-address-of-ssh-server
ie:
$ ssh -D 1337 -p 222 thewookie@us.gshellz.org
NOTE: HTTP Tunneling is only allowed for low bandwidth use!