ub.json
This commit is contained in:
commit
ff65f78288
270
ub.json
Normal file
270
ub.json
Normal file
@ -0,0 +1,270 @@
|
||||
{
|
||||
"log": {
|
||||
"disabled": false,
|
||||
"level": "info",
|
||||
"timestamp": true
|
||||
},
|
||||
"experimental": {
|
||||
"clash_api": {
|
||||
"external_controller": "127.0.0.1:9090",
|
||||
"external_ui": "metacubexd",
|
||||
"external_ui_download_url": "https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip",
|
||||
"external_ui_download_detour": "手动切换",
|
||||
"default_mode": "rule"
|
||||
},
|
||||
"cache_file": {
|
||||
"enabled": true
|
||||
}
|
||||
},
|
||||
"dns": {
|
||||
"servers": [
|
||||
{
|
||||
"tag": "dns_proxy",
|
||||
"address": "https://1.1.1.1/dns-query",
|
||||
"address_resolver": "dns_resolver",
|
||||
"strategy": "ipv4_only",
|
||||
"detour": "手动切换"
|
||||
},
|
||||
{
|
||||
"tag": "dns_direct",
|
||||
"address": "h3://dns.alidns.com/dns-query",
|
||||
"address_resolver": "dns_resolver",
|
||||
"strategy": "ipv4_only",
|
||||
"detour": "direct"
|
||||
},
|
||||
{
|
||||
"tag": "google",
|
||||
"address": "tls://8.8.4.4"
|
||||
},
|
||||
{
|
||||
"tag": "dns_block",
|
||||
"address": "rcode://success"
|
||||
},
|
||||
{
|
||||
"tag": "dns_resolver",
|
||||
"address": "114.114.114.114",
|
||||
"strategy": "ipv4_only",
|
||||
"detour": "direct"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"outbound": "any",
|
||||
"server": "dns_direct"
|
||||
},
|
||||
{
|
||||
"clash_mode": "direct",
|
||||
"server": "dns_direct"
|
||||
},
|
||||
{
|
||||
"clash_mode": "global",
|
||||
"server": "dns_proxy"
|
||||
}
|
||||
],
|
||||
"independent_cache": true,
|
||||
"final": "dns_direct"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"type": "tun",
|
||||
"tag": "tun-in",
|
||||
"stack": "system",
|
||||
"address": [
|
||||
"172.16.0.1/30",
|
||||
"fd00::1/126"
|
||||
],
|
||||
"mtu": 1492,
|
||||
"auto_route": true,
|
||||
"strict_route": true,
|
||||
"sniff": true,
|
||||
"platform": {
|
||||
"http_proxy": {
|
||||
"enabled": true,
|
||||
"server": "127.0.0.1",
|
||||
"server_port": 1082
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "mixed",
|
||||
"listen": "127.0.0.1",
|
||||
"listen_port": 1082,
|
||||
"sniff": true,
|
||||
"users": []
|
||||
},
|
||||
{
|
||||
"type": "socks",
|
||||
"tag": "socks-in",
|
||||
"listen": "127.0.0.1",
|
||||
"listen_port": 7888
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"type": "urltest",
|
||||
"tag": "自动选择",
|
||||
"outbounds": [
|
||||
"hashigo-singbox_hysteria2"
|
||||
],
|
||||
"url": "https://www.gstatic.com/generate_204",
|
||||
"interval": "3m",
|
||||
"tolerance": 50,
|
||||
"interrupt_exist_connections": false
|
||||
},
|
||||
{
|
||||
"type": "selector",
|
||||
"tag": "手动切换",
|
||||
"outbounds": [
|
||||
"hashigo-singbox_hysteria2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "selector",
|
||||
"tag": "Telegram",
|
||||
"outbounds": [
|
||||
"手动切换",
|
||||
"自动选择",
|
||||
"hashigo-singbox_hysteria2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "selector",
|
||||
"tag": "YouTube",
|
||||
"outbounds": [
|
||||
"手动切换",
|
||||
"自动选择",
|
||||
"hashigo-singbox_hysteria2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "selector",
|
||||
"tag": "netflix",
|
||||
"outbounds": [
|
||||
"手动切换",
|
||||
"自动选择",
|
||||
"hashigo-singbox_hysteria2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "selector",
|
||||
"tag": "OpenAI",
|
||||
"outbounds": [
|
||||
"手动切换",
|
||||
"自动选择",
|
||||
"hashigo-singbox_hysteria2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "selector",
|
||||
"tag": "Apple",
|
||||
"outbounds": [
|
||||
"手动切换",
|
||||
"自动选择",
|
||||
"direct",
|
||||
"hashigo-singbox_hysteria2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "selector",
|
||||
"tag": "Google",
|
||||
"outbounds": [
|
||||
"手动切换",
|
||||
"自动选择",
|
||||
"hashigo-singbox_hysteria2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "selector",
|
||||
"tag": "Microsoft",
|
||||
"outbounds": [
|
||||
"手动切换",
|
||||
"自动选择",
|
||||
"direct",
|
||||
"hashigo-singbox_hysteria2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "selector",
|
||||
"tag": "Github",
|
||||
"outbounds": [
|
||||
"手动切换",
|
||||
"自动选择",
|
||||
"direct",
|
||||
"hashigo-singbox_hysteria2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "selector",
|
||||
"tag": "本地直连",
|
||||
"outbounds": [
|
||||
"direct",
|
||||
"手动切换",
|
||||
"自动选择",
|
||||
"hashigo-singbox_hysteria2"
|
||||
],
|
||||
"default": "direct"
|
||||
},
|
||||
{
|
||||
"tag": "direct",
|
||||
"type": "direct"
|
||||
},
|
||||
{
|
||||
"tag": "hashigo-singbox_hysteria2",
|
||||
"type": "hysteria2",
|
||||
"server": "ub.internetapi.cn",
|
||||
"server_port": 21206,
|
||||
"up_mbps": 150,
|
||||
"down_mbps": 300,
|
||||
"password": "6e973bd6-df37-4155-875f-ada547cdb1cc",
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "ub.internetapi.cn",
|
||||
"alpn": [
|
||||
"h3"
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"route": {
|
||||
"rules": [
|
||||
{
|
||||
"action": "sniff"
|
||||
},
|
||||
{
|
||||
"protocol": "dns",
|
||||
"action": "hijack-dns"
|
||||
},
|
||||
{
|
||||
"clash_mode": "global",
|
||||
"outbound": "手动切换"
|
||||
},
|
||||
{
|
||||
"clash_mode": "direct",
|
||||
"outbound": "本地直连"
|
||||
},
|
||||
{
|
||||
"type": "logical",
|
||||
"mode": "or",
|
||||
"rules": [
|
||||
{
|
||||
"domain_regex": "^stun\\..+"
|
||||
},
|
||||
{
|
||||
"domain_keyword": [
|
||||
"stun",
|
||||
"httpdns"
|
||||
]
|
||||
},
|
||||
{
|
||||
"protocol": "stun"
|
||||
}
|
||||
],
|
||||
"action": "reject",
|
||||
"method": "default",
|
||||
"no_drop": false
|
||||
}
|
||||
],
|
||||
"final": "本地直连",
|
||||
"auto_detect_interface": true
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user