{
"log": {
"loglevel": "debug"
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 10814,
"protocol": "socks",
"settings": {
"udp": true
},
"sniffing": {
"enabled": true,
"destOverride": [
"fakedns+others"
],
"routeOnly": true
}
}
],
"outbounds": [
{
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "**********",
"port": 443,
"users": [
{
"encryption": "none",
"id": "********************"
}
]
}
]
},
"streamSettings": {
"network": "xhttp",
"xhttpSettings": {
"path": "/abc",
"mode": "stream-one"
},
"security": "tls",
"tlsSettings": {
"serverName": "***************",
"alpn": [
"h3",
"h2",
"h1"
]
}
}
},
{
"protocol": "socks",
"settings": {
"servers": [
{
"address": "********************",
"port": 34218,
"users": [
{
"user": "**************",
"pass": "********************"
}
]
}
]
},
"streamSettings": {
"network": "tcp",
"security": "none"
},
"tag": "gn"
},
{
"protocol": "freedom",
"tag": "Direct",
"settings": {
"domainStrategy": "UseIP"
}
},
{
"protocol": "dns",
"tag": "Dns-Out",
"settings": {
"nonIPQuery": "skip"
}
}
],
"dns": {
"servers": [
"https://8.8.8.8/dns-query",
"https://1.1.1.1/dns-query",
{
"address": "https+local://223.6.6.6/dns-query",
"domains": [
"geosite:cn"
]
},
{
"address": "https+local://120.53.53.53/dns-query",
"domains": [
"geosite:cn"
]
},
"localhost"
]
},
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"ip": [
"***************"
],
"outboundTag": "gn"
},
{
"domain": [
"***************"
],
"outboundTag": "gn"
},
{
"domain": [
"geosite:cn"
],
"outboundTag": "Direct"
},
{
"ip": [
"geoip:cn",
"geoip:private"
],
"outboundTag": "Direct"
},
{
"outboundTag": "Dns-Out",
"network": "tcp,udp",
"port": "53"
}
]
}
}
完整性要求
描述
如题,实验了有半个月,配置是基于https://github.com/XTLS/Xray-examples/tree/main/VLESS-XHTTP3-Nginx
100%排除客户端到服务端的网络问题,切回2024.12.31版本可以一直正常使用,2025.01.30和2025.1.1版本在断联时在服务端日志会看到大量version invalid之类的信息,但是只要重启xray或nginx任意一方立刻恢复正常。
个人推测是新版本某个改动导致nginx和xray之间的socket通信出了问题?
服务器:oracle arm64
系统:ubuntu 24
nginx:1.26.3
重现方式
2025.1.1及以后的版本,使用一段时间后,最短的十几分钟后就出现断联,随后只要重启xray亦或nginx立刻恢复正常
客户端配置
Details
服务端配置
Details
客户端日志
Details
服务端日志
Details