{ "log": { "disabled": false, "level": "error", "output": "/data/adb/box/run/sing-box.log", "timestamp": false }, "experimental": { "cache_file": { "enabled": true, "path": "cache.db" }, "clash_api": { "external_controller": "0.0.0.0:9090", "external_ui": "./dashboard" } }, "dns": { "servers": [ { "tag": "Internet-dns", "address": "8.8.8.8", "strategy": "ipv4_only", "detour": "Internet" }, { "tag": "direct-dns", "address": "local", "strategy": "ipv4_only", "detour": "direct" }, { "tag": "block-dns", "address": "rcode://success" } ], "rules": [ { "domain_suffix": [], "server": "direct-dns", "rewrite_ttl": 20 }, { "outbound": "direct", "server": "direct-dns", "rewrite_ttl": 20 }, { "outbound": "any", "server": "direct-dns", "rewrite_ttl": 20 } ], "final":"Internet-dns", "reverse_mapping": true, "independent_cache": true, "disable_cache": true }, "inbounds": [ { "type": "tproxy", "tag": "tproxy-in", "listen": "::", "listen_port": 9898, "sniff": true, "sniff_override_destination": false } ], "outbounds": [ { "type": "selector", "tag": "Internet", "outbounds": [ "Best Latency" ] }, { "type": "urltest", "tag": "Best Latency", "outbounds": [ ], "url": "http://www.gstatic.com/generate_204", "interval": "5m" }, { "type": "direct", "tag": "direct" }, { "type": "block", "tag": "block" }, { "type": "dns", "tag": "dns-out" } ], "route": { "auto_detect_interface": true, "final": "Internet", "geoip": { "download_url": "https://github.com/malikshi/sing-box-geo/releases/latest/download/geoip.db", "download_detour": "Best Latency" }, "geosite": { "download_url": "https://github.com/malikshi/v2ray-rules-dat/releases/latest/download/geosite.db", "download_detour": "Best Latency" }, "rules": [ { "outbound": "dns-out", "port": [ 53 ] } ] } }