Replies: 3 comments 2 replies
-
|
Also. I tried to use reality instead of nginx. {
"log": {
"loglevel": "info"
},
"inbounds": [
{
"port": 1080,
"protocol": "socks",
"settings": {
"udp": true
}
}
],
"outbounds": [
{
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "myip",
"port": 8443,
"users": [
{
"id": "myid",
"encryption": "none",
"flow": ""
}
]
}
]
},
"streamSettings": {
"network": "xhttp",
"security": "reality",
"realitySettings": {
"fingerprint": "firefox",
"serverName": "mydomain",
"publicKey": "mypubkey",
"shortId": "abcdef",
"spiderX": "/"
},
"xhttpSettings": {
"path": "/storage",
"mode": "auto"
}
}
}
]
}Server: {
"log": {
"loglevel": "info"
},
"inbounds": [
{
"port": 8443,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "myid"
}
],
"decryption": "none"
},
"streamSettings": {
"network": "xhttp",
"security": "reality",
"realitySettings": {
"show": false,
"target": "127.0.0.1:16000",
"xver": 0,
"serverNames": ["mydomain"],
"privateKey": "myprivkey",
"shortIds": ["abcdef"]
},
"xhttpSettings": {
"path": "/storage",
"mode": "auto"
},
"sniffing": {
"enabled": true
}
}
}
],
"outbounds": [
{
"protocol": "freedom"
}
]
}The behavior is the same. The server catches all the requests but the client does not receive any responses. If I change serverNames and target to google, then everything starts working. Don't understand why |
Beta Was this translation helpful? Give feedback.
-
|
I encountered the exact same problem. xray responds with a Content-Length: 0 header, and then transmits the data. nginx terminates the connection because of this. |
Beta Was this translation helpful? Give feedback.
-
And don't set path in inbound settings. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I have XRay 26.2.6 both on my client and server machines. What I try to achieve:
I want the client to connect to my Nginx server via 443 (with true domain and true certificates), then nginx proxies it to unix socket to the xray server. What my configs look like:
client.json:{ "log": { "loglevel": "info" }, "inbounds": [ { "port": 1080, "protocol": "socks", "settings": { "udp": true } } ], "outbounds": [ { "protocol": "vless", "settings": { "vnext": [ { "address": "myip", "port": 443, "users": [ { "id": "myid", "encryption": "none", "flow": "" } ] } ] }, "streamSettings": { "network": "xhttp", "security": "tls", "tlsSettings": { "serverName": "mydomain", "alpn": ["h2"], "fingerprint": "firefox" }, "xhttpSettings": { "path": "/database", "mode": "auto" } } } ] }Nginx config:
And server
config.json:{ "log": { "loglevel": "info" }, "inbounds": [ { "listen": "/dev/shm/xrxh.socket,0666", "protocol": "vless", "settings": { "clients": [ { "id": "myid", "flow": "" } ], "decryption": "none" }, "streamSettings": { "network": "xhttp", "security": "none", "xhttpSettings": { "path": "/database", "mode": "auto" } } } ], "outbounds": [ { "protocol": "freedom" } ] }Xray server sees every request that I did via client but there is no response on the client side. Also, I see some strange entries in nginx log, like these:
Any ideas what I can try to make it work?
Beta Was this translation helpful? Give feedback.
All reactions