[Proxy] Use VPS + Shadowsocks to set a personal proxy

Since two weeks ago, gmail is unavallable in China. I have six gmails, and since then I can't send and receive e-mails. I already have some vpns , but none of them can apply a stable connection. And hongxing (红杏) is available, however hongxing is just a Chrome plug-in that means other softwares can not connect the forbidden website still. So it's necessary to own a personal proxy to supply the demands of browse and connect the overseas website especially like google and facebook.

So I try to use VPS and Shadowsocks to set a personal  Internet channel.

Step 1. Buy your own VPS

Buy a VPS from https://bandwagonhost.com. I choose the cheapest one and the location set to LA, and it cost me USD 3.99.

Step 2. Set your VPS.

Log in to bandwagonhost. Open "services"-"my services".

Type the KiwVM Control Panel. "Main controls"-"Actions"-"Stop".

"Install new OS", I choose debian-6.0-x86.

Record the VPS ip and ssh port and root password.

Step 3. Install Shadowsocks to you VPS through remote client.

If your system is windows you can use putty to finish this step. Mine is Mac so I install ZOC as my SSH client. You need to fill the VPS ip and SSH port and root password to ZOC , then you can log to your remote host.

 

echo “deb http://shadowsocks.org/debian squeeze main" >> /etc/apt/sources.list
echo :deb http://shadowsocks.org/debian wheezy main” >> /etc/apt/sources.list

 

apt-get update
apt-get install shadowsocks

 

vi/etc/shadowsocks/config.json

{

          "server":"vps' ip",

          "server_port":8388,  

          "local_port":1080,

          "password":"barfoo!",

          "timeout":60,

          "method":"aes-256-cfb"

}


/etc/init.d/shadowsocks stop
/etc/init.d/shadowsocks start


Step 4. Set your client. Very easy , there is no need to write more.

In Mac OS  - ShadowsocksX

In Android - 影梭。

 

Enjoy it!

 

 

 

作者: 沐杰

爱读书的小工程师

发表评论