CentOS7基于Python2.7部署Shadowsocks



  • 安装

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

    启动

    # -p:端口 -k:密码 -m:加密协议
    sudo ssserver -p 40000 -k [passwd] -m rc4-md5 --user nobody -d start
    # 防火墙添加端口号
    yum remove iptables
    yum install firewalld
    systemctl enable firewalld
    systemctl start firewalld
    firewall-cmd --zone=public --add-port=40000/tcp --permanent
    firewall-cmd --reload
    

    停止

    sudo ssserver -d stop
    

Log in to reply