diff --git a/config_template/oterea-config-mixed-template.json b/config_template/oterea-config-mixed-template.json deleted file mode 100644 index 25206fddf..000000000 --- a/config_template/oterea-config-mixed-template.json +++ /dev/null @@ -1,727 +0,0 @@ -{ - "log": - { - "disabled": false, - "level": "warn", - "timestamp": true - }, - "dns": - { - "servers": - [ - { - "tag": "proxy_dns", - "address": "https://8.8.8.8/dns-query", - "detour": "proxy" - }, - { - "tag": "local_dns", - "address": "https://223.5.5.5/dns-query", - "detour": "direct" - }, - { - "tag": "block", - "address": "rcode://success" - } - ], - "rules": - [ - { - "outbound": "any", - "server": "local_dns", - "disable_cache": true - }, - { - "rule_set": "geosite-category-ads-all", - "server": "block" - }, - { - "rule_set": "geosite-cn", - "server": "local_dns" - }, - { - "rule_set": "geosite-geolocation-!cn", - "server": "proxy_dns" - } - ], - "final": "local_dns", - "strategy": "ipv4_only" - }, - "inbounds": - [ - { - "type": "mixed", - "tag": "mixed-in", - "listen": "127.0.0.1", - "listen_port": 2080, - "sniff": true, - "set_system_proxy": true - } - ], - "route": - { - "auto_detect_interface": true, - "final": "proxy", - "rules": - [ - { - "type": "logical", - "mode": "or", - "rules": - [ - { - "port": 53 - }, - { - "protocol": "dns" - } - ], - "outbound": "dns-out" - }, - { - "rule_set": "geosite-category-ads-all", - "outbound": "block" - }, - { - "domain": - [ - "clash.razord.top", - "yacd.metacubex.one", - "yacd.haishan.me", - "d.metacubex.one" - ], - "outbound": "direct" - }, - { - "rule_set": "geosite-openai", - "outbound": "OpenAI" - }, - { - "rule_set": - [ - "geosite-youtube", - "geoip-google", - "geosite-google", - "geosite-github" - ], - "outbound": "proxy" - }, - { - "rule_set": - [ - "geoip-telegram", - "geosite-telegram" - ], - "outbound": "proxy" - }, - { - "rule_set": - [ - "geoip-twitter", - "geosite-twitter" - ], - "outbound": "proxy" - }, - { - "rule_set": - [ - "geoip-facebook", - "geosite-facebook" - ], - "outbound": "proxy" - }, - { - "rule_set": - [ - "geoip-bilibili", - "geosite-bilibili" - ], - "outbound": "direct" - }, - { - "rule_set": "geosite-tiktok", - "outbound": "proxy" - }, - { - "rule_set": - [ - "geoip-netflix", - "geosite-netflix" - ], - "outbound": "Netflix" - }, - { - "rule_set": - [ - "geoip-apple", - "geosite-apple", - "geosite-amazon" - ], - "outbound": "proxy" - }, - { - "rule_set": "geosite-microsoft", - "outbound": "proxy" - }, - { - "rule_set": - [ - "geosite-hbo", - "geosite-primevideo" - ], - "outbound": "proxy" - }, - { - "rule_set": "geosite-geolocation-!cn", - "outbound": "proxy" - }, - { - "rule_set": "geosite-private", - "outbound": "direct" - }, - { - "ip_is_private": true, - "outbound": "direct" - }, - { - "rule_set": - [ - "geoip-cn", - "geosite-cn" - ], - "outbound": "direct" - } - ], - "rule_set": - [ - { - "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": "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": "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": "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": "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": "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": "geoip-bilibili", - "type": "remote", - "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo-lite/geoip/bilibili.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-private", - "type": "remote", - "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/private.srs", - "download_detour": "direct" - }, - { - "tag": "geosite-openai", - "type": "remote", - "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/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": "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": "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": "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": "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": "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": "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-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-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-cn", - "type": "remote", - "format": "binary", - "url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/cn.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": "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" - } - ] - }, - "experimental": - { - "clash_api": - { - "external_controller": "127.0.0.1:9090", - "external_ui": "ui", - "external_ui_download_url": "https://github.com/MetaCubeX/Yacd-meta/archive/gh-pages.zip", - "external_ui_download_detour": "proxy", - "default_mode": "rule" - } - }, - "outbounds": - [ - { - "tag": "proxy", - "type": "selector", - "outbounds": - [ - "auto", - "Australia", - "Canada", - "French", - "German", - "HongKong", - "India", - "TaiWan", - "Japan", - "Russia", - "Singapore", - "SouthKorea", - "United Kingdom", - "America" - ] - }, - { - "tag": "auto", - "type": "urltest", - "outbounds": - [ - "{all}" - ] - }, - { - "tag": "OpenAI", - "type": "selector", - "outbounds": - [ - "Australia", - "Singapore", - "Japan", - "America" - ], - "default": "America" - }, - { - "tag": "Netflix", - "type": "urltest", - "outbounds": - [ - "Australia", - "Singapore", - "Japan" - ] - }, - { - "tag": "Australia", - "type": "urltest", - "outbounds": - [ - "{all}" - ], - "filter": - [ - { - "action": "include", - "keywords": - [ - "澳大利亚|Australia" - ] - } - ] - }, - { - "tag": "Canada", - "type": "urltest", - "outbounds": - [ - "{all}" - ], - "filter": - [ - { - "action": "include", - "keywords": - [ - "加拿大|Canada" - ] - } - ] - }, - { - "tag": "French", - "type": "urltest", - "outbounds": - [ - "{all}" - ], - "filter": - [ - { - "action": "include", - "keywords": - [ - "法国|French" - ] - } - ] - }, - { - "tag": "German", - "type": "urltest", - "outbounds": - [ - "{all}" - ], - "filter": - [ - { - "action": "include", - "keywords": - [ - "德国|German" - ] - } - ] - }, - { - "tag": "HongKong", - "type": "urltest", - "outbounds": - [ - "{all}" - ], - "filter": - [ - { - "action": "include", - "keywords": - [ - "香港|Hong Kong" - ] - } - ] - }, - { - "tag": "India", - "type": "urltest", - "outbounds": - [ - "{all}" - ], - "filter": - [ - { - "action": "include", - "keywords": - [ - "印度|India" - ] - } - ] - }, - { - "tag": "TaiWan", - "type": "urltest", - "outbounds": - [ - "{all}" - ], - "filter": - [ - { - "action": "include", - "keywords": - [ - "台湾|Taiwan" - ] - } - ] - }, - { - "tag": "Japan", - "type": "urltest", - "outbounds": - [ - "{all}" - ], - "filter": - [ - { - "action": "include", - "keywords": - [ - "日本|Japan" - ] - } - ] - }, - { - "tag": "Russia", - "type": "urltest", - "outbounds": - [ - "{all}" - ], - "filter": - [ - { - "action": "include", - "keywords": - [ - "俄罗斯|Russia" - ] - } - ] - }, - { - "tag": "Singapore", - "type": "urltest", - "outbounds": - [ - "{all}" - ], - "filter": - [ - { - "action": "include", - "keywords": - [ - "新加坡|Singapore" - ] - } - ] - }, - { - "tag": "SouthKorea", - "type": "urltest", - "outbounds": - [ - "{all}" - ], - "filter": - [ - { - "action": "include", - "keywords": - [ - "韩国|South Korea" - ] - } - ] - }, - { - "tag": "United Kingdom", - "type": "urltest", - "outbounds": - [ - "{all}" - ], - "filter": - [ - { - "action": "include", - "keywords": - [ - "英国|United Kingdom" - ] - } - ] - }, - { - "tag": "America", - "type": "urltest", - "outbounds": - [ - "{all}" - ], - "filter": - [ - { - "action": "include", - "keywords": - [ - "美国|United States" - ] - } - ] - }, - { - "type": "direct", - "tag": "direct" - }, - { - "type": "dns", - "tag": "dns-out" - }, - { - "type": "block", - "tag": "block" - } - ] -}