搭建shadowsocks服务: 服务端/客户端/浏览器配置

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/daduryi/article/details/84921999

服务端

  1. 安装

    sudo apt-get -y install python-gevent python-pip
    sudo pip install shadowsocks
    sudo apt-get -y install python-m2crypto
    
  2. 配置json
    vim /etc/shadowsocks.json

    {
    "server":"0.0.0.0",
    "server_port":1194,
    "local_address":"127.0.0.1",
    "password":"123!@#ljt",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open":false,
    "workers":1
    }
    
  3. 启动

    后台运行:ssserver -c /etc/shadowsocks.json -d start
    后台停止:ssserver -c /etc/shadowsocks.json -d stop
    前台运行:ssserver -c /etc/shadowsocks/config.json
    
  4. 多账号配置json
    server里面需要设置为自己vps的ip地址

    {
     "server":"11.32.15.21",
     "local_address":"127.0.0.1",
     "local_port":1080,
     "port_password":{
     "9001":"10001",
     "9002":"10002",
     "9003":"10003"
     },
     "timeout":300,
     "method":"rc4-md5",
     "fast_open": false
    }
    
  5. 参考 https://www.jianshu.com/p/a0af37a0c3c4

客户端

  1. 安装

    sudo apt-get -y install python-gevent python-pip
    sudo pip install shadowsocks
    sudo apt-get -y install python-m2crypto
    
  2. 配置json

    {
        "server": "你的服务器ip",
        "server_port": 你的服务器端口,
        "local_address": "127.0.0.1",
        "local_port": 1080,
        "password": "你的SS密码",
        "method": "aes-256-cfb",
        "fast_open": true,
        "timeout":300
    }
    
  3. 启动

    sudo sslocal -c /etc/shadowsocks.json
    
  4. 将启动脚本加入开机自启
    rc.local or /etc/profile

  5. 参考 https://www.jianshu.com/p/4c95d10b898b

接下来需要配置代理, 在chrome中进行, 也可以使用其他工具.

浏览器配置

安装chrome插件, 并导入配置文件, 资源在下方链接
https://github.com/ChyengJason/OmegaOptions.bak

猜你喜欢

转载自blog.csdn.net/daduryi/article/details/84921999