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

怎么回落到mtprroto? #93

Open
3131210 opened this issue Sep 2, 2021 · 1 comment
Open

怎么回落到mtprroto? #93

3131210 opened this issue Sep 2, 2021 · 1 comment

Comments

@3131210
Copy link

3131210 commented Sep 2, 2021

我用的是https://github.com/alexbers/mtprotoproxy
配置是
PORT = 13000
USERS = { "tg": "xxxxxx" }
MODES = { "classic": False, "secure": False, "tls": True }
TLS_DOMAIN = "www.cloudflare.com"
PROXY_PROTOCOL = True

xray配置
{
"inbounds": [
{
"listen": "0.0.0.0",
"port": 443, //监听的端口
"protocol": "vless",
"settings": {
"clients": [
{
"id": "5272bc0d-9852-4af7-b2f0-979b1faf2973", //此处为你的UUID
"level": 0,
"email": "[email protected]",
"flow":"xtls-rprx-direct"
}
],
"decryption": "none",
"fallbacks": [
{
"dest": 33222 //默认回落端口 nginx端口
},
{
"name": "www.cloudflare.com",
"dest": 13000,
"xver": 1 //0和1都试过,但是都失败了
}
]
},
"streamSettings": {
"network": "tcp",
"security": "xtls",
"xtlsSettings": {
"serverName": "www.domainname.com", //你的域名
"alpn": [
"h2",
"http/1.1"
],
"certificates": [
{
"certificateFile": "/usr/local/etc/xray/cert/cert.crt",
"keyFile": "/usr/local/etc/xray/cert/private.key"
}
]
}
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": { }
}
]
}

@3131210
Copy link
Author

3131210 commented Sep 2, 2021

用nginx监听443 然后stream模块 sni分流www.cloudflare.com域名是成功的,用xray分流失败了

猜想如果再搞个二级域名解析到vps, mtp.domainname.com ,然后通过该域名回落,不知道可不可以。

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

1 participant