记录下ss翻墙过程, 购买的Vultr的VPS,使用ping测试下网络速度,如果可以的话就使用ssh远程登录: ssh root@x.x.x.x (x是自己的vps地址)

服务端

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
sudo apt-get update
sudo apt-get install python-pip
sudo apt-get install python-setuptools m2crypto
sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev -y
sudo apt-get update
sudo apt install shadowsocks-libev
apt-get install build-essential
wget https://download.libsodium.org/libsodium/releases/LATEST.tar.gz
tar zxf LATEST.tar.gz
cd libsodium*
./configure
make -j4 && make install
echo /usr/local/lib > /etc/ld.so.conf.d/usr_local_lib.conf
ldconfig
sudo vim /etc/shadowsocks-libev.json
{
"server": "x.x.x.x",
"server_port": xxxx,
"local_address": "127.0.0.1",
"local_port": 1080,
"password": "xxxxx",
"timeout": 600,
"method": "chacha20-ietf-poly1305",
"nameserver":"8.8.8.8",
"fast_open":true,
"workers":1
}
#注: x表示需要自己更改的内容
sudo ss-server -c /etc/shadowsocks-libev.json start

用户端:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
vim /etc/shadowsocks.json
{
"server": "x.x.x.x",
"server_port": xxxx,
"local_address": "127.0.0.1",
"local_port": 1080,
"password": "xxxxx",
"timeout": 600,
"method": "chacha20-ietf-poly1305",
"nameserver":"8.8.8.8",
"fast_open":true,
"workers":1
}
sslocal -c /etc/shadowsocks.json

然后配置浏览器即可。