shadowsocks


项目地址: https://github.com/clowwindy/shadowsocks

安装配置服务端和客户端

  1. 服务端和客户端都需要安装shadowsocks:
    apt-get install python-pip
    pip install shadowsocks
    
  2. 在server的/opt/shadowsocks下建立config.json,内容如下:
    {
        "server":"my_server_ip",
        "server_port":8388,
        "local_port":1080,
        "password":"barfoo!",
        "timeout":600,
        "method":"table"
    }
    
  3. 在/opt/shadowsocks下运行ssserver
  4. 拷贝config.json到客户端:
    scp root@xxx.xxx.xxx.xxx:/opt/shadowsocks/config.json /opt/shadowsocks/config.json
    
  5. 在客户端的/opt/shadowsocks下运行sslocal
  6. ok.至此已在127.0.0.1:1080创建socks5代理

服务端极耗内存 有空试下c实现

使用c实现