加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux配置SOCK5代理

发布时间:2020-12-13 22:20:47 所属栏目:Linux 来源:网络整理
导读:一.llinux环境安装 yum updateyum install pam-devel openldap-devel openssl-develyum -y install gcc yum -y install gcc-c++ 二.sock5安装 cd /optwget http://downloads.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gztar -xzvf ss5-3.8.9

一.llinux环境安装

yum update

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

二.sock5安装

cd /opt
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
chmod a+x /etc/init.d/ss5

三.修改配置文件

vim /etc/opt/ss5/ss5.conf
auth 0.0.0.0/0 – -
改为
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 – – – – -

四.设置用户密码

vim /etc/opt/ss5/ss5.passwd
账号  密码

查看用户名密码
cat /etc/opt/ss5/ss5.passwd

五.配置启动端口

vim /etc/sysconfig/ss5
SS5_OPTS=" -u root -b 0.0.0.0:22222"

六.启动

sh /etc/rc.d/init.d/ss5 start
service ss5 start

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读