一.llinux环境安装
yum update
yum install pam-devel openldap-devel openssl-devel
yum -y install gcc
yum -y install gcc-c++
二.sock5安装
cd /opt
wget http://downloads.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz
tar -xzvf ss5-3.8.9-8.tar.gz
cd ss5-3.8.9
./configure
make
make install
chmod a+x /etc/init.d/ss5
三.修改配置文件
vim /etc/opt/ss5/ss5.conf
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 – – – – -
四.设置用户密码
vim /etc/opt/ss5/ss5.passwd
账号 密码
查看用户名密码
cat /etc/opt/ss5/ss5.passwd
五.配置启动端口
vim /etc/sysconfig/ss5
SS5_OPTS=" -u root -b 0.0.0.0:11111"
六.启动
sh /etc/rc.d/init.d/ss5 start
service ss5 start