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端口是否監聽