diff --git a/base/base/singbox.json b/base/base/singbox.json index 4263bd55d..2202a8d6f 100644 --- a/base/base/singbox.json +++ b/base/base/singbox.json @@ -1,104 +1,111 @@ { - "log": { - "disabled": false, - "level": "info", - "timestamp": true - }, - "dns": { - "servers": [ - { - "tag": "dns_proxy", - "address": "tls://1.1.1.1", - "address_resolver": "dns_resolver" - }, - { - "tag": "dns_direct", - "address": "h3://dns.alidns.com/dns-query", - "address_resolver": "dns_resolver", - "detour": "DIRECT" - }, - { - "tag": "dns_fakeip", - "address": "fakeip" - }, - { - "tag": "dns_resolver", - "address": "223.5.5.5", - "detour": "DIRECT" - }, - { - "tag": "block", - "address": "rcode://success" - } + "log": { + "disabled": false, + "level": "info", + "timestamp": true + }, + "dns": { + "servers": [ + { + "tag": "dns_proxy", + "address": "tls://1.1.1.1", + "address_resolver": "dns_resolver" + }, + { + "tag": "dns_direct", + "address": "h3://dns.alidns.com/dns-query", + "address_resolver": "dns_resolver", + "detour": "DIRECT" + }, + { + "tag": "dns_fakeip", + "address": "fakeip" + }, + { + "tag": "dns_resolver", + "address": "223.5.5.5", + "detour": "DIRECT" + }, + { + "tag": "block", + "address": "rcode://success" + } + ], + "rules": [ + { + "outbound": [ + "any" ], - "rules": [ - { - "outbound": [ - "any" - ], - "server": "dns_resolver" - }, - { - "geosite": [ - "category-ads-all" - ], - "server": "dns_block", - "disable_cache": true - }, - { - "geosite": [ - "geolocation-!cn" - ], - "query_type": [ - "A", - "AAAA" - ], - "server": "dns_fakeip" - }, - { - "geosite": [ - "geolocation-!cn" - ], - "server": "dns_proxy" - } + "server": "dns_resolver" + }, + { + "geosite": [ + "category-ads-all" ], - "final": "dns_direct", - "independent_cache": true, - "fakeip": { - "enabled": true, - "inet6_range": "fc00::\/18", - "inet4_range": "198.18.0.0\/15" - } - }, - "ntp": { - "enabled": true, - "server": "time.apple.com", - "server_port": 123, - "interval": "30m", - "detour": "DIRECT" - }, - "inbounds": [ - { - "type": "mixed", - "tag": "mixed-in", - "listen": "0.0.0.0", - "listen_port": 2080 - }, - { - "type": "tun", - "tag": "tun-in", - "inet4_address": "172.19.0.1/30", - "inet6_address": "fdfe:dcba:9876::1/126", - "auto_route": true, - "strict_route": true, - "stack": "mixed", - "sniff": true - } + "server": "dns_block", + "disable_cache": true + }, + { + "geosite": [ + "geolocation-!cn" + ], + "query_type": [ + "A", + "AAAA" + ], + "server": "dns_fakeip" + }, + { + "geosite": [ + "geolocation-!cn" + ], + "server": "dns_proxy" + } ], - "outbounds": [], - "route": { - "rules": [], - "auto_detect_interface": true + "final": "dns_direct", + "independent_cache": true, + "fakeip": { + "enabled": true, + "inet6_range": "fc00::\/18", + "inet4_range": "198.18.0.0\/15" + } + }, + "ntp": { + "enabled": true, + "server": "time.apple.com", + "server_port": 123, + "interval": "30m", + "detour": "DIRECT" + }, + "inbounds": [ + { + "type": "mixed", + "tag": "mixed-in", + "listen": "0.0.0.0", + "listen_port": 2080 }, - "experimental": {} + { + "type": "tun", + "tag": "tun-in", + "inet4_address": "172.19.0.1/30", + "inet6_address": "fdfe:dcba:9876::1/126", + "auto_route": true, + "strict_route": true, + "stack": "mixed", + "sniff": true + } + ], + "outbounds": [], + "route": { + "rules": [], + "auto_detect_interface": true + }, + "experimental": { + "clash_api": { + "external_controller": "127.0.0.1:9090", + "external_ui": "dashboard", + "store_selected": true, + "store_fakeip": true + } + } }