Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VLESS WSS NGINX #167

Closed
St4ck777 opened this issue Nov 24, 2023 · 2 comments
Closed

VLESS WSS NGINX #167

St4ck777 opened this issue Nov 24, 2023 · 2 comments

Comments

@St4ck777
Copy link

St4ck777 commented Nov 24, 2023

Regarding https://github.com/XTLS/Xray-examples/tree/main/VLESS-WSS-Nginx

I am not able to get it work, I wonder what I am missing?

On the server side it show "ip connect google.com/443"

But on client side I get "Fail to detect internet connection: net/http: tls handshake timeout

client file:

{
  "log": {},
  "inbounds": [
    {
      "port": "1080",
      "protocol": "socks",
      "settings": {
        "auth": "noauth",
        "udp": true
      }
    },
    {
      "port": "1081",
      "protocol": "http",
      "settings": {}
    }
  ],
  "outbounds": [
    {
      "protocol": "vless",
      "settings": {
        "vnext": [
          {
            "address": "{my.ownwebsite.com}",
            "port": 443,
            "users": [
              {
                "id": "{generatedid}", //填写你的 UUID
                "encryption": "none"
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "ws",
        "security": "tls",
        "wsSettings": {
          "path": "{/myWS}" //?ed=2048 前面填写你的 path
        },
        "tlsSettings": {
          "allowInsecure": false,
          "serverName": "{my.ownwebsite.com}",  //Equal to "SNI"
          "fingerprint": "chrome" //"chrome" or "firefox"
      }
    }},
    {
      "tag": "direct",
      "protocol": "freedom",
      "settings": {}
    },
    {
      "tag": "blocked",
      "protocol": "blackhole",
      "settings": {}
    }
  ],
  "routing": {
    "domainStrategy": "IPOnDemand",
    "rules": [
      {
        "type": "field",
        "ip": [
          "geoip:private"
        ],
        "outboundTag": "direct"
      }
    ]
  }
}

using android v2rayNG for client and ubuntu for server.

@St4ck777
Copy link
Author

Server side:

2023/11/24 01:55:13 xxx.xxx.xxx.xxx:0 accepted tcp:www.google.com:443 [direct]
        2023/11/24 02:05:58  xxx.xxx.xxx.xxx:0 accepted tcp:www.google.com:443 [direct]

server config:

{
  "log": {
    "loglevel": "warning" // https://github.com/XTLS/Xray-examples/tree/main/VLESS-WSS-Nginx
  },
  "inbounds": [
    {
      "listen": "127.0.0.1",
      "port": 1234 ,
      "protocol": "vless",
      "settings": {
        "clients": [
          {
            "id":  // 填写你的 UUID
          }
        ],
        "decryption": "none"
      },
      "streamSettings": {
        "network": "ws",
        "wsSettings": {
          "path": "{/myWS}" // 填写你的 path
        }
      },
      "sniffing": {
        "enabled": true,
        "destOverride": [
          "http",
          "tls"
        ]
      }
    }
  ],
  "outbounds": [
    {
      "tag": "direct",
      "protocol": "freedom",
      "settings": {}
    },
    {
      "tag": "blocked",
      "protocol": "blackhole",
      "settings": {}
    }
  ],
  "routing": {
    "domainStrategy": "IPIfNonMatch",
    "rules": [
      {
        "type": "field",
        "ip": [
          "geoip:cn",
          "geoip:private"
        ],
        "outboundTag": "blocked"
      }
    ]
  }
}

@Fangliding
Copy link
Member

Did you fill every fields?

@Fangliding Fangliding closed this as not planned Won't fix, can't repro, duplicate, stale Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants