From 2429a771618562b897410e29a34b93a6e0e979fc Mon Sep 17 00:00:00 2001 From: Salem <39432507+lusalem@users.noreply.github.com> Date: Sat, 14 Sep 2024 23:36:00 +0800 Subject: [PATCH] Create ss2config_tun.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ss2wiwi 订阅 https://singbox.sswiwi.com/config/https://ss2.sswiwi.com/api/v1/client/subscribe?token=e0d6d09fa4dbb8a75949b04e3e733322&file=https://raw.githubusercontent.com/lusalem/ruleset/master/config/singbox/config_tun.json --- config/singbox/ss2config_tun.json | 766 ++++++++++++++++++++++++++++++ 1 file changed, 766 insertions(+) create mode 100644 config/singbox/ss2config_tun.json diff --git a/config/singbox/ss2config_tun.json b/config/singbox/ss2config_tun.json new file mode 100644 index 0000000..68c0cae --- /dev/null +++ b/config/singbox/ss2config_tun.json @@ -0,0 +1,766 @@ +{ + "log": { + "level": "info", + "timestamp": true + }, + "experimental": { + "clash_api": { + "external_controller": "0.0.0.0:9090", + "external_ui": "ui", + "secret": "", + "external_ui_download_url": "https://mirror.ghproxy.com/https://github.com/MetaCubeX/Yacd-meta/archive/gh-pages.zip", + "external_ui_download_detour": "🎯 全球直连", + "default_mode": "rule" + } + }, + "dns": { + "servers": [ + { + "tag": "proxyDns", + "address": "tls://8.8.8.8", + "address_resolver": "localDns", + "address_strategy": "ipv4_only", + "detour": "🚀 节点选择" + }, + { + "tag": "localDns", + "address": "223.5.5.5", + "detour": "🎯 全球直连" + }, + { + "tag": "block", + "address": "rcode://success" + } + ], + "rules": [ + { + "outbound": "any", + "server": "localDns", + "disable_cache": true + }, + { + "rule_set": "geosite-cn", + "server": "localDns" + }, + { + "clash_mode": "direct", + "server": "localDns" + }, + { + "clash_mode": "global", + "server": "proxyDns" + }, + { + "rule_set": "geosite-geolocation-!cn", + "server": "proxyDns" + } + ], + "final": "localDns", + "strategy": "ipv4_only" + }, + "inbounds": [ + { + "type": "tun", + "inet4_address": "172.19.0.1/30", + "mtu": 9000, + "auto_route": true, + "strict_route": true, + "sniff": true, + "endpoint_independent_nat": false, + "stack": "system", + "platform": { + "http_proxy": { + "enabled": true, + "server": "0.0.0.0", + "server_port": 2080 + } + } + }, + { + "type": "mixed", + "listen": "0.0.0.0", + "listen_port": 2080, + "sniff": true, + "users": [] + } + ], + "outbounds": [ + { + "tag": "🚀 节点选择", + "type": "selector", + "outbounds": [ + "🔯 香港自动", + "🇭🇰 香港节点", + "🇯🇵 日本节点", + "🇺🇲 美国节点", + "🐸 手动切换", + "♻️ 自动选择", + "🎯 全球直连" + ] + }, + { + "tag": "📹 YouTube", + "type": "selector", + "outbounds": [ + "🚀 节点选择", + "♻️ 自动选择", + "🔯 香港自动", + "🇭🇰 香港节点", + "🇯🇵 日本节点", + "🇺🇲 美国节点", + "🐸 手动切换" + ] + }, + { + "tag": "🤖 OpenAI", + "type": "selector", + "outbounds": [ + "🚀 节点选择", + "♻️ 自动选择", + "🔯 香港自动", + "🇭🇰 香港节点", + "🇯🇵 日本节点", + "🇺🇲 美国节点", + "🐸 手动切换" + ] + }, + { + "tag": "🍀 Google", + "type": "selector", + "outbounds": [ + "🚀 节点选择", + "♻️ 自动选择", + "🔯 香港自动", + "🇭🇰 香港节点", + "🇯🇵 日本节点", + "🇺🇲 美国节点", + "🐸 手动切换" + ] + }, + { + "tag": "📲 Telegram", + "type": "selector", + "outbounds": [ + "🚀 节点选择", + "♻️ 自动选择", + "🔯 香港自动", + "🇭🇰 香港节点", + "🇯🇵 日本节点", + "🇺🇲 美国节点", + "🐸 手动切换" + ] + }, + { + "tag": "🎵 TikTok", + "type": "selector", + "outbounds": [ + "🚀 节点选择", + "♻️ 自动选择", + "🔯 香港自动", + "🇭🇰 香港节点", + "🇯🇵 日本节点", + "🇺🇲 美国节点", + "🐸 手动切换" + ] + }, + { + "tag": "🎥 Netflix", + "type": "selector", + "outbounds": [ + "🚀 节点选择", + "♻️ 自动选择", + "🔯 香港自动", + "🇭🇰 香港节点", + "🇯🇵 日本节点", + "🇺🇲 美国节点", + "🐸 手动切换" + ] + }, + { + "tag": "🪟 Microsoft", + "type": "selector", + "outbounds": [ + "🚀 节点选择", + "♻️ 自动选择", + "🔯 香港自动", + "🇭🇰 香港节点", + "🇯🇵 日本节点", + "🇺🇲 美国节点", + "🎯 全球直连" + ] + }, + { + "tag": "🍎 Apple", + "type": "selector", + "outbounds": [ + "🎯 全球直连", + "🇭🇰 香港节点", + "🇯🇵 日本节点", + "🇺🇲 美国节点" + ] + }, + { + "tag": "🐸 手动切换", + "type": "selector", + "outbounds": [ + "🇭🇰 香港02AWS😉", + "🇭🇰 香港03PRO😉", + "🇭🇰 香港08绿云😉", + "🇸🇬 新加坡01GREEN✈", + "🇸🇬 新加坡02✈", + "🇸🇬 新加坡04ARM✈", + "🇯🇵 日本03🔴", + "🇯🇵 日本08ABLENET🔴", + "🇰🇷 韩国01ARM🦐", + "🇰🇷 韩国03AMD🦐", + "🇰🇷 韩国04AMD🦐", + "🇰🇷 韩国05ARM🦐", + "🇰🇷 韩国06ARM🦐", + "🇺🇸 美国01ARM🌏", + "🇺🇸 美国02ARM🌏", + "🇺🇸 美国03ARM🌏", + "🇺🇸 美国04ARM🌏", + "🇺🇸 美国07ARM🌏", + "🇳🇬 尼日利亚🌳", + "🇭🇰 香港01SS😉" + ] + }, + { + "tag": "🇭🇰 香港节点", + "type": "selector", + "outbounds": [ + "🇭🇰 香港02AWS😉", + "🇭🇰 香港03PRO😉", + "🇭🇰 香港08绿云😉", + "🇭🇰 香港01SS😉" + ] + }, + { + "tag": "🇯🇵 日本节点", + "type": "selector", + "outbounds": [ + "🇯🇵 日本03🔴", + "🇯🇵 日本08ABLENET🔴", + "🇳🇬 尼日利亚🌳" + ] + }, + { + "tag": "🇺🇲 美国节点", + "type": "selector", + "outbounds": [ + "🇺🇸 美国01ARM🌏", + "🇺🇸 美国02ARM🌏", + "🇺🇸 美国03ARM🌏", + "🇺🇸 美国04ARM🌏", + "🇺🇸 美国07ARM🌏" + ] + }, + { + "tag": "🔯 香港自动", + "type": "urltest", + "outbounds": [ + "🇭🇰 香港02AWS😉", + "🇭🇰 香港03PRO😉", + "🇭🇰 香港08绿云😉", + "🇭🇰 香港01SS😉" + ], + "url": "http://www.gstatic.com/generate_204", + "interval": "10m", + "tolerance": 50 + }, + { + "tag": "♻️ 自动选择", + "type": "urltest", + "outbounds": [ + "🇭🇰 香港02AWS😉", + "🇭🇰 香港03PRO😉", + "🇭🇰 香港08绿云😉", + "🇸🇬 新加坡01GREEN✈", + "🇸🇬 新加坡02✈", + "🇸🇬 新加坡04ARM✈", + "🇯🇵 日本03🔴", + "🇯🇵 日本08ABLENET🔴", + "🇰🇷 韩国01ARM🦐", + "🇰🇷 韩国03AMD🦐", + "🇰🇷 韩国04AMD🦐", + "🇰🇷 韩国05ARM🦐", + "🇰🇷 韩国06ARM🦐", + "🇺🇸 美国01ARM🌏", + "🇺🇸 美国02ARM🌏", + "🇺🇸 美国03ARM🌏", + "🇺🇸 美国04ARM🌏", + "🇺🇸 美国07ARM🌏", + "🇳🇬 尼日利亚🌳", + "🇭🇰 香港01SS😉" + ], + "url": "http://www.gstatic.com/generate_204", + "interval": "10m", + "tolerance": 50 + }, + { + "tag": "GLOBAL", + "type": "selector", + "outbounds": [ + "♻️ 自动选择", + "🎯 全球直连", + "🇭🇰 香港节点", + "🇯🇵 日本节点", + "🇺🇲 美国节点", + "🐸 手动切换" + ] + }, + { + "tag": "🎯 全球直连", + "type": "direct" + }, + { + "tag": "dns-out", + "type": "dns" + }, + { + "tag": "🇭🇰 香港02AWS😉", + "type": "trojan", + "server": "hk02.ssr.ee", + "server_port": 443, + "password": "9d0a75d2-f747-4afa-b43f-d208af9e8f9a", + "tls": { + "enabled": true, + "insecure": true, + "server_name": "hk02.ssr.ee" + } + }, + { + "tag": "🇭🇰 香港03PRO😉", + "type": "trojan", + "server": "hk03.ssr.ee", + "server_port": 443, + "password": "9d0a75d2-f747-4afa-b43f-d208af9e8f9a", + "tls": { + "enabled": true, + "insecure": true, + "server_name": "hk03.ssr.ee" + } + }, + { + "tag": "🇭🇰 香港08绿云😉", + "type": "trojan", + "server": "hk08.ssr.ee", + "server_port": 443, + "password": "9d0a75d2-f747-4afa-b43f-d208af9e8f9a", + "tls": { + "enabled": true, + "insecure": true, + "server_name": "hk08.ssr.ee" + } + }, + { + "tag": "🇸🇬 新加坡01GREEN✈", + "type": "trojan", + "server": "sg01.ssr.ee", + "server_port": 443, + "password": "9d0a75d2-f747-4afa-b43f-d208af9e8f9a", + "tls": { + "enabled": true, + "insecure": true, + "server_name": "sg01.ssr.ee" + } + }, + { + "tag": "🇸🇬 新加坡02✈", + "type": "trojan", + "server": "sg02.ssr.ee", + "server_port": 443, + "password": "9d0a75d2-f747-4afa-b43f-d208af9e8f9a", + "tls": { + "enabled": true, + "insecure": true, + "server_name": "sg02.ssr.ee" + } + }, + { + "tag": "🇸🇬 新加坡04ARM✈", + "type": "trojan", + "server": "sg04.ssr.ee", + "server_port": 55561, + "password": "9d0a75d2-f747-4afa-b43f-d208af9e8f9a", + "tls": { + "enabled": true, + "insecure": true, + "server_name": "sg04.ssr.ee" + } + }, + { + "tag": "🇯🇵 日本03🔴", + "type": "trojan", + "server": "jp03.ssr.ee", + "server_port": 55561, + "password": "9d0a75d2-f747-4afa-b43f-d208af9e8f9a", + "tls": { + "enabled": true, + "insecure": true, + "server_name": "jp03.ssr.ee" + } + }, + { + "tag": "🇯🇵 日本08ABLENET🔴", + "type": "trojan", + "server": "jp08.ssr.ee", + "server_port": 55561, + "password": "9d0a75d2-f747-4afa-b43f-d208af9e8f9a", + "tls": { + "enabled": true, + "insecure": true, + "server_name": "jp08.ssr.ee" + } + }, + { + "tag": "🇰🇷 韩国01ARM🦐", + "type": "trojan", + "server": "krcc.ssr.ee", + "server_port": 55561, + "password": "9d0a75d2-f747-4afa-b43f-d208af9e8f9a", + "tls": { + "enabled": true, + "insecure": true, + "server_name": "krcc.ssr.ee" + } + }, + { + "tag": "🇰🇷 韩国03AMD🦐", + "type": "trojan", + "server": "kr03.ssr.ee", + "server_port": 443, + "password": "9d0a75d2-f747-4afa-b43f-d208af9e8f9a", + "tls": { + "enabled": true, + "insecure": true, + "server_name": "kr03.ssr.ee" + } + }, + { + "tag": "🇰🇷 韩国04AMD🦐", + "type": "trojan", + "server": "kr04.ssr.ee", + "server_port": 443, + "password": "9d0a75d2-f747-4afa-b43f-d208af9e8f9a", + "tls": { + "enabled": true, + "insecure": true, + "server_name": "kr04.ssr.ee" + } + }, + { + "tag": "🇰🇷 韩国05ARM🦐", + "type": "trojan", + "server": "kr05.ssr.ee", + "server_port": 443, + "password": "9d0a75d2-f747-4afa-b43f-d208af9e8f9a", + "tls": { + "enabled": true, + "insecure": true, + "server_name": "kr05.ssr.ee" + } + }, + { + "tag": "🇰🇷 韩国06ARM🦐", + "type": "trojan", + "server": "kr06.ssr.ee", + "server_port": 443, + "password": "9d0a75d2-f747-4afa-b43f-d208af9e8f9a", + "tls": { + "enabled": true, + "insecure": true, + "server_name": "kr06.ssr.ee" + } + }, + { + "tag": "🇺🇸 美国01ARM🌏", + "type": "trojan", + "server": "us01.ssr.ee", + "server_port": 443, + "password": "9d0a75d2-f747-4afa-b43f-d208af9e8f9a", + "tls": { + "enabled": true, + "insecure": true, + "server_name": "us01.ssr.ee" + } + }, + { + "tag": "🇺🇸 美国02ARM🌏", + "type": "trojan", + "server": "us02.ssr.ee", + "server_port": 443, + "password": "9d0a75d2-f747-4afa-b43f-d208af9e8f9a", + "tls": { + "enabled": true, + "insecure": true, + "server_name": "us02.ssr.ee" + } + }, + { + "tag": "🇺🇸 美国03ARM🌏", + "type": "trojan", + "server": "us03.ssr.ee", + "server_port": 443, + "password": "9d0a75d2-f747-4afa-b43f-d208af9e8f9a", + "tls": { + "enabled": true, + "insecure": true, + "server_name": "us03.ssr.ee" + } + }, + { + "tag": "🇺🇸 美国04ARM🌏", + "type": "trojan", + "server": "us04.ssr.ee", + "server_port": 443, + "password": "9d0a75d2-f747-4afa-b43f-d208af9e8f9a", + "tls": { + "enabled": true, + "insecure": true, + "server_name": "us04.ssr.ee" + } + }, + { + "tag": "🇺🇸 美国07ARM🌏", + "type": "trojan", + "server": "us07.ssr.ee", + "server_port": 443, + "password": "9d0a75d2-f747-4afa-b43f-d208af9e8f9a", + "tls": { + "enabled": true, + "insecure": true, + "server_name": "us07.ssr.ee" + } + }, + { + "tag": "🇳🇬 尼日利亚🌳", + "type": "trojan", + "server": "ng01.ssr.ee", + "server_port": 443, + "password": "9d0a75d2-f747-4afa-b43f-d208af9e8f9a", + "tls": { + "enabled": true, + "insecure": true, + "server_name": "ng01.ssr.ee" + } + }, + { + "tag": "🇭🇰 香港01SS😉", + "type": "shadowsocks", + "server": "hk01.ssr.ee", + "server_port": 55555, + "method": "aes-256-gcm", + "password": "9d0a75d2-f747-4afa-b43f-d208af9e8f9a" + } + ], + "route": { + "auto_detect_interface": true, + "final": "GLOBAL", + "rules": [ + { + "type": "logical", + "mode": "or", + "rules": [ + { + "port": 53 + }, + { + "protocol": "dns" + } + ], + "outbound": "dns-out" + }, + { + "clash_mode": "direct", + "outbound": "🎯 全球直连" + }, + { + "clash_mode": "global", + "outbound": "GLOBAL" + }, + { + "domain": [ + "clash.razord.top", + "yacd.metacubex.one", + "yacd.haishan.me", + "d.metacubex.one" + ], + "outbound": "🎯 全球直连" + }, + { + "ip_is_private": true, + "outbound": "🎯 全球直连" + }, + { + "rule_set": "geosite-openai", + "outbound": "🤖 OpenAI" + }, + { + "rule_set": "geosite-youtube", + "outbound": "📹 YouTube" + }, + { + "rule_set": [ + "geoip-google", + "geosite-google" + ], + "outbound": "🍀 Google" + }, + { + "rule_set": [ + "geoip-telegram", + "geosite-telegram" + ], + "outbound": "📲 Telegram" + }, + { + "rule_set": "geosite-tiktok", + "outbound": "🎵 TikTok" + }, + { + "rule_set": [ + "geoip-netflix", + "geosite-netflix" + ], + "outbound": "🎥 Netflix" + }, + { + "rule_set": [ + "geoip-apple", + "geosite-apple" + ], + "outbound": "🍎 Apple" + }, + { + "rule_set": "geosite-microsoft", + "outbound": "🪟 Microsoft" + }, + { + "rule_set": "geosite-geolocation-!cn", + "outbound": "🚀 节点选择" + }, + { + "rule_set": [ + "geoip-cn", + "geosite-cn" + ], + "outbound": "🎯 全球直连" + } + ], + "rule_set": [ + { + "tag": "geosite-openai", + "type": "remote", + "format": "binary", + "url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/Toperlock/sing-box-geosite/main/rule/OpenAI.srs", + "download_detour": "🎯 全球直连" + }, + { + "tag": "geosite-youtube", + "type": "remote", + "format": "binary", + "url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/youtube.srs", + "download_detour": "🎯 全球直连" + }, + { + "tag": "geoip-google", + "type": "remote", + "format": "binary", + "url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/google.srs", + "download_detour": "🎯 全球直连" + }, + { + "tag": "geosite-google", + "type": "remote", + "format": "binary", + "url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/google.srs", + "download_detour": "🎯 全球直连" + }, + { + "tag": "geosite-github", + "type": "remote", + "format": "binary", + "url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/github.srs", + "download_detour": "🎯 全球直连" + }, + { + "tag": "geoip-telegram", + "type": "remote", + "format": "binary", + "url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/telegram.srs", + "download_detour": "🎯 全球直连" + }, + { + "tag": "geosite-telegram", + "type": "remote", + "format": "binary", + "url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/telegram.srs", + "download_detour": "🎯 全球直连" + }, + { + "tag": "geosite-tiktok", + "type": "remote", + "format": "binary", + "url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/tiktok.srs", + "download_detour": "🎯 全球直连" + }, + { + "tag": "geoip-netflix", + "type": "remote", + "format": "binary", + "url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/netflix.srs", + "download_detour": "🎯 全球直连" + }, + { + "tag": "geosite-netflix", + "type": "remote", + "format": "binary", + "url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/netflix.srs", + "download_detour": "🎯 全球直连" + }, + { + "tag": "geoip-apple", + "type": "remote", + "format": "binary", + "url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo-lite/geoip/apple.srs", + "download_detour": "🎯 全球直连" + }, + { + "tag": "geosite-apple", + "type": "remote", + "format": "binary", + "url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/apple.srs", + "download_detour": "🎯 全球直连" + }, + { + "tag": "geosite-microsoft", + "type": "remote", + "format": "binary", + "url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/microsoft.srs", + "download_detour": "🎯 全球直连" + }, + { + "tag": "geosite-geolocation-!cn", + "type": "remote", + "format": "binary", + "url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/geolocation-!cn.srs", + "download_detour": "🎯 全球直连" + }, + { + "tag": "geoip-cn", + "type": "remote", + "format": "binary", + "url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/cn.srs", + "download_detour": "🎯 全球直连" + }, + { + "tag": "geosite-cn", + "type": "remote", + "format": "binary", + "url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/cn.srs", + "download_detour": "🎯 全球直连" + } + ] + } +}