1.下載原始碼
2.編譯安裝
3.修改SS5設定檔
4.啟動SS5
1.下載原始碼
#wget https://nchc.dl.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz
2.編譯安裝
下載編譯套件
#yum -y install gcc automake make
#yum -y install pam-devel openldap-devel cyrus-sasl-devel openssl-devel
解壓縮
#tar xvf ss5-3.8.9-8.tar.gz;cd ss5-3.8.9
進行編譯安裝
#./configure && make && make install
3.修改SS5設定檔
對所有IP全部開放SS5
#vi /etc/opt/ss5/ss5.conf
auth 0.0.0.0/0 - - permit - 0.0.0.0/0 - 0.0.0.0/0 - - - - -
允許特定IP開放SS5
#vi /etc/opt/ss5/ss5.conf
auth 0.0.0.0/0 - - permit - 10.181.xx.xx/32 - 0.0.0.0/0 - - - - - permit - 172.26.xx.yy/32 - 0.0.0.0/0 - - - - -
允許所有IP,但必須要帳號密碼驗證
#vi /etc/opt/ss5/ss5.conf
auth 0.0.0.0/0 - u permit u 0.0.0.0/0 - 0.0.0.0/0 - - - - -
建立帳號密碼 (每一個使用者+密碼 使用空白)
#vi /etc/opt/ss5/ss5.passwd
fred1 password1 fred2 password2
#chown root.root /etc/opt/ss5/ss5.passwd
#chmod 750 /etc/opt/ss5/ss5.passwd
4.設定SS5 端口(預設1080)
#vi /etc/sysconfig/ss5
SS5_OPTS=" -u root -b 0.0.0.0:13129"
啟動服務
#systemctl start ss5
或者
#/etc/rc.d/init.d/ss5 restart
查看LOG
#tail -f /var/log/ss5/ss5.log
Facebook Comments