Creating an SSH tunnel through a firewall
Sometimes you are in a network, covered by a firewall that blocks all outgoing ports except 80 and 443. That is okay if you only want to use facetube but for working with servers or any else, you are feeling disabled.
There is a easy way to use an existing unix based server to bypass the firewall and get a secured connection out of the network.
First step is setting you ssh port 443 or 80 in your sshd config (example for debian)
change it to the port
#Port 22 Port 443
and restart your sshd
service ssh restart
Now try to connect to your SSH server via port 443 (or other configured port). If it works you can use it as outgoing proxy by adding a dynamic tunnel to your ssh connection.
For example, windows (putty) users, open the “change settings” window and take the settings from screenshot.
Now you can use this as a SOCKS proxy, for example in firefox:
On unix based systems, you can start your tunnel on this way:
ssh -D 8080 user@remoteServer.tld