centos7-ss

server

centos上利用python安装ss

$ yum install python-setuptools && easy_install pip
$ pip install shadowsocks

建立配置文件

$ vi /etc/shadowsocks.json

添加配置信息

// shadowsocks.json
{
    "server":"my_server_ip",#"::"同时监听ipv4和ipv6
    "server_port":8388,
    "local_address": "127.0.0.1",
    "local_port":1080,
    "password":"mypassword",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false
}

打开ss配置中的端口

$ firewall-cmd --zone=public --add-port=8388/tcp --permanent

client

服务器推荐

vps 使用的 vultr 家的机子:购买链接
vps IP 被墙:重装,新分配 IP 可破