Problem & Summary

![[email protected]](<https://s3-us-west-2.amazonaws.com/secure.notion-static.com/c39c6e0c-fef2-4aa1-b98f-7983839be7d7/kxmini-2022-0112-AM000527-1xUO1BO72x.jpg>)

Soltion

server端

mkdir /data/v2raydocker && cd /data/v2raydocker
UUID=162dfc96-xxxxxx-49c03876398e
cat > config.json <<EOF
{
  //"log": {
  //"loglevel": "debug",
  //"access": "/etc/v2ray/access.log", // 这是 Linux 的路径
  //"error": "/etc/v2ray/error.log"
  //},
  "inbounds": [{
    "port": 65432,           //此处为安装时生成的端口,可修改随意,但是保证和下面提到的端口号相同
    "listen":"0.0.0.0",
    "protocol": "vmess",
    "settings": {
      "clients": [
        {
          "id": "${UUID}", //此处为安装时生成的 id
          "alterId": 0      //此处为安装时生成的 alterId
        }
      ]
    },
    "streamSettings": {
      "network": "ws",
      "wsSettings": {
        "path": "/SoftDown"   //此处为路径,需要和下面 NGINX 上面的路径配置一样
      }
    }
  }],
  "outbounds": [{
    "protocol": "freedom",
    "settings": {}
  }],
  "routing": {
    "rules": [
      {
        "type": "field",
        "ip": ["geoip:private"],
        "outboundTag": "direct"
      }
    ]
  }
}
EOF

docker run -d \\
  --name v2ray \\
  --restart always \\
  -e TZ=Asia/Shanghai \\
  -v $(pwd):/etc/v2ray \\
  -p 65432:65432 \\
  v2fly/v2fly-core v2ray -config=/etc/v2ray/config.json

Untitled

客户端

- name: "*V2_US_LA-大BWH5G5T_GIAEDC6*保留*登陆 --- CF优选"
  type: vmess
  server: air.xxx.domain
  port: 443
  uuid: 162dfc96-xxxxxxx-49c03876398e
  alterId: 0 # must be 0 to represent AEAD
  cipher: auto
  # udp: true
  tls: true
  servername: air.xxx.domain # priority over wss host
  network: ws
  ws-opts:
    path: /SoftDown
    headers:
      Host: air.xxx.domain
    #max-early-data: 2048  # must be commented
    #early-data-header-name: Sec-WebSocket-Protocol
  skip-cert-verify: true     #默认false

Screenshots