Install

Debian / Ubuntu:

    apt-get install python-pip
    pip install shadowsocks

Configure

Create a config file /etc/shadowsocks.json. Example:

    {
        "server":"my_server_ip",
        "server_port":8388,
        "local_address": "127.0.0.1",
        "local_port":1080,
        "password":"mypassword",
        "timeout":300,
        "method":"aes-256-cfb",
        "fast_open": false
    }

Then turn on fast open on your OS temporarily:

    echo 3 > /proc/sys/net/ipv4/tcp_fastopen

Usage

To run in the foreground:

    ssserver -c /etc/shadowsocks.json

To run in the background:

    ssserver -c /etc/shadowsocks.json -d start
    ssserver -c /etc/shadowsocks.json -d stop

To check the log:

    sudo less /var/log/shadowsocks.log

End

To config /etc/rc.local

    echo 3 > /proc/sys/net/ipv4/tcp_fastopen
    ssserver -c /etc/shadowsocks.json -d start

Enjoy it!