码迷,mamicode.com
首页 > 其他好文 > 详细

centos 中v2r客户端配置实例

时间:2020-06-15 21:14:37      阅读:89      评论:0      收藏:0      [点我收藏+]

标签:routing   url   配置   tar   tls   proxy   socks   ack   add   

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-a5a707f13e35",
                "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

  

centos 中v2r客户端配置实例

标签:routing   url   配置   tar   tls   proxy   socks   ack   add   

原文地址:https://www.cnblogs.com/yoyo1216/p/13137569.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!