1、检查相应安装包是否部署
rpm -qa |grep -E "pam|pam-devel|gcc|gcc-c++|openldap|openldap-devel|openssl| openssl-devel| cyrus-sasl| cyrus-sasl-devel" rpm -qa |grep -E "gcc |automake| autoconf| libtool| make"
2、安装如下依赖包
yum -y install automake make yum -y install pam pam-devel gcc gcc-c++ openldap openldap-devel openssl openssl-devel cyrus-sasl cyrus-sasl-devel automake autoconf libtool
3、下载源码包
wget -P /usr/local/src/ http://nchc.dl.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz
4、解压编译安装ss5服务
cd /usr/local/src/ tar -zxvf ss5-3.8.9-8.tar.gz cd ss5-3.8.9 ./configure make && make install
5、查看目录
ls /etc/opt/ss5
6、配置文件修改
cat /etc/opt/ss5/ss5.conf set SS5_VERBOSE set SS5_DEBUG set SS5_DNSORDER set SS5_LDAP_FILTER set SS5_SRV set SS5_ICACHESERVER #auth 0.0.0.0/0 - u (u 开启用户验证 ) #auth 0.0.0.0/0 - - (- 无验证 ) auth 0.0.0.0/0 - - permit - 0.0.0.0/0 - 0.0.0.0/0 - - - - -
7、添加账户密码
cat >> /etc/opt/ss5/ss5.passwd << eof test test123456 eof
8、设置系统环境参数
cat >> /etc/security/limits.conf << eof * soft nofile 1000000 * hard nofile 1000000 * soft core 1048576 * hard core 1048576 eof
9、添加系统服务自启动以及启动ss5服务
chmod +x /etc/init.d/ss5 chkconfig --add ss5 chkconfig ss5 on service ss5 start
10、添加防火墙端口
#iptbales -A INPUT -p tcp -m multiport --dports 1080 -j ACCEPT #启动防火墙 service iptables restart
11、验证
#查看日志 tail -f /var/log/ss5/ss5.log #netstat查看1080端口是否监听
转载于:https://blog.51cto.com/531117978/2311558