zoukankan      html  css  js  c++  java
  • linux下配置SS5(SOCK5)代理服务

    安装sock5所需依赖开发库:

    # yum install pam-devel openldap-devel openssl-devel

    下载并解压安装sock5

    # wget http://downloads.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz?r=&ts=1396802581&use_mirror=cznic
    # tar -xzvf ss5-3.8.9-8.tar.gz
    # cd ss5-3.8.9
    # ./configure
    # make
    # make install

    修改配置文件:

    # 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

    设置端口,添加下面这一行命令,-b后面的参数代表监听的ip地址和端口号

    # vim /etc/sysconfig/ss5

    设置如下:端口10888,可自行定义  0~65535

    # Add startup option here
    SS5_OPTS=" -u root -b 0.0.0.0:10888"

    启动sock5:

    # sh /etc/rc.d/init.d/ss5 start
    doneting ss5...

    测试sock5服务,推荐工具 Proxifier

    设置完服务,连接,百度ip查看ip是否已经是代理服务器ip

  • 相关阅读:
    Codeforces1499D The Number of Pairs
    Codeforces1493D GCD of an Array
    AtCoder Beginner Contest 192 F
    Codeforces 1485F Copy or Prefix Sum
    Miller_Rabin
    Codeforces Round 655 (Div. 2) E
    Codeforces Round 655 (Div. 2) D
    B
    A
    待更新笔记
  • 原文地址:https://www.cnblogs.com/007sx/p/7055467.html
Copyright © 2011-2022 走看看