一、安装ss5所需的依赖软件包
[root@mail Server]# rpm -ivh pam-devel-0.99.6.2-3.27.el5.i386.rpm
warning: pam-devel-0.99.6.2-3.27.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:pam-devel ########################################### [100%]
[root@mail Server]# rpm -ivh openldap-devel-2.3.27-8.el5_1.3.i386.rpm
warning: openldap-devel-2.3.27-8.el5_1.3.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
cyrus-sasl-devel >= 2.1 is needed by openldap-devel-2.3.27-8.el5_1.3.i386
[root@mail Server]# rpm -ivh cyrus-sasl-devel-2.1.22-4.i386.rpm
warning: cyrus-sasl-devel-2.1.22-4.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:cyrus-sasl-devel ########################################### [100%]
^[[A[root@mail Server]# rpm -openldap-devel-2.3.27-8.el5_1.322-4.i386.rpm
warning: openldap-devel-2.3.27-8.el5_1.3.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:openldap-devel ########################################### [100%]
二、下载编译socket5软件ss5-3.6.1
wget http://static.auvps.com/uploads/2013/04/ss5-3.6.1-1.tar.gz
tar zxvf ss5-3.6.1-1.tar.gz
cd ss5-3.6.1
./configure
make
make install
三、启动ss5的服务
/etc/init.d/ss5 start
四、添加ss5到服务中,并随机启动
chkconfig --add ss5
chkconfig --level 2345 ss5 on
五、ss5 默认使用1080端口,并允许任何人使用。我们可以修改 /etc/opt/ss5/ss5.conf 中的
# SHost SPort Authentication
# auth 0.0.0.0/0 - -
修改为:
# SHost SPort Authentication
auth 0.0.0.0/0 - u
六、在 /etc/opt/ss5/ss5.passwd 中添加 用户名和密码 ,比如:
test test
七、使用用户验证,重启ss5服务
/etc/init.d/ss5 restart
转载于:https://blog.51cto.com/gongeddy/1550356