Last active
May 29, 2019 10:21
-
-
Save linw1995/ddb3a1df3f72be16c8f080d9bc0263f7 to your computer and use it in GitHub Desktop.
Shadowsocks Lanuch Scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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