美文网首页
socks5搭理搭建

socks5搭理搭建

作者: LogMan | 来源:发表于2022-02-21 14:17 被阅读0次

    Socks5搭建指令:

    0、安装nano
    yum -y install nano

    1、拉取库
    cd /root && wget https://ghproxy.com/https://github.com/shiunke/unke/blob/main/ss5-3.8.9-8.tar.gz

    2、配置 Socks5 编译环境
    yum install -y pam pam-devel gcc gcc-c++ openldap openldap-devel openssl openssl-devel cyrus-sasl cyrus-sasl-devel aytomake auoconf libtool automake make

    3、解压
    tar zxf ss5-3.8.9-8.tar.gz

    4、进入文件夹并执行./configure
    cd ss5-3.8.9/ && ./configure

    5、编译
    make && make install

    6、修改配置文件设置登录类型
    nano /etc/opt/ss5/ss5.conf
    auth 0.0.0.0/0 – u (87行)
    permit u 0.0.0.0/0 – 0.0.0.0/0 – – – – – (203行)

    7、添加socks5用户
    nano /etc/opt/ss5/ss5.passwd
    ##用户 密码
    test 123456

    8、让SS5随系统一起启动
    chmod +x /etc/init.d/ss5
    chkconfig --add ss5
    chkconfig --level 345 ss5 on

    9、修改默认端口
    nano /etc/sysconfig/ss5
    ##端口号自己设置 注意开放你设置的端口号
    # Add startup option here
    SS5_OPTS=" -u root -b 0.0.0.0:15701”

    10、启动
    #启动代理服务
    service ss5 start
    #重启
    service ss5 restart #修改完端口等配置后,务必重启
    #停止
    service ss5 stop

    11、查看端口占用
    netstat -lntp | grep ss5

    相关文章

      网友评论

          本文标题:socks5搭理搭建

          本文链接:https://www.haomeiwen.com/subject/krcilrtx.html