I setup my connection to Twitter and Facebook via SSH tunnel again. When the original tools to access Twitter, and Facebook failed, I just lost interest to setup proxy. Now, I am back and just accepted the 109 Facebook friend request. (My rule: Accept everyone in jianshuo@Facebook, but be very selective on Kaixin001.com. Here is how I did it.
The process is pretty straight forward, but it is not free.
First, you need to have an account with any web hosting service provider that supports SSH. My list:
bluehost.com (Cheaper: 6.95 USD/month)
mediatemple.net (More expensive, $20/month)
There are many other very cheap hosting services. The only thing you need to check with them is, whether they allow SSH (Secure Shell) access.
Double click PUTTY to run it, and enter the server name (your host service provider will give you, typically your domain name) into “Host Name (or IP address)” field under the default Session tab. Keep all the rest unchanged, like port 22, and Connection type as SSH.
On the left Category pan, expand SSH under Connection and click Tunnels.
Under “Add New Forward port:”, enter 7070 into Source Port, and select Dynamic for Destination. Keep the rest unchanged, and click Add. You will see D7070 appear under forward ports.
Then click Open to start the SSH session. You will be promoted to enter your user name and password (given by your service provider). When you are at the command line, the SSH Tunnel is established.
Then you need to setup your browser to use this proxy. Let me just talk about Firefox. IE is similar.
Open Firefox, click Options under Tools menu. The Options dialog appears.
Click Advanced button (on the right most of the pane), and select Network tab.
Click “Settings…” button under Connection section. The Connection Setting dialog appears.
Select “Manual Proxy Configuration” radio box. The input boxes under that become available to enter.
Enter “127.0.0.1” without quotation mark into SOCKS Host: field, and 7070 into Port field. NOTE: IMPORTANT Please make sure only enter into the Socks Host field, and keep all the rest fields empty.
Keep Socks v5 selected (unchanged), and click OK three times to close the configuration dialogs.
Now, you should try to enter “google.com” into address bar. You should be able to visit all the sites that you CAN access without proxy, like Google.com, www.sina.com.cn, or 163.com. However, you still cannot access Facebook.com, Youtube.com, Twitter.com. This is because the DNS record was hacked and changed. A small trick will help.
In Firefox, enter “about:config” into the address bar (Yes, it is a strange URL, just in the location where you typically would enter http://….) After click “I’ll be careful. I promise” button, you will see a long list of configuration options started with Filter input box.
Enter “network.proxy.socks_remote_dns” (without quotation marks) into the Filter input box, and you will see a line with network.proxy.socks_remote_dns as Preference Name appears. Double click it so the Value field changes from False to True (and you will also notice the line becomes bold).
Congratulations! Now you should be able to enter “Facebook.com” into your browser, and starts to surf on the Internet without limitation.