zoukankan      html  css  js  c++  java
  • CentOS搭建socket5代理服务器

    1.安装socket5依赖包
    yum -y install gcc automake make pam-devel openldap-devel cyrus-sasl-devel

    2.下载ss5并安装
    下载官网:http://ss5.sourceforge.net/
    软件包:http://iweb.dl.sourceforge.net/project/ss5/ss5/3.8.9-6/ss5-3.8.9-6.tar.gz

    注意:不要下载最新版ss5-3.8.9-7.tar.gz,这个包安装后布不能启动,报以下错误:
    [11/Dec/2012:14:44:50 CST] [INFO] SS5 Version 3.8.9 - Release 7 starting
    [11/Dec/2012:14:44:50 CST] [INFO] Copyright (C) 2002-2011 by Matteo Ricchetti - <matteo.ricchetti@libero.it>
    [11/Dec/2012:14:44:50 CST] [INFO] Setting dynamic configuration.
    [11/Dec/2012:14:44:50 CST] [INFO] Cleaning old configuration.
    [11/Dec/2012:14:44:50 CST] [INFO] Loading and validating new configuration.
    [11/Dec/2012:14:44:50 CST] [0] [ERRO] $S5LoadConfData$: (No such file or directory).
    [11/Dec/2012:14:44:50 CST] [ERRO] Configuration not switched.

    root@test:~# tar zxvf ss5-3.8.9-6.tar.gz
    root@test:~# cd ss5-3.8.9
    root@test:~# ./configure && make && make install
    root@test:~# cd /etc/opt/ss5
    root@test:/etc/opt/ss5# ls
    ss5.conf  ss5.ha  ss5.passwd

    ss5.conf配置
    #auth    0.0.0.0/0               -               -
    去掉注释,改为
    auth    0.0.0.0/0               -               u
    u:使用ss5.passwd帐号密码登录,-:默认任何人都可使用

    #permit -        0.0.0.0/0       -       0.0.0.0/0       -       -       -       -       -
    去掉注释:
    permit -        0.0.0.0/0       -       0.0.0.0/0       -       -       -       -       -

    添加用户名密码
    vim ss5.passwd
    test test

    3. 启动socks服务测试
    root@test:~# chmod 755 /etc/rc.d/init.d/ss5
    root@test:~# /etc/init.d/ss5 start
  • 相关阅读:
    docker 数据管理3
    docker 网络4种模式
    docker数据管理2
    docker 基于现有镜像修改后保存,上传私有仓库
    新装docker 从本地仓库下载
    decode_json 必须是unicode形式的字符
    perl 公交车查询
    docker 私有仓库内容
    docker 私有仓库上传镜像,其他docker服务器从私有镜像下载
    docker 创建新的镜像到私有仓库
  • 原文地址:https://www.cnblogs.com/networking/p/4507673.html
Copyright © 2011-2022 走看看