zoukankan      html  css  js  c++  java
  • 在CentOS 6.6上安装Shadow和谐Socks服务端

    CentOS 6.6上安装Shadow和谐Socks服务端

    1、查看系统
    [root@localhost ~]# cat /etc/issue 
    CentOS release 6.6 (Final) 
    [root@localhost ~]# uname -a 
    Linux localhost.localdomain 2.6.32-042stab106.6 #1 SMP Mon Apr 20 14:48:47 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux

    2、安装Shadow和谐Sock
    # yum install python-setuptools && easy_install pip 
    # pip install Shadow和谐Sock

    3、创建配置文件/etc/Shadow和谐Sock.json
    [root@localhost /]# touch /etc/Shadow和谐Sock.json 
    [root@localhost /]# vi /etc/Shadow和谐Sock.json 

    "server":"138.128.208.158", 
    "server_port":443, 
    "local_address": "127.0.0.1", 
    "local_port":1080, 
    "password":"MyPass", 
    "timeout":600, 
    "method":"rc4-md5"
    }

    备注:加密方式官方默认使用aes-256-cfb,推荐使用rc4-md5,因为 RC4比AES速度快好几倍。
    各字段说明:

        server:服务器IP
        server_port:服务器端口
        local_port:本地端端口
        password:用来加密的密码
        timeout:超时时间(秒)
        method:加密方法,可选择 “bf-cfb”, “aes-256-cfb”, “des-cfb”, “rc4″等


    4、使用配置文件在后台运行Shadow和谐Sock服务
    [root@localhost /]# ssserver -c /etc/Shadow和谐Sock.json -d start

    备注:若无配置文件,在后台可以使用一下命令运行:

    [root@localhost /]# ssserver -p 443 -k MyPass -m rc4-md5 -d start   

    经过测试还是直接运行好使。。。

    5、停止服务
    [root@localhost /]# ssserver -c /etc/Shadow和谐Sock.json -d stop

  • 相关阅读:
    c++STL容器之deque容器
    c++STL容器之vector容器
    c++STL容器之string容器
    c++之STL基本认识
    c++之类模板案例
    c++之类模板和友元
    c++之类模板分文件编写
    c++之类模板成员函数的类外实现
    c++类模板与继承
    c++之类模板对象作函数参数
  • 原文地址:https://www.cnblogs.com/youyaoqi/p/11979760.html
Copyright © 2011-2022 走看看