***首先把服务器8899端口开起来
root登录服务器后:
lsb_release -a #查看当前服务器版本
Run the commands below to install the latest version of EPEL repository for CentOS 7 and then update your system for missing 1.updates and security patches.
yum install epel-release
yum groupinstall 'Development Tools'
yum -y install gcc gcc-c++ automake make pam-devel openldap-devel cyrus-sasl-devel
yum -y install openssl-devel ###四句命令
yum update -y
wget /projects/ss5/files/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz/download #命令
mv download download.gz
tar -xzf download.gz
cd ss5-3.8.9
./configure && make && make install #命令
1.设定用户名/密码
SS5 配置文件位于 /etc/opt/ss5/ss5.conf, ‘auth’ 参数用于设定认证模式。
不使用用户认证,
auth 0.0.0.0/0 – –
使用用户名/密码认证,
auth 0.0.0.0/0 – u
设置权限 ( /etc/opt/ss5/ss5.conf )
允许所有主机连接:
permit u 0.0.0.0/0 – 0.0.0.0/0 – – – – –最后一个-后有一个tab键(备注)
2.在文件 /etc/opt/ss5/ss5.passwd 中, 每行输入一个用户名和密码,用空格分开。
例如:
user1 pass1
user2 pass2
3.以 root 身份运行 SS5 并修改端口为 8899 (默认端口 1080)
修改 /etc/init.d/ss5 并在文件顶部的 #!/bin/sh 之后添加下面的代码:
export SS5_SOCKS_PORT=8899
export SS5_SOCKS_USER=root
4.用户名/密码保存在文件 /etc/opt/ss5/ss5.passwd。请设置权限:
chown root:root /etc/opt/ss5/ss5.passwd
chmod 755 /etc/opt/ss5/ss5.passwd
chmod 755 /etc/opt/ss5
chmod 755 /etc/init.d/ss5
5.设置ss5端口
vim /etc/sysconfig/ss5
SS5_OPTS=" -u root -b 0.0.0.0:8899"
6.启动/停止/重启 ss5
service ss5 start
service ss5 stop
service ss5 restart
以上就已经配置好了ss5.