From a1debd65d7a1feb8d55183fa21e86707e0813026 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 2 Oct 2025 20:19:10 +0800 Subject: [PATCH] singbox: fakeip --- sing-box/1.11/Head.conf | 20 +++++++++++++++++++- sing-box/1.12/Head.conf | 14 ++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/sing-box/1.11/Head.conf b/sing-box/1.11/Head.conf index 15d8972..428cec5 100644 --- a/sing-box/1.11/Head.conf +++ b/sing-box/1.11/Head.conf @@ -5,6 +5,7 @@ "experimental": { "cache_file": { "enabled": true, + "store_fakeip": true, "store_rdrc": true }, "clash_api": { @@ -16,6 +17,10 @@ }, "dns": { "servers": [ + { + "tag": "fakeip", + "address": "fakeip" + }, { "tag": "dns_proxy", "address": "tls://8.8.8.8", @@ -28,6 +33,13 @@ } ], "rules": [ + { + "query_type": [ + "A", + "AAAA" + ], + "server": "fakeip" + }, { "rule_set": "geosite-cn", "server": "dns_direct" @@ -46,7 +58,13 @@ } ], "final": "dns_direct", - "strategy": "prefer_ipv4" + "independent_cache": true, + "strategy": "prefer_ipv4", + "fakeip": { + "enabled": true, + "inet4_range": "198.18.0.0/15", + "inet6_range": "fc00::/18" + } }, "inbounds": [ { diff --git a/sing-box/1.12/Head.conf b/sing-box/1.12/Head.conf index d0b3395..82e1a91 100644 --- a/sing-box/1.12/Head.conf +++ b/sing-box/1.12/Head.conf @@ -5,6 +5,7 @@ "experimental": { "cache_file": { "enabled": true, + "store_fakeip": true, "store_rdrc": true }, "clash_api": { @@ -16,6 +17,12 @@ }, "dns": { "servers": [ + { + "tag": "fakeip", + "type": "fakeip", + "inet4_range": "198.18.0.0/15", + "inet6_range": "fc00::/18" + }, { "type": "tls", "server": "8.8.8.8", @@ -38,6 +45,13 @@ } ], "rules": [ + { + "query_type": [ + "A", + "AAAA" + ], + "server": "fakeip" + }, { "clash_mode": "Proxy", "server": "dns_proxy"