ShadowsocksR Client

ShadowsocksR by Python

Install

$ git clone git@github.com:shadowsocksrr/shadowsocksr.git

Config

Make a config file in /path/to/config.json

{
    "server": "123.123.123.123",
    "server_port": 8388,
    "method": "aes-256-cfb",
    "password": "password",
    "protocol": "origin",
    "protocol_param": "",
    "obfs": "plain",
    "obfs_param": "",

    "local_address": "127.0.0.1",
    "local_port": 1080
}

They are:

  • Server IP address or domain
  • Server port
  • Method
  • Password
  • Protocol
  • Protocol params
  • Obfs
  • Obfs Params
  • Listen IP
  • Listen Port

Try to run

$ python /path/to/shadowsocksr/shadowsocks/local.py -c /path/to/config.json

Keep it running by supervisor

Write a supervisor /etc/supervisor/conf.d/ssr.conf file:

[program:ssr]
user=root
command=/usr/bin/python3 /path/to/shadowsocksr/shadowsocks/local.py -c /path/to/config.json
autostart=true
autorestart=true
startretries=5
redirect_stderr=true
stdout_logfile=/path/to/ssr.log

Make sure all the path is already exist.