Last active
August 16, 2023 05:38
-
-
Save yzyzsun/45711011992a787c8603 to your computer and use it in GitHub Desktop.
shadowsocks-libev server setup script on CentOS 7
This file contains hidden or 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
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