xhttp upstream and downstream separation #6042
|
Good afternoon ! Xray 26.3.27 (Xray, Penetrates Everything.) d2758a0 (go1.26.1 linux/amd64) Xray-Core client configuration######### Start ######### } //Global End |
Replies: 3 comments 4 replies
|
So i cleaned your json a bit {
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "2.**.**.73",
"port": 443,
"users": [
{
"id": "test-x-id",
"encryption": "none"
}
]
}
]
},
"streamSettings": {
"network": "xhttp",
"security": "reality",
"realitySettings": {
"fingerprint": "chrome",
"serverName": "www.microsoft.com",
"publicKey": "Rf-w9MfmJ3uLVnqhFqZJ3veJOpAyv62oOpAyv62o",
"spiderX": "",
"shortId": "0123456789abcdef",
"alpn": ["h3"]
},
"xhttpSettings": {
"host": "www.microsoft.com",
"path": "/download/updates",
"mode": "stream-up",
"extra": {
"headers": {},
"xPaddingBytes": "100-1000",
"xmux": {
"maxConcurrency": 128,
"hMaxRequestTimes": 1000,
"hMaxReusableSecs": 3600
}
}
}
},
"downloadSettings": {
"address": "2a14:****:****::b79",
"port": 443,
"users": [
{
"id": "test-x1-id",
"encryption": "none"
}
],
"network": "xhttp",
"security": "reality",
"realitySettings": {
"fingerprint": "chrome",
"serverName": "speed.cloudflare.com",
"publicKey": "Rf-w9MfmJ3uLVnqhFqZJ3veJOpAyv62oOpAyv62o",
"spiderX": "",
"shortId": "0123456789abcdef",
"alpn": ["h3"]
},
"xhttpSettings": {
"host": "speed.cloudflare.com",
"path": "/download/updates",
"mode": "stream-down",
"extra": {
"headers": {},
"xPaddingBytes": "100-1000",
"xmux": {
"maxConcurrency": 128,
"hMaxRequestTimes": 1000,
"hMaxReusableSecs": 3600
}
}
}
},
"tag": "xhttp_out_nl"
}Here is a fixed config {
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "2.**.**.73",
"port": 443,
"users": [
{
"id": "test-x-id",
"encryption": "none"
}
]
}
]
},
"streamSettings": {
"network": "xhttp",
"security": "reality",
"realitySettings": {
"fingerprint": "chrome",
"serverName": "www.microsoft.com",
"publicKey": "Rf-w9MfmJ3uLVnqhFqZJ3veJOpAyv62oOpAyv62o",
"spiderX": "",
"shortId": "0123456789abcdef",
"alpn": ["h3"]
},
"xhttpSettings": {
"host": "www.microsoft.com",
"path": "/download/updates",
"mode": "stream-up",
"extra": {
"headers": {},
"xPaddingBytes": "100-1000",
"xmux": {
"maxConcurrency": 128,
"hMaxRequestTimes": 1000,
"hMaxReusableSecs": 3600
},
"downloadSettings": {
"address": "2a14:****:****::b79",
"port": 443,
"network": "xhttp",
"security": "reality",
"realitySettings": {
"fingerprint": "chrome",
"serverName": "speed.cloudflare.com",
"publicKey": "Rf-w9MfmJ3uLVnqhFqZJ3veJOpAyv62oOpAyv62o",
"spiderX": "",
"shortId": "0123456789abcdef",
"alpn": ["h3"]
},
"xhttpSettings": {
"host": "speed.cloudflare.com",
"path": "/download/updates",
"mode": "stream-down",
"extra": {
"headers": {},
"xPaddingBytes": "100-1000",
"xmux": {
"maxConcurrency": 128,
"hMaxRequestTimes": 1000,
"hMaxReusableSecs": 3600
}
}
}
}
}
}
},
"tag": "xhttp_out_nl"
}The downloadSettings is not a top level config like you think, it goes under xhttpSettings -> extra |
Inbound Server Configuration############################ ipV4 ################################################################ ######################### ipV6 ################################################################### ], |
|
You can use my template, which implement xhttp with separation of ipv4 and ipv6 using Unix socket @xhttp_inner: #6078 {
"listen": "::",
"port": 443,
"tag": "vless-xhttp",
"protocol": "vless",
"settings": {
"clients": [{ "id": "test-x-id", "flow": "", "email": "xhttp@xray.com" }],
"decryption": "none"
},
"streamSettings": {
"network": "xhttp",
"security": "reality",
"realitySettings": { ... },
"xhttpSettings": {
"path": "/download/updates",
"mode": "auto"
}
}
} |

So i cleaned your json a bit
{ "protocol": "vless", "settings": { "vnext": [ { "address": "2.**.**.73", "port": 443, "users": [ { "id": "test-x-id", "encryption": "none" } ] } ] }, "streamSettings": { "network": "xhttp", "security": "reality", "realitySettings": { "fingerprint": "chrome", "serverName": "www.microsoft.com", "publicKey": "Rf-w9MfmJ3uLVnqhFqZJ3veJOpAyv62oOpAyv62o", "spiderX": "", "shortId": "0123456789abcdef", "alpn": ["h3"] }, "xhttpSettings": { "host": "www.microsoft.com", "path": "/download/updates", …