zoukankan      html  css  js  c++  java
  • centos 中v2r客户端配置实例

    1.安装

    bash <(curl -L -s https://install.direct/go.sh)
    

    2.修改配置文件

    vim /etc/v2r/config.json
    
    {
      "log": {
        "error": "",
        "loglevel": "info",
        "access": ""
      },
      "inbounds": [
        {
          "listen": "0.0.0.0",
          "protocol": "socks",
          "settings": {
            "udp": false,
            "auth": "noauth"
          },
          "port": 1080
        },
        {
          "listen": "0.0.0.0",
          "protocol": "http",
          "settings": {
            "timeout": 360
          },
          "port": 1081
        }
      ],
      "outbounds": [
        {
          "mux": {
            "enabled": false,
            "concurrency": 8
          },
          "protocol": "vmess",
          "streamSettings": {
            "wsSettings": {
              "path": "/live",
              "headers": {
                "host": ""
              }
            },
            "tlsSettings": {
              "allowInsecure": true
            },
            "security": "tls",
            "network": "ws"
          },
          "tag": "proxy",
          "settings": {
            "vnext": [
              {
                "address": "cf2us.mzke5.buzz",
                "users": [
                  {
                    "id": "79758a33-5ad2-4058-8f55-a5a707f13e",
                    "alterId": 2,
                    "level": 0,
                    "security": "aes-128-gcm"
                  }
                ],
                "port": 443
              }
            ]
          }
        },
        {
          "tag": "direct",
          "protocol": "freedom",
          "settings": {
            "domainStrategy": "UseIP",
            "redirect": "",
            "userLevel": 0
          }
        },
        {
          "tag": "block",
          "protocol": "blackhole",
          "settings": {
            "response": {
              "type": "none"
            }
          }
        }
      ],
      "dns": {},
      "routing": {
        "settings": {
          "domainStrategy": "AsIs",
          "rules": []
        }
      },
      "transport": {}
    }
    

    3.启动

    service v2r stop  # 停止
    service v2r start   # 启动
    service v2r status  # 查看状态
    
    service v2r stop && service v2r start && service v2r status
    

      

  • 相关阅读:
    MySQL 日志管理
    nginx 日志分割
    Canvas 动态小球重叠效果
    Canvas制作动态进度加载水球
    js 多张爆炸效果轮播图
    js 多张图片加载 环形进度条
    INSTALL_FAILED_CONFLICTING_PROVIDER
    安卓 文件管理器 各种应用 源码
    android 静音
    android studio 查看大纲
  • 原文地址:https://www.cnblogs.com/yoyo1216/p/13137569.html
Copyright © 2011-2022 走看看