Xray-examples icon indicating copy to clipboard operation
Xray-examples copied to clipboard

Vless-Xhttp-Reality(self-steal) problem

Open ranthe21 opened this issue 10 months ago • 0 comments

Hi

I have Vless-Xhttp-Reality(self-steal) based on your config files.

Server:

{
  "log": {
    "loglevel": "warning"
  },
  "routing": {
    "domainStrategy": "IPIfNonMatch",
    "rules": [
      {
        "port": "443",
        "network": "udp",
        "outboundTag": "block"
      },
      {
        "protocol": [
          "bittorrent"
        ],
        "outboundTag": "block"
      }
    ]
  },
    "inbounds": [
        {
            "listen": "@xhttp",
            "protocol": "vless",
            "settings": {
                "decryption": "none",
                "clients": [
                    {
                        "id": "uuid1"
                    }
                ]
            },
            "streamSettings": {
                "network": "xhttp",
                "xhttpSettings": {
                    "path": "/path1"
                }
            },
            "sniffing": {
                "enabled": true,
                "destOverride": [
                    "http",
                    "tls",
                    "quic"
                ]
            }
        },
        {
            "listen": "0.0.0.0",
            "port": 443,
            "protocol": "vless",
            "settings": {
                "decryption": "none",
                "fallbacks": [
                    {
                        "dest": "@xhttp"
                    }
                ]
            },
            "streamSettings": {
                "network": "tcp",
                "security": "reality",
                "realitySettings": {
                    "target": "8001",
                    "xver": 1,
                    "serverNames": [
                        "my.domain.com"
                    ],
                    "privateKey": "aIprivkey",
                    "shortIds": [
                        "sid"
                    ]
                }
            }
        }
    ],
  "outbounds": [
    {
      "tag": "warp",
      "protocol": "freedom",
      "streamSettings": {
        "sockopt": {
          "tcpFastOpen": true,
          "interface": "warp"
        }
      }
    },
    {
      "protocol": "blackhole",
      "tag": "block"
    }
  ]
}

And nginx is configure like the template provided.

The server and the config is working perfectly from the client, but In the server log I see many errors:

Feb 04 17:22:38 localhost xray[22828]: 2025/02/04 17:22:38.146538 from :0 accepted tcp:92.119.89.90:8080 [warp]
Feb 04 17:22:38 localhost xray[22828]: 2025/02/04 17:22:38.169746 [Error] common/net: invalid IP format: []
Feb 04 17:22:38 localhost xray[22828]: 2025/02/04 17:22:38.169817 [Error] common/net: invalid IP format: []
Feb 04 17:22:38 localhost xray[22828]: 2025/02/04 17:22:38.174414 from :0 accepted tcp:92.119.89.90:8080 [warp]
Feb 04 17:22:38 localhost xray[22828]: 2025/02/04 17:22:38.174454 from :0 accepted tcp:45.135.201.8:8080 [warp]
Feb 04 17:22:38 localhost xray[22828]: 2025/02/04 17:22:38.693982 [Error] common/net: invalid IP format: []
Feb 04 17:22:38 localhost xray[22828]: 2025/02/04 17:22:38.697555 [Error] common/net: invalid IP format: []
Feb 04 17:22:38 localhost xray[22828]: 2025/02/04 17:22:38.706802 from :0 accepted tcp:185.132.45.248:8080 [warp]
Feb 04 17:22:38 localhost xray[22828]: 2025/02/04 17:22:38.722984 from :0 accepted tcp:212.83.32.10:8080 [warp]
Feb 04 17:22:41 localhost xray[22828]: 2025/02/04 17:22:41.151126 [Error] common/net: invalid IP format: []
Feb 04 17:22:41 localhost xray[22828]: 2025/02/04 17:22:41.165083 [Error] common/net: invalid IP format: []
Feb 04 17:22:41 localhost xray[22828]: 2025/02/04 17:22:41.168460 from :0 accepted tcp:mapi.speedtest.net:443 [warp]
Feb 04 17:22:41 localhost xray[22828]: 2025/02/04 17:22:41.992773 [Error] common/net: invalid IP format: []
Feb 04 17:22:41 localhost xray[22828]: 2025/02/04 17:22:41.996481 from :0 accepted tcp:dns.quad9.net:443 [warp]
Feb 04 17:22:42 localhost xray[22828]: 2025/02/04 17:22:42.161697 [Error] common/net: invalid IP format: []
Feb 04 17:22:42 localhost xray[22828]: 2025/02/04 17:22:42.177174 from :0 accepted tcp:mapi.speedtest.net:443 [warp]
Feb 04 17:22:42 localhost xray[22828]: 2025/02/04 17:22:42.232660 [Error] common/net: invalid IP format: []
Feb 04 17:22:42 localhost xray[22828]: 2025/02/04 17:22:42.240274 from :0 accepted tcp:gllto.glpals.com:80 [warp]


ranthe21 avatar Feb 04 '25 17:02 ranthe21