{ "log": { "level": "info", "timestamp": true }, "experimental": { "clash_api": { "external_controller": "0.0.0.0:9090", "external_ui": "ui", "secret": "", "external_ui_download_url": "https://gh-proxy.com/https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip", "external_ui_download_detour": "direct", "default_mode": "rule" }, "cache_file": { "enabled": true, "store_fakeip": true, "store_rdrc": true } }, "dns": { "servers": [ { "tag": "google", "type": "tls", "server": "8.8.8.8", "detour": "Proxy" }, { "tag": "local", "type": "https", "server": "223.5.5.5" }, { "tag": "fakeip", "type": "fakeip", "inet4_range": "198.18.0.0/15", "inet6_range": "fc00::/18" } ], "rules": [ { "clash_mode": "direct", "server": "local" }, { "clash_mode": "global", "server": "google" }, { "query_type": [ "A", "AAAA" ], "rule_set": "geosite-cn", "server": "fakeip" }, { "rule_set": "geosite-cn", "server": "local" }, { "type": "logical", "mode": "and", "rules": [ { "rule_set": "geosite-geolocation-!cn", "invert": true }, { "rule_set": "geoip-cn" } ], "server": "google", "client_subnet": "114.114.114.114/24" }, { "query_type": [ "A", "AAAA" ], "server": "fakeip" } ], "independent_cache": true, "strategy": "prefer_ipv4" }, "inbounds": [ { "tag": "tun-in", "type": "tun", "address": [ "172.19.0.0/30", "fdfe:dcba:9876::0/126" ], "stack": "system", "auto_route": true, "strict_route": true, "platform": { "http_proxy": { "enabled": true, "server": "0.0.0.0", "server_port": 7890 } } }, { "tag": "mixed-in", "type": "mixed", "listen": "0.0.0.0", "listen_port": 7890 } ], "outbounds": [ { "tag": "direct", "type": "direct" }, { "tag": "Proxy", "type": "selector", "outbounds": [ "{all}", "๐Ÿ‡ญ๐Ÿ‡ฐ HK AUTO", "๐Ÿ‡จ๐Ÿ‡ณ TW AUTO", "๐Ÿ‡ธ๐Ÿ‡ฌ SG AUTO", "๐Ÿ‡ฏ๐Ÿ‡ต JP AUTO", "๐Ÿ‡ฐ๐Ÿ‡ท KR AUTO", "๐Ÿ‡บ๐Ÿ‡ธ US AUTO", "๐ŸŒ Global" ] }, { "tag": "AI", "type": "selector", "outbounds": [ "Proxy", "๐Ÿ‡ญ๐Ÿ‡ฐ HK AUTO", "๐Ÿ‡จ๐Ÿ‡ณ TW AUTO", "๐Ÿ‡ธ๐Ÿ‡ฌ SG AUTO", "๐Ÿ‡ฏ๐Ÿ‡ต JP AUTO", "๐Ÿ‡ฐ๐Ÿ‡ท KR AUTO", "๐Ÿ‡บ๐Ÿ‡ธ US AUTO", "๐ŸŒ Global" ], "default": "๐Ÿ‡บ๐Ÿ‡ธ US AUTO" }, { "tag": "Google", "type": "selector", "outbounds": [ "๐Ÿ‡ญ๐Ÿ‡ฐ HK AUTO", "๐Ÿ‡จ๐Ÿ‡ณ TW AUTO", "๐Ÿ‡ธ๐Ÿ‡ฌ SG AUTO", "๐Ÿ‡ฏ๐Ÿ‡ต JP AUTO", "๐Ÿ‡ฐ๐Ÿ‡ท KR AUTO", "๐Ÿ‡บ๐Ÿ‡ธ US AUTO", "Proxy", "๐ŸŒ Global" ], "default": "Proxy" }, { "tag": "Telegram", "type": "selector", "outbounds": [ "Proxy", "๐Ÿ‡ญ๐Ÿ‡ฐ HK AUTO", "๐Ÿ‡จ๐Ÿ‡ณ TW AUTO", "๐Ÿ‡ธ๐Ÿ‡ฌ SG AUTO", "๐Ÿ‡ฏ๐Ÿ‡ต JP AUTO", "๐Ÿ‡ฐ๐Ÿ‡ท KR AUTO", "๐Ÿ‡บ๐Ÿ‡ธ US AUTO", "๐ŸŒ Global" ], "default": "๐Ÿ‡ธ๐Ÿ‡ฌ SG AUTO" }, { "tag": "Twitter", "type": "selector", "outbounds": [ "๐Ÿ‡ญ๐Ÿ‡ฐ HK AUTO", "๐Ÿ‡จ๐Ÿ‡ณ TW AUTO", "๐Ÿ‡ธ๐Ÿ‡ฌ SG AUTO", "๐Ÿ‡ฏ๐Ÿ‡ต JP AUTO", "๐Ÿ‡ฐ๐Ÿ‡ท KR AUTO", "๐Ÿ‡บ๐Ÿ‡ธ US AUTO", "Proxy", "๐ŸŒ Global" ], "default": "Proxy" }, { "tag": "Emby", "type": "selector", "outbounds": [ "๐Ÿ‡ญ๐Ÿ‡ฐ HK AUTO", "๐Ÿ‡จ๐Ÿ‡ณ TW AUTO", "๐Ÿ‡ธ๐Ÿ‡ฌ SG AUTO", "๐Ÿ‡ฏ๐Ÿ‡ต JP AUTO", "๐Ÿ‡ฐ๐Ÿ‡ท KR AUTO", "๐Ÿ‡บ๐Ÿ‡ธ US AUTO", "Proxy", "๐ŸŒ Global" ], "default": "Proxy" }, { "tag": "Spotify", "type": "selector", "outbounds": [ "๐Ÿ‡ญ๐Ÿ‡ฐ HK AUTO", "๐Ÿ‡จ๐Ÿ‡ณ TW AUTO", "๐Ÿ‡ธ๐Ÿ‡ฌ SG AUTO", "๐Ÿ‡ฏ๐Ÿ‡ต JP AUTO", "๐Ÿ‡ฐ๐Ÿ‡ท KR AUTO", "๐Ÿ‡บ๐Ÿ‡ธ US AUTO", "Proxy", "๐ŸŒ Global" ], "default": "Proxy" }, { "tag": "Tiktok", "type": "selector", "outbounds": [ "Proxy", "๐Ÿ‡ญ๐Ÿ‡ฐ HK AUTO", "๐Ÿ‡จ๐Ÿ‡ณ TW AUTO", "๐Ÿ‡ธ๐Ÿ‡ฌ SG AUTO", "๐Ÿ‡ฏ๐Ÿ‡ต JP AUTO", "๐Ÿ‡ฐ๐Ÿ‡ท KR AUTO", "๐Ÿ‡บ๐Ÿ‡ธ US AUTO", "๐ŸŒ Global" ], "default": "๐Ÿ‡ฏ๐Ÿ‡ต JP AUTO" }, { "tag": "Facebook", "type": "selector", "outbounds": [ "Proxy", "๐Ÿ‡ญ๐Ÿ‡ฐ HK AUTO", "๐Ÿ‡จ๐Ÿ‡ณ TW AUTO", "๐Ÿ‡ธ๐Ÿ‡ฌ SG AUTO", "๐Ÿ‡ฏ๐Ÿ‡ต JP AUTO", "๐Ÿ‡ฐ๐Ÿ‡ท KR AUTO", "๐Ÿ‡บ๐Ÿ‡ธ US AUTO", "๐ŸŒ Global" ] }, { "tag": "Youtube", "type": "selector", "outbounds": [ "Proxy", "๐Ÿ‡ญ๐Ÿ‡ฐ HK AUTO", "๐Ÿ‡จ๐Ÿ‡ณ TW AUTO", "๐Ÿ‡ธ๐Ÿ‡ฌ SG AUTO", "๐Ÿ‡ฏ๐Ÿ‡ต JP AUTO", "๐Ÿ‡ฐ๐Ÿ‡ท KR AUTO", "๐Ÿ‡บ๐Ÿ‡ธ US AUTO", "๐ŸŒ Global" ] }, { "tag": "Line", "type": "selector", "outbounds": [ "Proxy", "๐Ÿ‡ญ๐Ÿ‡ฐ HK AUTO", "๐Ÿ‡จ๐Ÿ‡ณ TW AUTO", "๐Ÿ‡ธ๐Ÿ‡ฌ SG AUTO", "๐Ÿ‡ฏ๐Ÿ‡ต JP AUTO", "๐Ÿ‡ฐ๐Ÿ‡ท KR AUTO", "๐Ÿ‡บ๐Ÿ‡ธ US AUTO", "๐ŸŒ Global" ], "default": "๐Ÿ‡ฏ๐Ÿ‡ต JP AUTO" }, { "tag": "Games", "type": "selector", "outbounds": [ "Proxy", "๐Ÿ‡ญ๐Ÿ‡ฐ HK AUTO", "๐Ÿ‡จ๐Ÿ‡ณ TW AUTO", "๐Ÿ‡ธ๐Ÿ‡ฌ SG AUTO", "๐Ÿ‡ฏ๐Ÿ‡ต JP AUTO", "๐Ÿ‡ฐ๐Ÿ‡ท KR AUTO", "๐Ÿ‡บ๐Ÿ‡ธ US AUTO", "๐ŸŒ Global" ] }, { "tag": "China", "type": "selector", "outbounds": [ "direct", "Proxy" ] }, { "tag": "๐Ÿ‡ญ๐Ÿ‡ฐ HK AUTO", "type": "urltest", "outbounds": [ "{all}" ], "filter": [ { "action": "include", "keywords": [ "^.*\\.(hk|้ฆ™ๆธฏ|ๆธฏ)$", "๐Ÿ‡ญ๐Ÿ‡ฐ", "HK", "hk", "HongKong", "Hong\\s?Kong" ] } ], "url": "http://www.gstatic.com/generate_204", "interval": "3m", "tolerance": 50 }, { "tag": "๐Ÿ‡จ๐Ÿ‡ณ TW AUTO", "type": "urltest", "outbounds": [ "{all}" ], "filter": [ { "action": "include", "keywords": [ "^.*\\.(tw|ๅฐๆนพ|่‡บ็ฃ|ๅฐ)$", "๐Ÿ‡น๐Ÿ‡ผ", "TW", "tw", "Taiwan" ] } ], "url": "http://www.gstatic.com/generate_204", "interval": "3m", "tolerance": 50 }, { "tag": "๐Ÿ‡ธ๐Ÿ‡ฌ SG AUTO", "type": "urltest", "outbounds": [ "{all}" ], "filter": [ { "action": "include", "keywords": [ "^.*\\.(sg|ๆ–ฐๅŠ ๅก|็‹ฎๅŸŽ)$", "๐Ÿ‡ธ๐Ÿ‡ฌ", "SG", "sg", "Singapore" ] } ], "url": "http://www.gstatic.com/generate_204", "interval": "3m", "tolerance": 50 }, { "tag": "๐Ÿ‡ฏ๐Ÿ‡ต JP AUTO", "type": "urltest", "outbounds": [ "{all}" ], "filter": [ { "action": "include", "keywords": [ "^.*\\.(jp|ๆ—ฅๆœฌ)$", "๐Ÿ‡ฏ๐Ÿ‡ต", "JP", "jp", "Japan" ] } ], "url": "http://www.gstatic.com/generate_204", "interval": "3m", "tolerance": 50 }, { "tag": "๐Ÿ‡ฐ๐Ÿ‡ท KR AUTO", "type": "urltest", "outbounds": [ "{all}" ], "filter": [ { "action": "include", "keywords": [ "^.*\\.(kr|้Ÿฉๅ›ฝ)$", "๐Ÿ‡ฐ๐Ÿ‡ท", "KR", "kr", "Korea", "South\\s?Korea" ] } ], "url": "http://www.gstatic.com/generate_204", "interval": "3m", "tolerance": 50 }, { "tag": "๐Ÿ‡บ๐Ÿ‡ธ US AUTO", "type": "urltest", "outbounds": [ "{all}" ], "filter": [ { "action": "include", "keywords": [ "^.*\\.(us|็พŽๅ›ฝ)$", "๐Ÿ‡บ๐Ÿ‡ธ", "US", "us", "United\\s?States" ] } ], "url": "http://www.gstatic.com/generate_204", "interval": "3m", "tolerance": 50 }, { "tag": "๐ŸŒ Global", "type": "urltest", "outbounds": [ "{all}" ], "filter": [ { "action": "exclude", "keywords": [ "HK", "hk", "้ฆ™ๆธฏ", "TW", "tw", "ๅฐๆนพ", "SG", "sg", "ๆ–ฐๅŠ ๅก", "๐Ÿ‡ฐ๐Ÿ‡ท", "KR", "kr", "้Ÿฉๅ›ฝ", "JP", "jp", "ๆ—ฅๆœฌ", "US", "us", "็พŽๅ›ฝ" ] } ] } ], "route": { "default_domain_resolver": { "server": "local" }, "auto_detect_interface": true, "final": "Proxy", "rules": [ { "inbound": ["tun-in", "mixed-in"], "action": "sniff" }, { "type": "logical", "mode": "or", "rules":[ { "port":53 }, { "protocol": "dns" } ], "action": "hijack-dns" }, { "rule_set": "geosite-category-ads-all", "clash_mode": "rule", "action": "reject" }, { "rule_set": "geosite-category-ads-all", "clash_mode": "global", "outbound": "Proxy" }, { "clash_mode": "direct", "outbound": "direct" }, { "clash_mode": "global", "outbound": "Proxy" }, { "domain": [ "clash.razord.top", "yacd.metacubex.one", "yacd.haishan.me", "d.metacubex.one" ], "outbound": "direct" }, { "ip_is_private": true, "outbound": "direct" }, { "rule_set": "geosite-openai", "outbound": "AI" }, { "rule_set": ["geosite-youtube", "geoip-google", "geosite-google", "geosite-github"], "outbound": "Google" }, { "rule_set": ["geoip-telegram", "geosite-telegram"], "outbound": "Telegram" }, { "rule_set": ["geoip-twitter", "geosite-twitter"], "outbound": "Twitter" }, { "rule_set":["geoip-facebook", "geosite-facebook"], "outbound": "Facebook" }, { "rule_set": "geosite-bilibili", "outbound": "China" }, { "rule_set": "geosite-bahamut", "outbound": "Proxy" }, { "rule_set": "geosite-spotify", "outbound": "Spotify" }, { "rule_set": "geosite-tiktok", "outbound": "Tiktok" }, { "rule_set": ["geoip-netflix", "geosite-netflix", "geosite-amazon"], "outbound": "Proxy" }, { "rule_set": "geosite-disney", "outbound": "Proxy" }, { "rule_set": ["geoip-apple", "geosite-apple"], "outbound": "Proxy" }, { "rule_set": "geosite-microsoft", "outbound": "Proxy" }, { "rule_set": ["geosite-category-games", "geosite-dmm"], "outbound": "Games" }, { "rule_set": ["geosite-hbo", "geosite-primevideo"], "outbound": "Proxy" }, { "rule_set": "geosite-geolocation-!cn", "outbound": "๐ŸŒ Global" }, { "rule_set": "geosite-emby", "outbound": "Emby" }, { "rule_set": "geosite-line", "outbound": "Line" }, { "rule_set": ["geoip-cn", "geosite-cn"], "outbound": "China" } ], "rule_set": [ { "tag": "geosite-category-ads-all", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/category-ads-all.srs", "download_detour": "direct" }, { "tag": "geosite-openai", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/Toperlock/sing-box-geosite@main/rule/OpenAI.srs", "download_detour": "direct" }, { "tag": "geosite-youtube", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/youtube.srs", "download_detour": "direct" }, { "tag": "geoip-google", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/google.srs", "download_detour": "direct" }, { "tag": "geosite-google", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/google.srs", "download_detour": "direct" }, { "tag": "geosite-github", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/github.srs", "download_detour": "direct" }, { "tag": "geoip-telegram", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/telegram.srs", "download_detour": "direct" }, { "tag": "geosite-telegram", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/telegram.srs", "download_detour": "direct" }, { "tag": "geoip-twitter", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/twitter.srs", "download_detour": "direct" }, { "tag": "geosite-twitter", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/twitter.srs", "download_detour": "direct" }, { "tag": "geoip-facebook", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/facebook.srs", "download_detour": "direct" }, { "tag": "geosite-facebook", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/facebook.srs", "download_detour": "direct" }, { "tag": "geosite-bilibili", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/bilibili.srs", "download_detour": "direct" }, { "tag": "geosite-bahamut", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/bahamut.srs", "download_detour": "direct" }, { "tag": "geosite-spotify", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/spotify.srs", "download_detour": "direct" }, { "tag": "geosite-tiktok", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/tiktok.srs", "download_detour": "direct" }, { "tag": "geoip-netflix", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/netflix.srs", "download_detour": "direct" }, { "tag": "geosite-netflix", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/netflix.srs", "download_detour": "direct" }, { "tag": "geosite-disney", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/disney.srs", "download_detour": "direct" }, { "tag": "geoip-apple", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo-lite/geoip/apple.srs", "download_detour": "direct" }, { "tag": "geosite-apple", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/apple.srs", "download_detour": "direct" }, { "tag": "geosite-amazon", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/amazon.srs", "download_detour": "direct" }, { "tag": "geosite-microsoft", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/microsoft.srs", "download_detour": "direct" }, { "tag": "geosite-category-games", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/category-games.srs", "download_detour": "direct" }, { "tag": "geosite-dmm", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/dmm.srs", "download_detour": "direct" }, { "tag": "geosite-hbo", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/hbo.srs", "download_detour": "direct" }, { "tag": "geosite-emby", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/senshinya/singbox_ruleset@main/rule/Emby/Emby.srs", "download_detour": "direct" }, { "tag": "geosite-line", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/line.srs", "download_detour": "direct" }, { "tag": "geosite-primevideo", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/primevideo.srs", "download_detour": "direct" }, { "tag": "geosite-geolocation-!cn", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/geolocation-!cn.srs", "download_detour": "direct" }, { "tag": "geoip-cn", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/cn.srs", "download_detour": "direct" }, { "tag": "geosite-cn", "type": "remote", "format": "binary", "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/cn.srs", "download_detour": "direct" } ] } }