As a qualified programmer, how can you not surf the Internet scientifically ? Build a shadowsocks by yourself, you can have unlimited number of people and unlimited systems (Linux, Windows, iPhone, Android, Mac can be used). Wouldn't it be nice?
VPS outside of GFW
To build ss by yourself, you must first have a server outside the wall as a springboard. Vultr is very stable, the after-sales service is very responsive, and the Internet speed I chose for the minimum configuration is also very good. About 20 people are using the ss I take at the same time, and I feel that it fully meets the needs of daily use.
- register
Registration address: Vultr , very simple, just follow the steps to register
- recharge
Select Billing in the left column and select a recharge method ( support Alipay ). For example, if you choose 10 dollars, it seems that there is still a discount for how much you can get as much as you charge, that is, you have 20 dollars in the account balance after recharging. If you choose the minimum configuration of 5 dollars (the 2.5 dollar I was sold out at the time), that is, 10 dollars can be used for 4 months, if the 2.5 dollars is re-listed, it is 10 dollars that can be used for 8 months. It's the cheapest VPS provider I've seen.
- Configure VPS
Select Servers on the left column : Server Location , see the online evaluation of Los Angels and Tokyo; Server Type choose Ubuntu (of course, you can choose not to choose Ubuntu, this tutorial is based on Ubuntu), Server Size according to your needs. Others can be defaulted, and then select Deploy Now .
- View related information
After configuring the server, you can see the information of your own service in Servers , including the IP and Password we need to use. Once you get the IP and password, you can use XShell to connect.
Configure shadowsocks on VPS
shadowsocks:A fast tunnel proxy that helps you bypass firewalls.
Open source project: project address
Installation steps on Ubuntu (full root privileges):
- Update software sources
apt-get update
- Install the pip environment
apt-get install python-pip
- install shadowsocks
pip install shadowsocks
At this point, if there is a prompt that the version is too low, follow the prompt to update
pip install --upgrade pip
If prompted that there is no setuptools module, install setuptools
pip install setuptools
- If the shadowsocks installation was successful just now, skip this step, and then continue to install shadowsocks
pip install shadowsocks
- Edit configuration file
vim /etc/shadowsocks.json
Add to:
{
"server":"my_server_ip",
"server_port":8388,//默认是8388,如果不行可以换成1024试试(这句注释删除)
"local_address": "127.0.0.1",
"local_port":1080,
"password":"mypassword",
"timeout":300,
"method":"aes-256-cfb"
}
name | info |
---|---|
server | Server IP (IPv4/IPv6), note that this will also be the IP address the server is listening on |
server_port | server port |
local_port | local port |
password | password to encrypt |
timeout | timeout (seconds) |
method | Encryption method, select "bf-cfb", "aes-256-cfb", "des-cfb", "rc4", etc. The default is an insecure encryption, "aes-256-cfb" is recommended |
- give file permissions
chmod 755 /etc/shadowsocks.json
- Install to support these encryption methods
apt-get install python–m2crypto
- Background process
ssserver -c /etc/shadowsocks.json -d start
- stop command
ssserver -c /etc/shadowsocks.json -d stop
- Set up to start automatically
vim /etc/rc.local
Add the following command:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
ssserver -c /etc/shadowsocks.json -d start
exit 0
If it does not start automatically, refer to http://forum.ubuntu.org.cn/viewtopic.php?f=186&t=481439
Placed on the desk shadowsocks
- Download ( various versions of Clients )
First go to the next shadowsocks for windows, here(shadowsocks4.0.2)
- configure
Running ss on windows requires a relatively high framework version. The current version requirement is 4.6.2. First download one and install it, here(Framework4.6.2)
Right-click shadowsocks in the status bar, check boot and start the system proxy , select PAC mode in the system proxy mode , server -> edit server , fill in the corresponding ip, password, and encryption method configured in shadowsocks.json , save it That's it.
Done! Get over the wall, bro! Google