zoukankan      html  css  js  c++  java
  • 搭建v/2/ray和sserver

    翻墙是个话题,今天这个话题就是利用服务器搭建自己翻墙通道,过程超简单

    一、安装v/2/ray

    准备:一台境外服务器

    1、下载脚本安装v/2/ray

      bash <(curl -L -s https://install.direct/go.sh)     #执行之后开始自动下载安装

      

      安装完成之后如下图: 

      默认安装好之后,会自己创建一个端口和ID,这个是随机的,可以在配置文件中自己设置

      

    2、修改配置文件/etc/"v/2/ray"/config.json

      配置如下,根据自己的需要进行修改:

        {
        "inbounds": [{
        "port": 24806,        #v/2ray监听的端口
        "protocol": "vmess",
        "settings": {
        "clients": [
        {
        "id": "cbd995b7-a780-4108-a545-a55f834c8ab7",    #指定客户端填写的ID
        "level": 1,
        "alterId": 64    #指定客户端填写的额外的ID
        }
        ]
        }
        }],
        "outbounds": [{
        "protocol": "freedom",
        "settings": {}
        },{
        "protocol": "blackhole",
        "settings": {},
        "tag": "blocked"
        }],
        "routing": {
        "rules": [

        {
        "type": "field",
        "ip": ["geoip:private"],
        "outboundTag": "blocked"
        }
        ]
        }
        }

    3、启动/v/2/ray服务

      service /v/2/ray start

      service /v/2/ray status

       

    3、下载/v/2/ray客户端,图标如下

      

      下载之后进行配置设置configure,设置如下,address是自己服务器IP,也可以做成域名,端口是/v/2/ray监听的端口,userID和alterid就是上面配置文件中索设置的,设置好之后,保存,就可以啦!

      

    二、安装sserver

    apt-get install python-pip 
    pip install shadow/socks
    配置文件格式:xxx.json
    {
            "server":"0.0.0.0",
            "port_password":
            {
            "11001":"Sxek8dpox5mqYd",
            "11002":"Sxek8dpox5mqYd"
            },
            "timeout":60,
            "method":"rc4-md5",
            "fast_open":false,
            "workers":1
    }
    "server":"0.0.0.0”, 
    "server_port":8388, 
    "local_port":10808,
    "password":"密码与客户端配置一样”, 
    "timeout":600,
    "method":"aes-256-cfb”
    }
    启动命令:
    ssserver -c xxx.json
    直接启动:
    ssserver -p 443 -k your_password -m rc4-md5
  • 相关阅读:
    转 :table的边框属性设置总结
    Redis Sentinel 配置文件
    nginx unit的初探
    负载均衡器之 Haproxy
    利用python itchat给女朋友定时发信息
    nginx unit 的使用
    Redis Sentinel 模拟故障迁移
    Python 获取车票信息
    Nginx unit 源码安装初体验
    初识 Proxysql
  • 原文地址:https://www.cnblogs.com/Christine-ting/p/10762655.html
Copyright © 2011-2022 走看看