Skip to content

Instantly share code, notes, and snippets.

@Suzhou65
Created September 16, 2020 05:57
Show Gist options
  • Select an option

  • Save Suzhou65/ff9541d0a9f3cedcb9d12a50a65e8202 to your computer and use it in GitHub Desktop.

Select an option

Save Suzhou65/ff9541d0a9f3cedcb9d12a50a65e8202 to your computer and use it in GitHub Desktop.
Ubuntu 14.04 Shadowsocks configuration

Shadowsocks Server configuration

sudo cd /etc/

Backup configuration

sudo cp shadowsocks.json shadowsocks.local

Editing Shadowsocks configuration

sudo vim shadowsocks.json

You will see something like this as defult configuration you setting

{
    "server":"10.0.1.1",
    "server_port":8989,
    "local_server":"127.0.1.1",
    "local_port":1080,
    "password":"shadowsocks-python",
    "timeout":300,
    "method":"aes-128-gcm",
    "fast_open": false
}

If you want to setting multi-user, user & port configuration will be like this

{
    "server":"10.0.1.1",
    "server_port":8989,
    "local_server":"127.0.1.1",
 
    "port_password":{
    "1079":"shadowsocks-python-1079",
    "1080":"shadowsocks-python-1080",
    "1081":"shadowsocks-python-1081"
                    },
 
    "timeout":300,
    "method":"aes-128-gcm",
    "fast_open": false
}

After change configuration, restart Shadowsocks service

service shadowsocks restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment