Closed chika0801 closed 2 years ago
自定义配置内容
{
"log": {
"access": "",
"error": "",
"loglevel": "warning"
},
"dns": {
"servers": [
"fakedns",
"1.1.1.1"
],
"queryStrategy": "UseIPv4"
},
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"inboundTag": [
"dns-in"
],
"outboundTag": "dns-out"
},
{
"type": "field",
"ip": [
"1.1.1.1"
],
"outboundTag": "proxy"
},
{
"type": "field",
"domain": [
"geosite:category-ads-all"
],
"outboundTag": "block"
},
{
"type": "field",
"domain": [
"geosite:geolocation-!cn"
],
"outboundTag": "proxy"
},
{
"type": "field",
"domain": [
"geosite:tld-cn",
"geosite:cn"
],
"outboundTag": "direct"
},
{
"type": "field",
"ip": [
"geoip:cn",
"geoip:private"
],
"outboundTag": "direct"
}
]
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 10808,
"protocol": "socks",
"settings": {
"udp": true
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic",
"fakedns"
]
}
},
{
"listen": "127.0.0.1",
"port": 10809,
"protocol": "http",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic",
"fakedns"
]
}
},
{
"listen": "127.0.0.1",
"port": 10853,
"protocol": "dokodemo-door",
"settings": {
"address": "1.1.1.1",
"port": 53,
"network": "tcp,udp"
},
"tag": "dns-in"
}
],
"outbounds": [
{
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "",
"port": 443,
"users": [
{
"id": "chika",
"encryption": "none",
"flow": "xtls-rprx-splice"
}
]
}
]
},
"streamSettings": {
"network": "tcp",
"security": "xtls",
"xtlsSettings": {
"serverName": "",
"allowInsecure": false
}
},
"tag": "proxy"
},
{
"protocol": "freedom",
"settings": {
"domainStrategy": "AsIs"
},
"tag": "direct"
},
{
"protocol": "blackhole",
"settings": {
"response": {
"type": "http"
}
},
"tag": "block"
},
{
"protocol": "dns",
"proxySettings": {
"tag": "proxy"
},
"tag": "dns-out"
}
]
}
我只有手机v2rayNG能测试fakedns,无其它测试方式条件
实际上 xray 这边的 fakedns 对于 ip 处于相应段的情况会自动调用其它 sniffer 也就是说跟 fly 的 fakedns+others 功能一样 啥时候我去更新一下文档。。
实际上 xray 这边的 fakedns 对于 ip 处于相应段的情况会自动调用其它 sniffer 也就是说跟 fly 的 fakedns+others 功能一样 啥时候我去更新一下文档。。
谢谢你。
在1.8.4里这个问题依然存在
客户端软件是v2rayNG 1.7.17 Xray-core 1.5.9
根据文档 https://xtls.github.io/Xray-docs-next/config/inbound.html#sniffingobject
其中 ["fakedns+others"] 相当于 ["http", "tls", "quic", "fakedns"]
使用"fakedns+others"时看日志,域名嗅探没成功。网页打不开,tg倒是能用(想了下tg是用的IP)
将"fakedns+others"换成"http", "tls", "quic", "fakedns",就正常打开网页了
v2rayNG的log