-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathr-tun.json
More file actions
182 lines (179 loc) · 13.7 KB
/
r-tun.json
File metadata and controls
182 lines (179 loc) · 13.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
{
"log": {
"disabled": false,
"level": "info",
"timestamp": true
},
"experimental": {
"clash_api": {
"external_controller": "0.0.0.0:9095",
"external_ui": "/etc/sing-box/ui",
"secret": "",
"external_ui_download_url": "https://www.ghproxy.cn/https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip",
"external_ui_download_detour": "🎯 全球直连",
"default_mode": "rule"
},
"cache_file": {
"enabled": true,
"path": "/etc/sing-box/r-cache.db",
"store_fakeip": false
}
},
"dns": {
"servers": [
{
"tag": "home-dns",
"address": "local"
},
{
"tag": "dns_ali",
"address": "223.5.5.5",
"address_strategy": "prefer_ipv4",
"strategy": "prefer_ipv4",
"detour": "🎯 全球直连"
},
{
"tag": "dns_direct",
"address": "https://dns.alidns.com/dns-query",
"address_strategy": "prefer_ipv4",
"strategy": "prefer_ipv4",
"address_resolver": "dns_ali",
"detour": "🎯 全球直连"
},
{
"tag": "dns_proxy",
"address": "https://dns.google/dns-query",
"address_strategy": "ipv4_only",
"strategy": "ipv4_only",
"address_resolver": "dns_ali",
"detour": "tw台湾自动"
}
],
"rules": [
{
"domain_suffix": ".yourdomain.com",
"server": "home-dns"
},
{
"outbound": "any",
"server": "dns_direct",
"disable_cache": true
},
{
"clash_mode": "direct",
"server": "dns_direct"
},
{
"clash_mode": "global",
"server": "dns_proxy"
},
{
"rule_set": "geosite_cn",
"action": "route",
"server": "dns_direct"
},
{
"rule_set": "geosite-geolocation-!cn",
"server": "dns_proxy"
}
],
"final": "dns_proxy",
"strategy": "ipv4_only"
},
"inbounds": [
{
"type": "tun",
"tag": "tun-in",
"address": "172.19.0.1/30",
"mtu": 9000,
"auto_route": true,
"auto_redirect": true,
"strict_route": true,
"stack": "system",
"platform": {
"http_proxy": {
"enabled": true,
"server": "0.0.0.0",
"server_port": 2080
}
}
},
{
"type": "mixed",
"tag": "mixed-in",
"listen": "0.0.0.0",
"listen_port": 2080,
"sniff": true,
"users": []
}
],
"outbounds": [
{ "tag": "🚀 节点选择", "type": "selector", "outbounds": ["tw台湾自动", "tw台湾节点","sg新加坡自动", "sg新加坡节点","jp日本自动","jp日本节点","hk香港自动","hk香港节点", "us美国自动","us美国节点", "🐸 手动切换", "♻️ 自动选择", "🎯 全球直连"] },
{ "tag": "🤖 OpenAI", "type": "selector", "outbounds": ["us美国自动","us美国节点", "tw台湾自动", "tw台湾节点","sg新加坡自动", "sg新加坡节点","jp日本自动","jp日本节点","hk香港自动","hk香港节点", "🚀 节点选择", "♻️ 自动选择","🐸 手动切换"] },
{ "tag": "📹 YouTube", "type": "selector", "outbounds": ["tw台湾自动", "tw台湾节点","sg新加坡自动", "sg新加坡节点","jp日本自动","jp日本节点","hk香港自动","hk香港节点", "us美国自动","us美国节点", "🚀 节点选择", "♻️ 自动选择","🐸 手动切换"] },
{ "tag": "🍀 Google", "type": "selector", "outbounds": ["tw台湾自动", "tw台湾节点","sg新加坡自动", "sg新加坡节点","jp日本自动","jp日本节点","hk香港自动","hk香港节点", "us美国自动","us美国节点", "🚀 节点选择", "♻️ 自动选择","🐸 手动切换"] },
{ "tag": "👨💻 Github", "type": "selector", "outbounds": ["tw台湾自动", "tw台湾节点","sg新加坡自动", "sg新加坡节点","jp日本自动","jp日本节点","hk香港自动","hk香港节点", "us美国自动","us美国节点", "🚀 节点选择", "♻️ 自动选择","🐸 手动切换"] },
{ "tag": "📲 Telegram", "type": "selector", "outbounds": ["tw台湾自动", "tw台湾节点","sg新加坡自动", "sg新加坡节点","jp日本自动","jp日本节点","hk香港自动","hk香港节点", "us美国自动","us美国节点", "🚀 节点选择", "♻️ 自动选择","🐸 手动切换"] },
{ "tag": "🐬 OneDrive", "type": "selector", "outbounds": ["🎯 全球直连", "tw台湾自动", "tw台湾节点","sg新加坡自动", "sg新加坡节点","jp日本自动","jp日本节点","hk香港自动","hk香港节点", "us美国自动","us美国节点", "🚀 节点选择", "♻️ 自动选择","🐸 手动切换"] },
{ "tag": "🪟 Microsoft", "type": "selector", "outbounds": ["tw台湾自动", "tw台湾节点","sg新加坡自动", "sg新加坡节点","jp日本自动","jp日本节点","hk香港自动","hk香港节点", "us美国自动","us美国节点", "🚀 节点选择", "♻️ 自动选择", "🎯 全球直连", "🐸 手动切换"] },
{ "tag": "🍏 Apple", "type": "selector", "outbounds": ["🎯 全球直连", "tw台湾自动", "tw台湾节点","sg新加坡自动", "sg新加坡节点","jp日本自动","jp日本节点","hk香港自动","hk香港节点", "us美国自动","us美国节点", "🚀 节点选择", "♻️ 自动选择","🐸 手动切换"] },
{ "tag": "🐠 漏网之鱼", "type": "selector", "outbounds": ["🚀 节点选择", "♻️ 自动选择", "tw台湾自动", "tw台湾节点","sg新加坡自动", "sg新加坡节点","jp日本自动","jp日本节点","hk香港自动","hk香港节点", "us美国自动","us美国节点","🐸 手动切换", "🎯 全球直连"] },
{ "tag": "🐸 手动切换", "type": "selector", "outbounds": ["{all}"], "filter": [{ "action": "exclude", "keywords": ["网站|官网|套餐|地址|xpire|剩余|过期|到期|时间|刷新|有效"] }] },
{ "tag": "tw台湾节点", "type": "selector", "outbounds": ["{all}"], "filter": [{ "action": "include", "keywords": ["🇹🇼|TW|tw|台湾|Taiwan"] }] },
{ "tag": "sg新加坡节点", "type": "selector", "outbounds": ["{all}"], "filter": [{ "action": "include", "keywords": ["🇸🇬|SG|sg|新加坡|Singapore"] }] },
{ "tag": "jp日本节点", "type": "selector", "outbounds": ["{all}"], "filter": [{ "action": "include", "keywords": ["🇯🇵|JP|jp|日本|Japan"] }] },
{ "tag": "hk香港节点", "type": "selector", "outbounds": ["{all}"], "filter": [{ "action": "include", "keywords": ["🇭🇰|HK|hk|香港|港|HongKong"] }] },
{ "tag": "us美国节点", "type": "selector", "outbounds": ["{all}"], "filter": [{ "action": "include", "keywords": ["🇺🇸|US|us|美国|美|United States"] }] },
{ "tag": "tw台湾自动", "type": "urltest", "outbounds": ["{all}"], "filter": [{ "action": "include", "keywords": ["🇹🇼|TW|tw|台湾|Taiwan"] }], "url": "http://www.gstatic.com/generate_204", "interval": "10m", "tolerance": 50 },
{ "tag": "sg新加坡自动", "type": "urltest", "outbounds": ["{all}"], "filter": [{ "action": "include", "keywords": ["🇸🇬|SG|sg|新加坡|Singapore"] }], "url": "http://www.gstatic.com/generate_204", "interval": "10m", "tolerance": 50 },
{ "tag": "jp日本自动", "type": "urltest", "outbounds": ["{all}"], "filter": [{ "action": "include", "keywords": ["🇯🇵|JP|jp|日本|Japan"] }], "url": "http://www.gstatic.com/generate_204", "interval": "10m", "tolerance": 50 },
{ "tag": "hk香港自动", "type": "urltest", "outbounds": ["{all}"], "filter": [{ "action": "include", "keywords": ["🇭🇰|HK|hk|香港|港|HongKong"] }], "url": "http://www.gstatic.com/generate_204", "interval": "10m", "tolerance": 50 },
{ "tag": "us美国自动", "type": "urltest", "outbounds": ["{all}"], "filter": [{ "action": "include", "keywords": ["🇺🇸|US|us|美国|美|United States"] }], "url": "http://www.gstatic.com/generate_204", "interval": "10m", "tolerance": 50 },
{ "tag": "♻️ 自动选择", "type": "urltest", "outbounds": ["{all}"], "filter": [{ "action": "exclude", "keywords": ["网站|官网|套餐|地址|xpire|剩余|过期|到期|时间|刷新|有效"] }], "url": "http://www.gstatic.com/generate_204", "interval": "10m", "tolerance": 50 },
{ "tag": "GLOBAL", "type": "selector", "outbounds": ["{all}"], "filter": [{ "action": "exclude", "keywords": ["网站|官网|套餐|地址|xpire|剩余|过期|到期|时间|刷新|有效"] }]},
{ "tag": "🎯 全球直连", "type": "direct" }
],
"route": {
"auto_detect_interface": true,
"final": "🐠 漏网之鱼",
"rules":
[
{"action": "sniff"},
{"type": "logical", "mode": "or", "rules": [ { "port": 53 }, { "protocol": "dns" } ], "action": "hijack-dns"},
{"protocol": "bittorrent", "outbound": "🎯 全球直连"},
{"clash_mode": "direct", "outbound": "🎯 全球直连"},
{"clash_mode": "global", "outbound": "GLOBAL"},
{"domain_suffix": [".abc.com", ".bcd.com"], "outbound": "🎯 全球直连"},
{"domain": ["clash.razord.top", "yacd.metacubex.one", "yacd.haishan.me", "d.metacubex.one"], "outbound": "🎯 全球直连"},
{"rule_set": ["geosite-private", "geoip-private"], "outbound": "🎯 全球直连"},
{"rule_set": "geosite-chat", "outbound": "🤖 OpenAI"},
{"rule_set": "geosite-youtube", "outbound": "📹 YouTube"},
{"rule_set": ["geosite-google", "geoip-google"], "outbound": "🍀 Google"},
{"rule_set": "geosite-github", "outbound": "👨💻 Github"},
{"rule_set": ["geosite-telegram", "geoip-telegram"], "outbound": "📲 Telegram"},
{"rule_set": ["geosite-apple", "geoip-apple"], "outbound": "🍏 Apple"},
{"rule_set": "geosite-onedrive", "outbound": "🐬 OneDrive"},
{"rule_set": "geosite-microsoft", "outbound": "🪟 Microsoft"},
{"rule_set": "geosite-geolocation-!cn", "outbound": "🚀 节点选择"},
{"rule_set": ["geoip-cn", "geosite-cn"], "outbound": "🎯 全球直连"}
],
"rule_set": [
{ "tag": "geosite-chat", "type": "remote", "format": "binary", "url": "https://www.ghproxy.cn/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/category-ai-chat-!cn.srs", "download_detour": "🎯 全球直连" },
{ "tag": "geosite-youtube", "type": "remote", "format": "binary", "url": "https://www.ghproxy.cn/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/youtube.srs", "download_detour": "🎯 全球直连" },
{ "tag": "geoip-google", "type": "remote", "format": "binary", "url": "https://www.ghproxy.cn/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/google.srs", "download_detour": "🎯 全球直连" },
{ "tag": "geosite-google", "type": "remote", "format": "binary", "url": "https://www.ghproxy.cn/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/google.srs", "download_detour": "🎯 全球直连" },
{ "tag": "geosite-github", "type": "remote", "format": "binary", "url": "https://www.ghproxy.cn/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/github.srs", "download_detour": "🎯 全球直连" },
{ "tag": "geoip-telegram", "type": "remote", "format": "binary", "url": "https://www.ghproxy.cn/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/telegram.srs", "download_detour": "🎯 全球直连" },
{ "tag": "geosite-telegram", "type": "remote", "format": "binary", "url": "https://www.ghproxy.cn/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/telegram.srs", "download_detour": "🎯 全球直连" },
{ "tag": "geoip-apple", "type": "remote", "format": "binary", "url": "https://www.ghproxy.cn/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://www.ghproxy.cn/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/apple.srs", "download_detour": "🎯 全球直连" },
{ "tag": "geosite-onedrive", "type": "remote", "format": "binary", "url": "https://www.ghproxy.cn/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/onedrive.srs", "download_detour": "🎯 全球直连" },
{ "tag": "geosite-microsoft", "type": "remote", "format": "binary", "url": "https://www.ghproxy.cn/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://www.ghproxy.cn/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://www.ghproxy.cn/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/cn.srs", "download_detour": "🎯 全球直连" },
{ "tag": "geosite-cn", "type": "remote", "format": "binary", "url": "https://www.ghproxy.cn/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/cn.srs", "download_detour": "🎯 全球直连" },
{ "tag": "geoip-private", "type": "remote", "format": "binary", "url": "https://www.ghproxy.cn/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/private.srs", "download_detour": "🎯 全球直连" },
{ "tag": "geosite-private", "type": "remote", "format": "binary", "url": "https://www.ghproxy.cn/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/private.srs", "download_detour": "🎯 全球直连" }
]
}
}