CentOS 下 搭建 Sockets5

版本: CentOS 6.9 64位 / ss5-3.8.9-8

安装依赖环境:

yum install pam-devel openldap-devel openssl-devel
yum -y install gcc 

安装Sockets 5

wget http://downloads.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz  
tar -xzvf ss5-3.8.9-8.tar.gz  
cd ss5-3.8.9  
./configure  
make  
make install  

配置/etc/opt/ss5/ss5.conf
去掉注释# auth 0.0.0.0/0 – –
去掉注释# permit – 0.0.0.0/0 – 0.0.0.0/0 – – – – –

auth 0.0.0.0/0     –       – 
permit – 0.0.0.0/00.0.0.0/0   –   –   –   –   –

添加开机启动

hmod u+x /etc/rc.d/init.d/ss5  
chkconfig --add ss5  
chkconfig ss5 on 
service ss5 start 

修改端口 /etc/sysconfig/ss5

SS5_OPTS=" -u root -b 0.0.0.0:端口号"

其它指令

shutdown -r now
sh /etc/rc.d/init.d/ss5 start
sh /etc/rc.d/init.d/ss5 stop

你可能感兴趣的:(CentOS 下 搭建 Sockets5)