Skip to content

Instantly share code, notes, and snippets.

@yzyzsun
Last active August 16, 2023 05:38
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save yzyzsun/45711011992a787c8603 to your computer and use it in GitHub Desktop.
Save yzyzsun/45711011992a787c8603 to your computer and use it in GitHub Desktop.
shadowsocks-libev server setup script on CentOS 7
cd /etc/yum.repos.d
curl -O https://copr.fedorainfracloud.org/coprs/librehat/shadowsocks/repo/epel-7/librehat-shadowsocks-epel-7.repo
yum -y install shadowsocks-libev
setcap CAP_NET_BIND_SERVICE=+eip /usr/bin/ss-server
cat > /etc/shadowsocks-libev/config.json << 'EOF'
{
"server": "0.0.0.0",
"server_port": 443,
"password": "p@$$w0rd",
"method": "aes-128-gcm"
}
EOF
systemctl enable shadowsocks-libev --now
systemctl enable firewalld --now
firewall-cmd --add-port=443/tcp --permanent
systemctl restart firewalld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment