Skip to content

Instantly share code, notes, and snippets.

@yuler
Created June 18, 2019 08:50
Show Gist options
  • Select an option

  • Save yuler/45dcd78290710c93594ab0bce8d8c488 to your computer and use it in GitHub Desktop.

Select an option

Save yuler/45dcd78290710c93594ab0bce8d8c488 to your computer and use it in GitHub Desktop.
# Install main function
install() {
# variables
shadowsocks_passwd="pwd"
shadowsocks_method="aes-256-cfb"
shadowsocks_port="9001"
fast_open="true"
# config
cat > ~/shadowsocks.json<<-EOF
{
"server":"0.0.0.0",
"server_port":${shadowsocks_port},
"password":"${shadowsocks_passwd}",
"timeout":1000,
"method":"${shadowsocks_method}",
"fast_open": ${fast_open}
}
EOF
# install dependencies
sudo yum -y install epel-release python-pip
sudo pip install --upgrade pip
sudo pip install shadowsocks
}
install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment