v2fly / discussion

5 stars 0 forks source link

建议:VLESS fallbacks 支持分离非 HTTP 请求 #59

Closed UMRnInside closed 3 years ago

UMRnInside commented 3 years ago

VLESS FallbackObject 可以支持分离 HTTP 请求与其它非 HTTP 协议。

fallbacks 配置格式:

                "fallbacks": [
                    {
                        "_comment": "SSH? or POP3S, SMTPS, DNS over TLS...",
                        "isNotHttp": true,
                        "dest": 22
                    },
                    {
                        "_comment": "Default HTTP fallback",
                        "dest": 8000
                    }
                ]
{
    "log": {
        "loglevel": "info"
    },
    "inbounds": [
        {
            "listen": "0.0.0.0",
            "port": 80,
            "protocol": "vless",
            "settings": {
                "clients": [
                    {
                        "id": "00000000-0000-0000-0000-000000000000",
                        "level": 0,
                        "email": "love@v2fly.org"
                    }
                ],
                "decryption": "none",
                "fallbacks": [
                    {
                        "isNotHttp": true,
                        "dest": 22
                    },
                    {
                        "dest": 8000
                    }
                ]
            },
            "streamSettings": {
                "network": "tcp"
            }
        }
    ],
    "outbounds": [
        {
            "protocol": "freedom",
            "tag": "direct"
        }
    ]
}
RPRX commented 3 years ago

明白你的想法,但会引入一些可探测的安全问题,除非找到更好的方式。

RPRX commented 3 years ago

(fallbacks 的设计始终是安全第一,分流第二)

UMRnInside commented 3 years ago

明白你的想法,但会引入一些可探测的安全问题,除非找到更好的方式。

我的想法是:

不过的确如此:几乎没有人 会在同一个端口上 同时 部署 POP3S+HTTPS 服务。 这已经不是 可探测 那么简单了

UMRnInside commented 3 years ago

https://github.com/yrutschle/sslh

仔细想想,如果要分流的话,我们完全可以不使用V2Ray/VLESS。 不过性能是个问题。

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days