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
    

      

  • 相关阅读:
    Python
    Python
    Python
    Python
    Python
    《The Rise and Fall of Scala》scala的兴衰
    Scala核心编程_第05章_函数式编程
    IntelliJ IDEA scala的源码设置
    Scala核心编程_第04章 程序流程控制
    Scala核心编程_第03章_运算符
  • 原文地址:https://www.cnblogs.com/yoyo1216/p/13137569.html
Copyright © 2011-2022 走看看