From 67d9c84b50b5773e7415284f496605668300d60c Mon Sep 17 00:00:00 2001 From: Oterea <148307377+Oterea@users.noreply.github.com> Date: Mon, 22 Apr 2024 22:35:44 +0800 Subject: [PATCH] Add files via upload --- config_template/config-tun-tmp-less.json | 638 +++++++++++++++++++++++ 1 file changed, 638 insertions(+) create mode 100644 config_template/config-tun-tmp-less.json diff --git a/config_template/config-tun-tmp-less.json b/config_template/config-tun-tmp-less.json new file mode 100644 index 000000000..40c21d453 --- /dev/null +++ b/config_template/config-tun-tmp-less.json @@ -0,0 +1,638 @@ +{ + "log": + { + "disabled": false, + "level": "info", + "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": "tun", + "inet4_address": "172.19.0.1/30", + "mtu": 9000, + "auto_route": true, + "strict_route": false, + "sniff": true, + "endpoint_independent_nat": false, + "stack": "system", + "platform": + { + "http_proxy": + { + "enabled": true, + "server": "127.0.0.1", + "server_port": 2080 + } + } + }, + { + "type": "mixed", + "listen": "127.0.0.1", + "listen_port": 2080, + "sniff": true, + "users": + [] + } + ], + "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", + "HongKong", + "TaiWan", + "Japan", + "Singapore", + "SouthKorea", + "America" + ] + }, + { + "tag": "auto", + "type": "urltest", + "outbounds": + [ + "Australia", + "HongKong", + "TaiWan", + "Japan", + "Singapore", + "SouthKorea", + "America" + ] + }, + { + "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": "HongKong", + "type": "urltest", + "outbounds": + [ + "{all}" + ], + "filter": + [ + { + "action": "include", + "keywords": + [ + "香港|Hong Kong" + ] + } + ] + }, + { + "tag": "TaiWan", + "type": "urltest", + "outbounds": + [ + "{all}" + ], + "filter": + [ + { + "action": "include", + "keywords": + [ + "台湾|Taiwan" + ] + } + ] + }, + { + "tag": "Japan", + "type": "urltest", + "outbounds": + [ + "{all}" + ], + "filter": + [ + { + "action": "include", + "keywords": + [ + "日本|Japan" + ] + } + ] + }, + { + "tag": "Singapore", + "type": "urltest", + "outbounds": + [ + "{all}" + ], + "filter": + [ + { + "action": "include", + "keywords": + [ + "新加坡|Singapore" + ] + } + ] + }, + { + "tag": "SouthKorea", + "type": "urltest", + "outbounds": + [ + "{all}" + ], + "filter": + [ + { + "action": "include", + "keywords": + [ + "韩国|South Korea" + ] + } + ] + }, + { + "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" + } + ] +} \ No newline at end of file