#6454·Xray-core

tun 模式存在 DNS 泄漏

作者: PhoenixNil创建于 2026年7月8日更新于 2026年9月11日
标签PR welcome

{ "log": { "loglevel": "debug", "dnsLog": true }, "dns": { "servers": [ { "address": "223.5.5.5", "domains": [ "geosite:cn", "geosite:private" ], "skipFallback": true }, { "address": "8.8.8.8" } ], "queryStrategy": "UseIPv4", "disableCache": false }, "inbounds": [ { "tag": "tun-in", "protocol": "tun", "settings": { "name": "xray0", "mtu": 1500, "gateway": [ "10.0.0.1/16", "fc00::1/64" ], "dns": [ "1.1.1.1", "8.8.8.8" ], "userLevel": 0, "autoSystemRoutingTable": [ "0.0.0.0/0", "::/0" ], "autoOutboundsInterface": "auto" }, "sniffing": { "enabled": true, "destOverride": [ "http", "tls", "quic" ] } }, { "tag": "mixed-in", "protocol": "socks", "listen": "127.0.0.1", "port": 16890, "settings": { "auth": "noauth", "udp": true } } ], "outbounds": [ { "tag": "proxy", "protocol": "shadowsocks", "settings": { "servers": [ { "address": "", "port": , "method": "2022-blake3-aes-128-gcm", "password": "" } ] }, "streamSettings": { "network": "tcp" } }, { "tag": "direct", "protocol": "freedom", "settings": {} }, { "tag": "block", "protocol": "blackhole", "settings": {} }, { "tag": "dns-out", "protocol": "dns" } ], "routing": { "domainStrategy": "AsIs", "rules": [ { "type": "field", "inboundTag": [ "tun-in" ], "port": "53", "outboundTag": "dns-out" }, { "type": "field", "outboundTag": "direct", "process": [ "self/", "xray/" ] }, { "type": "field", "outboundTag": "block", "network": "udp", "port": "443" }, { "type": "field", "outboundTag": "proxy", "domain": [ "geosite:google" ] }, { …