{ "log": { "level": "info", "timestamp": true }, "experimental": { "cache_file": { "enabled": true, "store_fakeip": true, "store_rdrc": true }, "clash_api": { "external_controller": "127.0.0.1:9090", "access_control_allow_origin": [ "http://127.0.0.1", "https://yacd.metacubex.one", "https://metacubex.github.io", "https://metacubexd.pages.dev", "https://board.zash.run.place" ] } }, "dns": { "independent_cache": true, "servers": [ { "tag": "google", "address": "https://8.8.8.8/dns-query", "detour": "proxy" }, { "tag": "ali", "address": "https://223.5.5.5/dns-query", "detour": "直连" }, { "tag": "fakeip", "address": "fakeip" } ], "rules": [ { "outbound": "any", "server": "ali" }, { "clash_mode": "Direct", "server": "ali" }, { "clash_mode": "Global", "server": "google" }, { "query_type": ["A", "AAAA"], "server": "fakeip" }, { "rule_set": "geosite-cn", "server": "ali" } ], "fakeip": { "enabled": true, "inet4_range": "198.18.0.0/15", "inet6_range": "fc00::/18" } }, "inbounds": [ { "type": "tun", "address": ["172.18.0.1/30", "fdfe:dcba:9876::1/126"], "auto_route": true, "strict_route": true }, { "type": "mixed", "listen": "::", "listen_port": 7890 } ], "outbounds": [ { "tag": "proxy", "type": "vmess", "server": "149.104.29.119", "server_port": 443, "uuid": "a49cd535-8de0-486d-cec5-e37bfa979629", "security": "auto", "alter_id": 0, "global_padding": false, "authenticated_length": true, "tls": { "enabled": true, "server_name": "hk-fly.jianghugaoji.com", "insecure": true, "utls": { "enabled": true, "fingerprint": "chrome" } }, "packet_encoding": "", "transport": { "type": "ws", "path": "/iduhiuerhieior/", "headers": { "Host": "hk-fly.jianghugaoji.com" } }, "multiplex": { "enabled": false, "protocol": "smux", "max_streams": 32 } }, { "tag": "直连", "type": "direct" } ], "route": { "auto_detect_interface": true, "rules": [ { "action": "sniff" }, { "protocol": "dns", "action": "hijack-dns" }, { "ip_is_private": true, "outbound": "直连" }, { "rule_set": "anti-ad", "clash_mode": "Rule", "action": "reject" }, { "clash_mode": "Direct", "outbound": "直连" }, { "clash_mode": "Global", "outbound": "proxy" }, { "rule_set": "geosite-github", "outbound": "proxy" }, { "rule_set": ["geoip-google", "geosite-google"], "outbound": "proxy" }, { "rule_set": "geosite-microsoft", "outbound": "proxy" }, { "rule_set": "geosite-openai", "outbound": "proxy" }, { "rule_set": ["geoip-telegram", "geosite-telegram"], "outbound": "proxy" }, { "rule_set": ["geoip-twitter", "geosite-twitter"], "outbound": "proxy" }, { "rule_set": "geosite-youtube", "outbound": "proxy" }, { "rule_set": ["geoip-cn", "geosite-cn"], "outbound": "国内" } ], "rule_set": [ { "tag": "anti-ad", "type": "remote", "format": "binary", "url": "https://anti-ad.net/anti-ad-sing-box.srs" }, { "tag": "geosite-github", "type": "remote", "format": "binary", "url": "https://raw.github.com/lyc8503/sing-box-rules/rule-set-geosite/geosite-github.srs" }, { "tag": "geoip-google", "type": "remote", "format": "binary", "url": "https://raw.github.com/lyc8503/sing-box-rules/rule-set-geoip/geoip-google.srs" }, { "tag": "geosite-google", "type": "remote", "format": "binary", "url": "https://raw.github.com/lyc8503/sing-box-rules/rule-set-geosite/geosite-google.srs" }, { "tag": "geosite-microsoft", "type": "remote", "format": "binary", "url": "https://raw.github.com/lyc8503/sing-box-rules/rule-set-geosite/geosite-microsoft.srs" }, { "tag": "geosite-openai", "type": "remote", "format": "binary", "url": "https://raw.github.com/lyc8503/sing-box-rules/rule-set-geosite/geosite-openai.srs" }, { "tag": "geoip-telegram", "type": "remote", "format": "binary", "url": "https://raw.github.com/lyc8503/sing-box-rules/rule-set-geoip/geoip-telegram.srs" }, { "tag": "geosite-telegram", "type": "remote", "format": "binary", "url": "https://raw.github.com/lyc8503/sing-box-rules/rule-set-geosite/geosite-telegram.srs" }, { "tag": "geoip-twitter", "type": "remote", "format": "binary", "url": "https://raw.github.com/lyc8503/sing-box-rules/rule-set-geoip/geoip-twitter.srs" }, { "tag": "geosite-twitter", "type": "remote", "format": "binary", "url": "https://raw.github.com/lyc8503/sing-box-rules/rule-set-geosite/geosite-twitter.srs" }, { "tag": "geosite-youtube", "type": "remote", "format": "binary", "url": "https://raw.github.com/lyc8503/sing-box-rules/rule-set-geosite/geosite-youtube.srs" }, { "tag": "geosite-cn", "type": "remote", "format": "binary", "url": "https://raw.github.com/lyc8503/sing-box-rules/rule-set-geosite/geosite-cn.srs" }, { "tag": "geoip-cn", "type": "remote", "format": "binary", "url": "https://raw.github.com/lyc8503/sing-box-rules/rule-set-geoip/geoip-cn.srs" } ] } }