Skip to content

Instantly share code, notes, and snippets.

@john-yuan
Created July 16, 2019 02:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save john-yuan/6238549e845796a6bf8e509a09cb0cdb to your computer and use it in GitHub Desktop.
Save john-yuan/6238549e845796a6bf8e509a09cb0cdb to your computer and use it in GitHub Desktop.
#!/bin/sh
readonly SERVER_PORT="8388"
readonly SERVER_PASS="your_password"
sudo yum install git
sudo yum install python-setuptools && easy_install pip
sudo pip install git+https://github.com/shadowsocks/shadowsocks.git@master
firewall-cmd --permanent --zone=public --add-port=${SERVER_PORT}/tcp
firewall-cmd --reload
echo "{" > /etc/shadowsocks.json
echo " \"server_port\": \"${SERVER_PORT}\"," >> /etc/shadowsocks.json
echo " \"password\": \"${SERVER_PASS}",\" >> /etc/shadowsocks.json
echo " \"method\": \"aes-256-cfb\"" >> /etc/shadowsocks.json
echo "}" >> /etc/shadowsocks.json
# ssserver -c /etc/shadowsocks.json -d start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment