{ "log": { "level": "warn", "output": "box.log", "timestamp": true }, "dns": { "servers": [ { "tag": "dns-remote", "address": "udp://76.76.10.0", "address_resolver": "dns-direct" }, { "tag": "dns-trick-direct", "address": "https://sky.rethinkdns.com/", "detour": "direct-fragment" }, { "tag": "dns-direct", "address": "76.76.10.0", "address_resolver": "dns-local", "detour": "direct" }, { "tag": "dns-local", "address": "local", "detour": "direct" }, { "tag": "dns-block", "address": "rcode://success" } ], "rules": [ { "domain": "cp.cloudflare.com", "server": "dns-remote", "rewrite_ttl": 3000 } ], "final": "dns-remote", "static_ips": { "sky.rethinkdns.com": [ "188.114.97.3", "188.114.96.3", "2a06:98c1:3120::3", "2a06:98c1:3121::3", "104.17.147.22", "104.17.148.22", "188.114.97.3", "188.114.96.3", "2a06:98c1:3120::3", "2a06:98c1:3121::3" ] }, "independent_cache": true }, "inbounds": [ { "type": "tun", "tag": "tun-in", "mtu": 9000, "inet4_address": "172.19.0.1/28", "auto_route": true, "strict_route": true, "endpoint_independent_nat": true, "stack": "mixed", "sniff": true, "sniff_override_destination": true }, { "type": "mixed", "tag": "mixed-in", "listen": "127.0.0.1", "listen_port": 2334, "sniff": true, "sniff_override_destination": true }, { "type": "direct", "tag": "dns-in", "listen": "127.0.0.1", "listen_port": 6450 } ], "outbounds": [ { "type": "selector", "tag": "select", "outbounds": [ "auto", "KZ+Hysteria2" ], "default": "auto" }, { "type": "urltest", "tag": "auto", "outbounds": [ "KZ+Hysteria2" ], "url": "http://cp.cloudflare.com/", "interval": "1h0m0s", "idle_timeout": "10h0m0s" }, { "type": "hysteria2", "tag": "KZ+Hysteria2", "server": "194.9.6.54", "server_port": 25998, "obfs": { "type": "salamander", "password": "sDFgv452\u0026$@jh*\u0026*ks39HS2Hj" }, "password": "TzkWCfZHzj", "tls": { "enabled": true, "insecure": true, "ech": { "config": [ "-----BEGIN ECH CONFIGS-----", "ADn+DQA1AAAgACDy3ubfDdSUVQWVRiupepJnc+zS1sitylhvLzyw80unJgAIAAEA", "AQABAAMAAicnAAA=", "-----END ECH CONFIGS-----" ] } } }, { "type": "dns", "tag": "dns-out" }, { "type": "direct", "tag": "direct" }, { "type": "direct", "tag": "direct-fragment", "tls_fragment": { "enabled": true, "size": "1-500", "sleep": "0-500" } }, { "type": "direct", "tag": "bypass" }, { "type": "block", "tag": "block" } ], "route": { "rules": [ { "rule_set": [ "geoip-ir", "geosite-ir" ], "outbound": "direct" }, { "inbound": "dns-in", "outbound": "dns-out" }, { "port": 53, "outbound": "dns-out" }, { "clash_mode": "Direct", "outbound": "direct" }, { "clash_mode": "Global", "outbound": "select" } ], "rule_set": [ { "type": "remote", "tag": "geoip-ir", "format": "binary", "url": "https://raw.githubusercontent.com/hiddify/hiddify-geo/rule-set/country/geoip-ir.srs", "update_interval": "120h0m0s" }, { "type": "remote", "tag": "geosite-ir", "format": "binary", "url": "https://raw.githubusercontent.com/hiddify/hiddify-geo/rule-set/country/geosite-ir.srs", "update_interval": "120h0m0s" } ], "final": "select", "auto_detect_interface": true, "override_android_vpn": true }, "experimental": { "cache_file": { "enabled": true, "path": "clash.db" }, "clash_api": { "external_controller": "127.0.0.1:6756", "secret": "xwvz1yvihFCt9bqw" } } }