买上一个vps,做一个socket5的代理
由于是vps,所以主机商给我们安装的操作系统一般为最精简的,这个时候就要考虑到安装包的问题,系统中会缺少很多开发包
yum groupinstall "Development Tools"
yum -y install gcc automake make
yum -y install pam-devel openldap-devel cyrus-sasl-devel
下载编译socket5
wget
http://static.auvps.com/uploads/2013/04/ss5-3.6.1-1.tar.gz
tar zxvf ss5-3.6.1-1.tar.gz
cd ss5-3.6.1
./configure
make
make install
启动ss5的服务
/etc/init.d/ss5 start
添加ss5到服务中,并随机启动
chkconfig --add ss5
chkconfig ss5 on
ss5 默认使用1080端口,并允许任何人使用。我们可以修改 /etc/opt/ss5/ss5.conf 中的
# SHost SPort Authentication
# auth 0.0.0.0/0 - -
修改为:
# SHost SPort Authentication
auth 0.0.0.0/0 - u
在 /etc/opt/ss5/ss5.passwd 中添加 用户名和密码 如:
silic silic
使用用户验证,重启ss5服务
/etc/init.d/ss5 restart