From e8cc35ffd3b06a599a12315e4ef25b216c7b4c74 Mon Sep 17 00:00:00 2001 From: Oterea <148307377+Oterea@users.noreply.github.com> Date: Tue, 23 Apr 2024 17:06:15 +0800 Subject: [PATCH] Add files via upload --- config_template/tun-less-tmp.json | 733 ++++++++++++++++++++++++++++++ 1 file changed, 733 insertions(+) create mode 100644 config_template/tun-less-tmp.json diff --git a/config_template/tun-less-tmp.json b/config_template/tun-less-tmp.json new file mode 100644 index 000000000..fae79c1ce --- /dev/null +++ b/config_template/tun-less-tmp.json @@ -0,0 +1,733 @@ +{ + "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" + }, + { + "clash_mode": "direct", + "server": "local_dns" + }, + { + "clash_mode": "global", + "server": "proxy_dns" + } + ], + "final": "proxy_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" + }, + { + "clash_mode": "direct", + "outbound": "direct" + }, + { + "clash_mode": "global", + "outbound": "proxy" + }, + { + "protocol": "quic", + "outbound": "block" + }, + { + "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": + [ + "geosite-cn" + ], + "outbound": "direct" + }, + { + "rule_set": + [ + "geoip-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://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-private", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-private.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-openai", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-openai.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-youtube", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-youtube.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-google", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-google.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-github", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-github.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-telegram", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-telegram.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-twitter", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-twitter.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-facebook", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-facebook.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-bilibili", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-bilibili.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-bahamut", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-bahamut.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-spotify", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-spotify.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-tiktok", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-tiktok.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-netflix", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-netflix.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-disney", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-disney.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-apple", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-apple.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-amazon", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-amazon.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-microsoft", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-microsoft.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-category-games", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-category-games.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-hbo", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-hbo.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-primevideo", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-primevideo.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-cn", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-cn.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-geolocation-!cn", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs", + "download_detour": "proxy" + }, + { + "tag": "geosite-category-ads-all", + "type": "remote", + "format": "binary", + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-category-ads-all.srs", + "download_detour": "proxy" + } + ] + }, + "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", + "Canada", + "French", + "German", + "HongKong", + "TaiWan", + "Japan", + "Russia", + "Singapore", + "SouthKorea", + "United Kingdom", + "America" + ] + }, + { + "tag": "auto", + "type": "urltest", + "outbounds": + [ + "{all}" + ] + }, + { + "tag": "OpenAI", + "type": "selector", + "outbounds": + [ + "Singapore", + "Japan", + "America" + ], + "default": "America" + }, + { + "tag": "Netflix", + "type": "urltest", + "outbounds": + [ + "Singapore", + "Japan", + "HongKong" + ] + }, + { + "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": "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" + } + ] +} \ No newline at end of file