Revert "xray: fix client dns settings"

This reverts commit 0b966ab1da.
This commit is contained in:
陈浩南 2023-08-29 17:06:15 +08:00
parent 0b966ab1da
commit d2b29999ff

View File

@ -66,10 +66,14 @@ inputs:
{ {
servers = servers =
[ [
{ address = "223.5.5.5"; domains = [ "geosite:geolocation-cn" ]; port = 53; tag = "dns-direct"; } { address = "223.5.5.5"; domains = [ "geosite:geolocation-cn" ]; port = 53; }
{ address = "8.8.8.8"; domains = [ "geosite:geolocation-!cn" ]; port = 53; tag = "dns-proxy"; } {
{ address = "223.5.5.5"; expectIPs = [ "geoip:cn" ]; tag = "dns-direct"; } address = "8.8.8.8";
{ address = "8.8.8.8"; tag = "dns-proxy"; } domains = [ "geosite:geolocation-!cn" "domain:worldcat.org" "domain:mstdn.one" ];
port = 53;
}
{ address = "223.5.5.5"; expectIPs = [ "geoip:cn" ]; }
{ address = "8.8.8.8"; }
]; ];
disableCache = true; disableCache = true;
queryStrategy = "UseIPv4"; queryStrategy = "UseIPv4";
@ -152,8 +156,8 @@ inputs:
[ [
{ inboundTag = [ "dns-in" ]; outboundTag = "dns-out"; } { inboundTag = [ "dns-in" ]; outboundTag = "dns-out"; }
{ inboundTag = [ "xmu-in" ]; outboundTag = "xmu-out"; } { inboundTag = [ "xmu-in" ]; outboundTag = "xmu-out"; }
{ inboundTag = [ "dns-direct" "direct-in" ]; outboundTag = "direct"; } { inboundTag = [ "direct-in" ]; outboundTag = "direct"; }
{ inboundTag = [ "dns-proxy" "proxy-in" "proxy-socks-in" ]; outboundTag = "proxy-vless"; } { inboundTag = [ "proxy-in" "proxy-socks-in" ]; outboundTag = "proxy-vless"; }
{ {
inboundTag = [ "common-in" ]; inboundTag = [ "common-in" ];
domain = [ "geosite:geolocation-cn" ]; domain = [ "geosite:geolocation-cn" ];
@ -233,6 +237,7 @@ inputs:
${ipset} create noproxy_src_net hash:net ${ipset} create noproxy_src_net hash:net
${ipset} create proxy_net hash:net ${ipset} create proxy_net hash:net
${ipset} add proxy_net 8.8.8.8
${iptables} -t mangle -N v2ray -w ${iptables} -t mangle -N v2ray -w
${iptables} -t mangle -A PREROUTING -j v2ray -w ${iptables} -t mangle -A PREROUTING -j v2ray -w