Sock5

Sock5

安装

  1. 环境准备

    1
    2
    yum -y install gcc automake autoconf libtool make
    yum -y install pam-devel openldap-devel cyrus-sasl-devel
  2. 编译安装

    1
    2
    3
    4
    5
    <http://sourceforge.net/projects/ss5/files/>
    tar zxvf ss5-3.8.9-8.tar.gz
    cd ss5-3.8.9
    ./configure //notes:(默认是1080端口,如果想改端口的话,./configure –with-defaultport=5533
    make && make install
  3. 启动

    1
    2
    chmod a+x /etc/init.d/ss5
    /etc/init.d/ss5 start

配置

  1. 安装服务

    1
    2
    chkconfig --add ss5
    chkconfig ss5 on
  2. 权限配置

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    vim /etc/opt/ss5/ss5.conf 
    # 修改 SHost SPort Authentication
    auth 0.0.0.0/0 – -
    改为
    auth 0.0.0.0/0 – u
    permit – 0.0.0.0/0 – 0.0.0.0/0 – – – – -
    改成为
    permit u 0.0.0.0/0 – 0.0.0.0/0 – – – – -

    # 添加用户
    touch /etc/opt/ss5/ss5.passwd
    echo "username password" > /etc/opt/ss5/ss5.passwd

    # 重启
    service ss5 restart

参考

本站采用「署名 4.0 国际」进行许可。