Skip to content

Instantly share code, notes, and snippets.

@linw1995
Last active May 29, 2019 10:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linw1995/ddb3a1df3f72be16c8f080d9bc0263f7 to your computer and use it in GitHub Desktop.
Save linw1995/ddb3a1df3f72be16c8f080d9bc0263f7 to your computer and use it in GitHub Desktop.
Shadowsocks Lanuch Scripts
apt-get update
apt-get install -y python3-pip python3-setuptools python3-wheel
pip3 install -U shadowsocks
SS_MODULE_PATH=`python3 -c "import shadowsocks as m;print(m.__path__[0])"`
sed -i -e 's/EVP_CIPHER_CTX_cleanup/EVP_CIPHER_CTX_reset/g' $SS_MODULE_PATH/crypto/openssl.py
cat > ss.json << EOF
{
"server": "0.0.0.0",
"server_port": 443,
"local_address": "127.0.0.1",
"local_port": 1080,
"password": "password",
"timeout": 3000,
"method": "aes-256-cfb",
"fast_open": false
}
EOF
ssserver -c ss.json -d start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment