{ "log": { "disabled": false, "level": "info", "timestamp": true }, "experimental": { "clash_api": { "external_controller": "127.0.0.1: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": { "strategy": "ipv4_only", "final": "google", "servers": [ {"type": "https", "tag": "aliyun", "server": "223.5.5.5"}, {"type": "tls", "tag": "google", "server": "8.8.8.8", "detour": "๐Ÿ“ก ่Š‚็‚น้€‰ๆ‹ฉ"} ], "rules": [ {"clash_mode": "direct", "action": "route", "server": "aliyun"}, {"clash_mode": "global", "action": "route", "server": "google"}, {"rule_set": "Liqiye_Block", "action": "reject"}, {"rule_set": "geosite-geolocation-cn", "action": "route", "server": "aliyun"}, {"type": "logical", "mode": "and", "rules": [{"rule_set": "geosite-geolocation-!cn", "invert": true}, {"rule_set": "geoip-cn"}], "action": "route", "server": "google", "client_subnet": "114.114.114.114/24"} ] }, "inbounds": [ { "type": "mixed", "tag": "mixed-in", "listen": "0.0.0.0", "listen_port": 8080, "users": [ { "username": "sfm", "password": "password" } ] }, { "type": "tun", "tag": "tun-in", "address": ["172.18.0.1/30"], "auto_route": true, "strict_route": true } ], "outbounds": [ {"type": "direct", "tag": "direct"}, {"type": "selector", "tag": "๐Ÿ“ก ่Š‚็‚น้€‰ๆ‹ฉ", "outbounds": ["๐Ÿ‘† ๆ‰‹ๅŠจ้€‰ๆ‹ฉ", "๐Ÿ‡ญ๐Ÿ‡ฐ ้ฆ™ๆธฏ่Š‚็‚น", "๐Ÿ‡ฏ๐Ÿ‡ต ๆ—ฅๆœฌ่Š‚็‚น", "๐Ÿ‡ธ๐Ÿ‡ฌ ็‹ฎๅŸŽ่Š‚็‚น", "๐Ÿ‡บ๐Ÿ‡ธ ็พŽๅ›ฝ่Š‚็‚น"]}, {"type": "selector", "tag": "๐Ÿ‘† ๆ‰‹ๅŠจ้€‰ๆ‹ฉ", "outbounds": ["{ๆœบๅœบ1}"]}, {"type": "selector", "tag": "๐Ÿ‰ ๅทดๅ“ˆๅง†็‰น", "outbounds": ["๐Ÿ‡ญ๐Ÿ‡ฐ ้ฆ™ๆธฏ่Š‚็‚น", "๐Ÿ“ก ่Š‚็‚น้€‰ๆ‹ฉ"]}, {"type": "selector", "tag": "๐ŸŽต ๅฃฐ็”ฐ้Ÿณไน", "outbounds": ["๐Ÿ“ก ่Š‚็‚น้€‰ๆ‹ฉ", "๐Ÿ‡ญ๐Ÿ‡ฐ ้ฆ™ๆธฏ่Š‚็‚น", "๐Ÿ‡ฏ๐Ÿ‡ต ๆ—ฅๆœฌ่Š‚็‚น", "๐Ÿ‡ธ๐Ÿ‡ฌ ็‹ฎๅŸŽ่Š‚็‚น", "๐Ÿ‡บ๐Ÿ‡ธ ็พŽๅ›ฝ่Š‚็‚น"]}, {"type": "selector", "tag": "๐Ÿค– ไบบๅทฅๆ™บ่ƒฝ", "outbounds": ["๐Ÿ“ก ่Š‚็‚น้€‰ๆ‹ฉ", "{ๆœบๅœบ1}"]}, {"type": "selector", "tag": "๐ŸŽฎ ๆธธๆˆๅนณๅฐ", "outbounds": ["direct", "๐Ÿ“ก ่Š‚็‚น้€‰ๆ‹ฉ"]}, {"type": "selector", "tag": "๐ŸŒ ๅ…จ็ƒๅŠ ้€Ÿ", "outbounds": ["๐Ÿ“ก ่Š‚็‚น้€‰ๆ‹ฉ", "๐Ÿ‡ญ๐Ÿ‡ฐ ้ฆ™ๆธฏ่Š‚็‚น", "๐Ÿ‡ฏ๐Ÿ‡ต ๆ—ฅๆœฌ่Š‚็‚น", "๐Ÿ‡ธ๐Ÿ‡ฌ ็‹ฎๅŸŽ่Š‚็‚น", "๐Ÿ‡บ๐Ÿ‡ธ ็พŽๅ›ฝ่Š‚็‚น"]}, {"type": "selector", "tag": "๐Ÿ‘ค ่‹นๆžœ่ดฆๆˆท", "outbounds": ["direct", "๐Ÿ“ก ่Š‚็‚น้€‰ๆ‹ฉ"]}, {"type": "selector", "tag": "๐Ÿ›’ ่‹นๆžœๅ•†ๅบ—", "outbounds": ["direct", "๐Ÿ“ก ่Š‚็‚น้€‰ๆ‹ฉ"]}, {"type": "selector", "tag": "๐Ÿ› ๏ธ ่‹นๆžœๆต‹่ฏ•", "outbounds": ["direct", "๐Ÿ“ก ่Š‚็‚น้€‰ๆ‹ฉ"]}, {"type": "selector", "tag": "๐Ÿ”€ ๅ…œๅบ•ๅˆ†ๆต", "outbounds": ["๐Ÿ“ก ่Š‚็‚น้€‰ๆ‹ฉ", "๐Ÿ‡ญ๐Ÿ‡ฐ ้ฆ™ๆธฏ่Š‚็‚น", "๐Ÿ‡ฏ๐Ÿ‡ต ๆ—ฅๆœฌ่Š‚็‚น", "๐Ÿ‡ธ๐Ÿ‡ฌ ็‹ฎๅŸŽ่Š‚็‚น", "๐Ÿ‡บ๐Ÿ‡ธ ็พŽๅ›ฝ่Š‚็‚น", "direct"]}, {"type": "selector", "tag": "๐Ÿ‡ญ๐Ÿ‡ฐ ้ฆ™ๆธฏ่Š‚็‚น", "outbounds": ["{ๆœบๅœบ1}"], "filter": [{"action": "include","keywords": ["๐Ÿ‡ญ๐Ÿ‡ฐ|้ฆ™ๆธฏ|HK|HKG|Hong"]}]}, {"type": "selector", "tag": "๐Ÿ‡ฏ๐Ÿ‡ต ๆ—ฅๆœฌ่Š‚็‚น", "outbounds": ["{ๆœบๅœบ1}"], "filter": [{"action": "include","keywords": ["๐Ÿ‡ฏ๐Ÿ‡ต|ๆ—ฅๆœฌ|ๅทๆ—ฅ|ไธœไบฌ|ๅคง้˜ช|ๆณ‰ๆ—ฅ|ๅŸผ็މ|JP|JPN|Japan"]}]}, {"type": "selector", "tag": "๐Ÿ‡ธ๐Ÿ‡ฌ ็‹ฎๅŸŽ่Š‚็‚น", "outbounds": ["{ๆœบๅœบ1}"], "filter": [{"action": "include","keywords": ["๐Ÿ‡ธ๐Ÿ‡ฌ|ๆ–ฐๅŠ ๅก|็‹ฎ|SG|SGP|Singapore"]}]}, {"type": "selector", "tag": "๐Ÿ‡บ๐Ÿ‡ธ ็พŽๅ›ฝ่Š‚็‚น", "outbounds": ["{ๆœบๅœบ1}"], "filter": [{"action": "include","keywords": ["๐Ÿ‡บ๐Ÿ‡ธ|็พŽๅ›ฝ|ๆณข็‰นๅ…ฐ|่พพๆ‹‰ๆ–ฏ|ไฟ„ๅ‹’ๅ†ˆ|ๅ‡คๅ‡ฐๅŸŽ|่ดนๅˆฉ่’™|็ก…่ฐท|ๆ‹‰ๆ–ฏ็ปดๅŠ ๆ–ฏ|ๆด›ๆ‰็Ÿถ|ๅœฃไฝ•ๅกž|ๅœฃๅ…‹ๆ‹‰ๆ‹‰|่ฅฟ้›…ๅ›พ|่ŠๅŠ ๅ“ฅ|US|USA|United States"]}]} ], "route": { "final": "๐Ÿ”€ ๅ…œๅบ•ๅˆ†ๆต", "default_domain_resolver": {"server": "aliyun"}, "auto_detect_interface": true, "rules": [ {"action": "sniff"}, {"type": "logical", "mode": "or", "rules": [{"port": 53}, {"protocol": "dns"}], "action": "hijack-dns"}, {"clash_mode": "direct", "action": "route", "outbound": "direct"}, {"clash_mode": "global", "action": "route", "outbound": "๐Ÿ“ก ่Š‚็‚น้€‰ๆ‹ฉ"}, {"rule_set": "Liqiye_Block", "action": "reject"}, {"rule_set": ["Liqiye_Direct", "Lan", "Direct", "ChinaDownloadCDN", "iCloudChina", "ApplePushNotificationService", "AppleSoftwareUpdates", "ESET_China", "geoip-cn"], "action": "route", "outbound": "direct"}, {"rule_set": ["Liqiye_GFW", "Proxy", "InternationalDownloadCDN", "Steam"], "action": "route", "outbound": "๐ŸŒ ๅ…จ็ƒๅŠ ้€Ÿ"}, {"rule_set": "Bahamut", "action": "route", "outbound": "๐Ÿ‰ ๅทดๅ“ˆๅง†็‰น"}, {"rule_set": "Spotify", "action": "route", "outbound": "๐ŸŽต ๅฃฐ็”ฐ้Ÿณไน"}, {"rule_set": "AI", "action": "route", "outbound": "๐Ÿค– ไบบๅทฅๆ™บ่ƒฝ"}, {"rule_set": "Game", "action": "route", "outbound": "๐ŸŽฎ ๆธธๆˆๅนณๅฐ"}, {"rule_set": "AppleID", "action": "route", "outbound": "๐Ÿ‘ค ่‹นๆžœ่ดฆๆˆท"}, {"rule_set": "AppStore", "action": "route", "outbound": "๐Ÿ›’ ่‹นๆžœๅ•†ๅบ—"}, {"rule_set": "TestFlight", "action": "route", "outbound": "๐Ÿ› ๏ธ ่‹นๆžœๆต‹่ฏ•"} ], "rule_set": [ {"type": "remote", "tag": "Liqiye_Direct", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/FaithAluten/Profile/refs/heads/main/sing-box/Rule/Liqiye_Direct.srs", "download_detour": "direct"}, {"type": "remote", "tag": "Liqiye_GFW", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/FaithAluten/Profile/refs/heads/main/sing-box/Rule/Liqiye_GFW.srs", "download_detour": "direct"}, {"type": "remote", "tag": "Liqiye_Block", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/FaithAluten/Profile/refs/heads/main/sing-box/Rule/Liqiye_Block.srs", "download_detour": "direct"}, {"type": "remote", "tag": "Lan", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/FaithAluten/Profile/refs/heads/main/sing-box/Rule/LAN_SPLITTER.srs", "download_detour": "direct"}, {"type": "remote", "tag": "Direct", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/FaithAluten/Profile/refs/heads/main/sing-box/Rule/Direct.srs", "download_detour": "direct"}, {"type": "remote", "tag": "Proxy", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/FaithAluten/Profile/refs/heads/main/sing-box/Rule/Proxy.srs", "download_detour": "direct"}, {"type": "remote", "tag": "ChinaDownloadCDN", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/FaithAluten/Profile/refs/heads/main/sing-box/Rule/ChinaDownloadCDN.srs", "download_detour": "direct"}, {"type": "remote", "tag": "InternationalDownloadCDN", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/FaithAluten/Profile/refs/heads/main/sing-box/Rule/InternationalDownloadCDN.srs", "download_detour": "direct"}, {"type": "remote", "tag": "Bahamut", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/FaithAluten/Profile/refs/heads/main/sing-box/Rule/Bahamut.srs", "download_detour": "direct"}, {"type": "remote", "tag": "Spotify", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/FaithAluten/Profile/refs/heads/main/sing-box/Rule/Spotify.srs", "download_detour": "direct"}, {"type": "remote", "tag": "AI", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/FaithAluten/Profile/refs/heads/main/sing-box/Rule/AI.srs", "download_detour": "direct"}, {"type": "remote", "tag": "Steam", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/FaithAluten/Profile/refs/heads/main/sing-box/Rule/Steam.srs", "download_detour": "direct"}, {"type": "remote", "tag": "Game", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/FaithAluten/Profile/refs/heads/main/sing-box/Rule/Game.srs", "download_detour": "direct"}, {"type": "remote", "tag": "iCloudChina", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/FaithAluten/Profile/refs/heads/main/sing-box/Rule/iCloudChina.srs", "download_detour": "direct"}, {"type": "remote", "tag": "ApplePushNotificationService", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/FaithAluten/Profile/refs/heads/main/sing-box/Rule/ApplePushNotificationService.srs", "download_detour": "direct"}, {"type": "remote", "tag": "AppleSoftwareUpdates", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/FaithAluten/Profile/refs/heads/main/sing-box/Rule/AppleSoftwareUpdates.srs", "download_detour": "direct"}, {"type": "remote", "tag": "AppleID", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/FaithAluten/Profile/refs/heads/main/sing-box/Rule/AppleAccount.srs", "download_detour": "direct"}, {"type": "remote", "tag": "AppStore", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/FaithAluten/Profile/refs/heads/main/sing-box/Rule/AppStore.srs", "download_detour": "direct"}, {"type": "remote", "tag": "TestFlight", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/FaithAluten/Profile/refs/heads/main/sing-box/Rule/TestFlight.srs", "download_detour": "direct"}, {"type": "remote", "tag": "ESET_China", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/FaithAluten/Profile/refs/heads/main/sing-box/Rule/ESET_China.srs", "download_detour": "direct"}, {"type": "remote", "tag": "geoip-cn", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs", "download_detour": "direct"}, {"type": "remote", "tag": "geosite-geolocation-cn", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs", "download_detour": "direct"}, {"type": "remote", "tag": "geosite-geolocation-!cn", "format": "binary", "url": "https://gh-proxy.com/https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs", "download_detour": "direct"} ] } }