CentOS搭建sock5代理服务器(XEN VPS )

1.配置编译环境
yum -y install gcc automake make

2.安装socks5必要的包
yum -y install pam-devel openldap-devel cyrus-sasl-devel

3.下载,编译安装ss5(socks5)
http://www.linuxso.com/uploads/soft/101018/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 中添加 用户名和密码 如:
test test
使用用户验证,重启ss5服务
/etc/init.d/ss5 restart

 

修改端口

/etc/rc.d/init.d/ss5   里面

# See how we were called.

case "$1" in

  start)

        # Start daemon.

        echo -n "Starting ss5... "

if [ $OS = "Linux" ] || [ $OS = "SunOS" ]; then

        /usr/sbin/ss5 -m -t -b 0.0.0.0:11218 

        touch /var/lock/subsys/ss5

else

        /usr/local/sbin/ss5 -m -t -b 0.0.0.0:11218

fi

echo "done"

 

        ;;

猜你喜欢

转载自whxhz.iteye.com/blog/2024133
vps
今日推荐