Saturday, September 03, 2011

HOWTO : SSH Tunneling with Dynamic Port Forwarding

To ensure your connection under encrypted without changing the installation or configuration of application softwares.

Step 1 :

Download the following file on the SSH server (any computer that will be running 24/7, the most perfect) on any computer outside your network.

sudo apt-get update
sudo apt-get install openssh-server


PART I - FIREFOX

Step 2 :

Open Firefox and select "Edit" -- "Preference". "Advanced" -- "Network" -- "Connection".

Select "Manual Proxy setting".

SOCKS Host : localhost
Port : 1080


Step 3 :

Go the the address entry field.

about:config

search for "network.proxy.socks_remote_dns" and double click it to set it to "true".

Close the Firefox.

PART II - FILEZILLA

Step 4 :

Open Filezilla. "Edit" -- "Settings" -- "Common Proxy".

Select "SOCKS 5"

Proxy Host : localhost
Proxy Port : 1080
Proxy User : <Your username>
Proxy Password : <Your password>


PART III - FINAL

Step 5 :

Open a terminal.

ssh -C -D 1080 <SSH Server IP or Hostname>

Enter your password.

Remarks :

Make sure the terminal window keeping open. Otherwise, the SSH tunneling will quit.

Step 6 :

Restart Firefox and surf the internet. And use Filezilla to download or upload files.

That's all! See you.