socks5的安装和部署

安装依赖项目

    yum -y install gcc gcc-c++ automake make pam-devel openldap-devel cyrus-sasl-devel openssl-devel

下载资源

http://ss5.sourceforge.net/ 下载SS5最新版本的源代码

./configure
make
make install

配置用户授权

修改文件 :vim /etc/opt/ss5/ss5.conf 查找取消下面两行注释

auth 0.0.0.0/0 - -
permit - 0.0.0.0/0 - 0.0.0.0/0 - - - - -

默认的是:无用户认证。

修改默认端口

修改 /etc/sysconfig/ss5(端口默认是1080) 取消注释,修改成下面这样

SS5_OPTS=" -u root -b 0.0.0.0:9880"

启动服务

先要修改权限  chmod a+x /etc/init.d/ss5
启动  service ss5 start
设置开机启动: chkconfig --level 35 ss5  on
启动完成后查看连接情况  netstat -an | grep 9880

测试

curl –socks5 “101.198.192.183:9880” “https://play.google.com/store/apps/details?id=pathlabs.com.pathlabs”

You May Also Like

About the Author: daidai5771

发表评论

电子邮件地址不会被公开。 必填项已用*标注