v2fly / docker

docker build repo for v2fly
https://hub.docker.com/r/v2fly/v2fly-core
MIT License
753 stars 215 forks source link

用来做客户端不行噢,能帮我看看那里有问题吗? #30

Closed Ken123456abcdefghijk closed 3 years ago

Ken123456abcdefghijk commented 3 years ago

config.json 我抄 https://github.com/v2fly/v2ray-examples/blob/master/VLESS-TCP-TLS%20(maximal%20by%20rprx)/config_client.json 替换了下面该替换的地方

     {
         "log": {
                       "loglevel": "warning"
                 },
        "inbounds": [
              {
                "port": 10800,
                "listen": "127.0.0.1",
                "protocol": "socks",
                "settings": {
                "udp": true
              }
          }
        ],
           "outbounds": [
           {
              "protocol": "vless",
              "settings": {
               "vnext": [
                  {
                      "address": "example.com", // 换成你的域名或服务器 IP(发起请求时无需解析域名了)
                      "port": 443,
                      "users": [
                          {
                              "id": "", // 填写你的 UUID
                              "encryption": "none",
                              "level": 0
                          }
                      ]
                  }
              ]
          },
          "streamSettings": {
              "network": "tcp",
               "security": "tls",
               "tlsSettings": {
                   "serverName": "example.com" // 换成你的域名
              }
          }
         }
     ]
  }

然后 docker run -d --name v2ray --network host -v /etc/v2ray/config.json:/etc/v2ray/config.json v2fly/v2fly-core 不知道为什么不行

Ken123456abcdefghijk commented 3 years ago

忘了说我是MAC OS,这个办法在ubuntu上可以的,但在MAC 上不行 家里一台PC 用UBUNTU ,一台MAC