how enable the shadowsocks on the linode

Machine setting

  1. ubuntu 16.04.2 on the linode
  2. ssh enabled

Enabling the shaowsocks


after the last steep, we can need to set up
1. password
2. port (choose the port from 1to 65535)
3. the method of Encryption
4. after installation we can see the script as bellow:


Edit the configuration file

Set up for a single user

then we can edit the file:

Set up for multi users

edit the /etc/shadowsocks.json


Explanation of the fields

name Explanation
server the address your server listens
server_port server port
local_address the address your local listens
local_port ocal port
password password used for encryption
timeout in seconds
method default:”aes-256-cfb”, see Encryption
fast_open use TCP_FASTOPEN, true / false
workers number of workers, available on Unix/Linux

(Note: this is the configuration file of json, after editing every parameter, there is a comma at the end of the line. But there is no comma after the last parameter)

command for the shadowsocks





enable the Fast Open

edit /etc/rc.local

at the end of line paste:
echo 3 > /proc/sys/net/ipv4/tcp_fastopen

save and exit

edit /etc/sysctl.conf

at the end of line paste
net.ipv4.tcp_fastopen = 3

save and exit

edit the /etc/shadowsocks.json

at the end of the line, at the line of fast_open, change the parameter from false to true

save and exit

restart the shadowsocks



  2. Shadowsocks Python版一键安装脚本



  5. TCP Fast Open,改善网络连接响应速度

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.