how enable the shadowsocks on the linode

Machine setting

  1. ubuntu 16.04.2 on the linode
  2. ssh enabled

Enabling the shaowsocks

Installation

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:

Uninstallation

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

then

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

start

stop

restart

status:

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

reference

  1. http://www.auooo.com/2015/06/26/shadowsocks(影梭)不完全指南/#clientwindows

  2. Shadowsocks Python版一键安装脚本

  3. https://zoomyale.com/2016/vultr_and_ss/

  4. http://www.barretlee.com/blog/2016/08/03/shadowsocks/

  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.