安装依赖
yum install pam-devel openldap-devel openssl-devel
yum install gcc gcc-c++
安装
wget http://downloads.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz?r=&ts=1396802581&use_mirror=cznic
tar -zxvf ss5-3.8.9-8.tar.gz
cd ss5-3.8.9
./configure
make
make install
修改配置文件
cd /etc/opt/ss5/ss5.conf
vim /etc/opt/ss5/ss5.conf
# auth 0.0.0.0/0 – - 87行
# 改为
auth 0.0.0.0/0 – u
# permit – 0.0.0.0/0 – 0.0.0.0/0 – – – – -
# 改成为
permit u 0.0.0.0/0 – 0.0.0.0/0 – – – – - 203行
添加socket 5用户
# cat /etc/opt/ss5/ss5.passwd
##用户 密码
username 123456
启动socket 5
# sh /etc/rc.d/init.d/ss5 start
doneting ss5...
# chmod u+x /etc/rc.d/init.d/ss5
# chkconfig --add ss5 //可选
# chkconfig ss5 on //可选
# service ss5 start
查看是否启动
# netstat -lntp | grep ss5
tcp 0 0 0.0.0.0:1080 0.0.0.0:* LISTEN 14262/ss5
防火墙配置
#vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 1080 -j ACCEPT
默认端口是1080,可以修改默认端口
vi /etc/init.d/ss5
daemon /usr/sbin/ss5 -t $SS5_OPTS -b 0.0.0.0:10088
这样,就将默认端口改为10088了
Comments | NOTHING