MetaCubeX / mihomo

A simple Python Pydantic model for Honkai: Star Rail parsed data from the Mihomo API.
https://wiki.metacubex.one
MIT License
16.65k stars 2.66k forks source link

connect error: failed to use xtls-rprx-vision, maybe "security" is not "tls" or "utls" #471

Closed roachsinai closed 1 year ago

roachsinai commented 1 year ago

clinet

OS: ArchLinux
clash-meta-alpha-git 20230327.r0.g6d40de21-1
clash-verge-bin 1.3.0-0

server

OS: Ubuntu 20.04
xray --version
Xray 1.8.0 (Xray, Penetrates Everything.) Custom (go1.20.2 linux/amd64)

Error:

03-28 23:42:06WARNING
[TCP] dial RAKSMART (match DomainKeyword/github) 127.0.0.1:53538 --> alive.github.com:443 error: SERVER_IP:443 connect error: failed to use xtls-rprx-vision, maybe "security" is not "tls" or "utls"

Server config:

{
    "log": {
        "loglevel": "warning"
    },
    "routing": {
        "domainStrategy": "IPIfNonMatch",
        "rules": [
            {
                "type": "field",
                "ip": [
                    "geoip:cn"
                ],
                "outboundTag": "block"
            }
        ]
    },
    "inbounds": [
        {
            "port": 443,
            "protocol": "vless",
            "settings": {
                "clients": [
                    {
                        "id": "xxxxxxxxxx",
                        "flow": "xtls-rprx-vision"
                    }
                ],
                "decryption": "none",
                "fallbacks": [
                    {
                        "dest": 8388
                    }
                ]
            },
            "streamSettings": {
                "network": "tcp",
                "security": "tls",
                "tlsSettings": {
                    "minVersion": "1.2",
                    "certificates": [
                        {
                            "certificateFile": "/usr/local/etc/xray/server.crt",
                            "keyFile": "/usr/local/etc/xray/server.key"
                        }
                    ]
                }
            },
            "sniffing": {
                "enabled": true,
                "destOverride": [
                    "http",
                    "tls"
                ]
            }
        },
        {
            "port": 8388,
            "listen": "127.0.0.1",
            "protocol": "trojan",
            "settings": {
                "clients": [
                    {
                        "password": "xxxxxxx"
                    }
                ],
                "fallbacks": [
                    {
                        "dest": "xxxxxxxxx:80"
                    }
                ]
            },
            "streamSettings": {
                "network": "tcp",
                "security": "none"
            }
        }
    ],
    "outbounds": [
        {
            "protocol": "freedom",
            "tag": "direct"
        },
        {
            "protocol": "blackhole",
            "tag": "block"
        }
    ],
    "policy": {
        "levels": {
            "0": {
                "handshake": 2,
                "connIdle": 120
            }
        }
    }
}

clinet yaml

proxies:    - { name: 'LA raksmart', type: vless, server: SERVER_IP, port: 443, uuid: xxxxxxxxxxxxx, password: xxxxxx, flow: xtls-rprx-vision, network: tcp, sni: xxxxxxxxxxx, udp: true, xudp: true, skip-cert-verify: true }
proxy-groups:    - { name: RAKSMART, type: select, proxies: ['LA raksmart'] }

Is there some settings I missing? Thanks a lot!

winnie-neil commented 1 year ago

How do you solve this issue? I met exactly the same.

SetoKaiba commented 1 year ago

@roachsinai How do you solve this issue? Thank you.

roachsinai commented 1 year ago

Sorry for forget the details. Should be turn to follow https://github.com/chika0801/Xray-examples/tree/main/VLESS-XTLS-uTLS-REALITY to use reality.

@SetoKaiba @winnie-neil