chore:update_config

This commit is contained in:
dichgrem
2025-10-26 20:26:07 +08:00
parent b4bf29dc04
commit 79a2963043
16 changed files with 3823 additions and 2008 deletions

7
config/client/1_log.json Normal file
View File

@@ -0,0 +1,7 @@
{
"log": {
"disabled": false,
"level": "info",
"timestamp": true
}
}

210
config/client/2_dns.json Normal file
View File

@@ -0,0 +1,210 @@
{
"dns": {
"servers": [
{
"tag": "dns_proxy",
"address": "https://223.5.5.5/dns-query",
"strategy": "ipv4_only",
"address_resolver": "dns_resolver"
},
{
"tag": "dns_direct",
"address": "https://8.8.8.8/dns-query",
"strategy": "ipv4_only",
"address_resolver": "dns_resolver",
"detour": "DIRECT"
},
{
"tag": "dns_fakeip",
"address": "fakeip"
},
{
"tag": "dns_resolver",
"address": "223.5.5.5",
"detour": "DIRECT"
},
{
"tag": "block",
"address": "rcode://success"
},
{
"tag": "local",
"address": "local",
"detour": "DIRECT"
}
],
"rules": [
{
"outbound": [
"any"
],
"server": "dns_direct"
},
{
"clash_mode": "Global",
"server": "dns_fakeip",
"rewrite_ttl": 1
},
{
"clash_mode": "Direct",
"server": "dns_direct"
},
{
"domain": [
"time-ios.apple.com",
"time1.cloud.tencent.com",
"music.163.com",
"musicapi.taihe.com",
"music.taihe.com",
"songsearch.kugou.com",
"trackercdn.kugou.com",
"api-jooxtt.sanook.com",
"api.joox.com",
"joox.com",
"y.qq.com",
"streamoc.music.tc.qq.com",
"mobileoc.music.tc.qq.com",
"isure.stream.qqmusic.qq.com",
"dl.stream.qqmusic.qq.com",
"aqqmusic.tc.qq.com",
"amobile.music.tc.qq.com",
"music.migu.cn",
"localhost.ptlogin2.qq.com",
"localhost.sec.qq.com",
"xnotify.xboxlive.com",
"proxy.golang.org",
"heartbeat.belkin.com",
"mesu.apple.com",
"swscan.apple.com",
"swquery.apple.com",
"swdownload.apple.com",
"swcdn.apple.com",
"swdist.apple.com",
"lens.l.google.com",
"stun.l.google.com",
"na.b.g-tun.com",
"ff.dorado.sdo.com",
"shark007.net",
"adguardteam.github.io",
"adrules.top",
"anti-ad.net",
"local.adguard.org",
"static.adtidy.org",
"ps.res.netease.com"
],
"server": "dns_direct"
},
{
"domain_suffix": [
"lan",
"localdomain",
"example",
"invalid",
"localhost",
"test",
"local",
"home.arpa",
"direct",
"time.edu.cn",
"ntp.org.cn",
"pool.ntp.org",
"music.163.com",
"126.net",
"kuwo.cn",
"y.qq.com",
"xiami.com",
"music.migu.cn",
"msftconnecttest.com",
"msftncsi.com",
"steamcontent.com",
"srv.nintendo.net",
"n.n.srv.nintendo.net",
"cdn.nintendo.net",
"stun.playstation.net",
"battle.net",
"battlenet.com.cn",
"wotgame.cn",
"wggames.cn",
"wowsgame.cn",
"wargaming.net",
"linksys.com",
"linksyssmartwifi.com",
"router.asus.com",
"nflxvideo.net",
"square-enix.com",
"finalfantasyxiv.com",
"ffxiv.com",
"ff14.sdo.com",
"mcdn.bilivideo.cn",
"media.dssott.com",
"market.xiaomi.com",
"cmbchina.com",
"cmbimg.com",
"sandai.net",
"n0808.com",
"3gppnetwork.org",
"uu.163.com",
"oray.com",
"orayimg.com",
"gcloudcs.com",
"gcloudsdk.com"
],
"server": "dns_direct"
},
{
"domain_regex": [
"time.*.com",
"time.*.gov",
"time.*.edu.cn",
"time.*.apple.com",
"time1.*.com",
"time2.*.com",
"time3.*.com",
"time4.*.com",
"time5.*.com",
"time6.*.com",
"time7.*.com",
"ntp.*.com",
"ntp1.*.com",
"ntp2.*.com",
"ntp3.*.com",
"ntp4.*.com",
"ntp5.*.com",
"ntp6.*.com",
"ntp7.*.com",
"localhost.*.weixin.qq.com",
"xbox.*.*.microsoft.com",
".*.*.xboxlive.com",
"xbox.*.microsoft.com",
"stun.*.*",
"stun.*.*.*",
".+.stun.*.*",
".+.stun.*.*.*",
".+.stun.*.*.*.*",
".+.stun.*.*.*.*.*"
],
"server": "dns_direct"
},
{
"geosite": "cn",
"server": "dns_direct"
},
{
"query_type": [
"A",
"AAAA"
],
"server": "dns_fakeip",
"rewrite_ttl": 1
}
],
"final": "dns_proxy",
"independent_cache": true,
"reverse_mapping": true,
"fakeip": {
"enabled": true,
"inet4_range": "198.18.0.0/16",
"inet6_range": "fc00::/16"
}
}
}

9
config/client/3_ntp.json Normal file
View File

@@ -0,0 +1,9 @@
{
"ntp": {
"enabled": true,
"server": "time.apple.com",
"server_port": 123,
"interval": "30m",
"detour": "DIRECT"
}
}

View File

@@ -0,0 +1,19 @@
{
"inbounds": [
{
"type": "mixed",
"tag": "mixed-in",
"listen": "0.0.0.0",
"listen_port": 2080
},
{
"type": "tun",
"tag": "tun-in",
"inet4_address": "172.19.0.1/30",
"auto_route": true,
"strict_route": true,
"stack": "mixed",
"sniff": true
}
]
}

View File

@@ -0,0 +1,94 @@
{
"outbounds": [
{
"type": "direct",
"tag": "DIRECT"
},
{
"type": "block",
"tag": "REJECT"
},
{
"type": "dns",
"tag": "dns-out"
},
{
"type": "vless",
"tag": "🇺🇸 US-100G",
"server": "666.666.666.666",
"server_port": 443,
"uuid": "xxxxxxxxxxxxxxxxxxxxx",
"flow": "xtls-rprx-vision",
"tls": {
"enabled": true,
"server_name": "xxxxxxxxxx",
"insecure": true,
"utls": {
"enabled": true,
"fingerprint": "firefox"
},
"reality": {
"enabled": true,
"public_key": "xxxxxxxx",
"short_id": "xxxxxxxx"
}
},
"network": "tcp",
"tcp_fast_open": false
},
{
"type": "selector",
"tag": "🚀 节点选择",
"outbounds": [
"♻️ 自动选择",
"DIRECT",
"🇺🇸 US-100G"
]
},
{
"type": "urltest",
"tag": "♻️ 自动选择",
"outbounds": [
"🇺🇸 US-100G"
],
"url": "http://www.gstatic.com/generate_204",
"interval": "5m",
"tolerance": 50
},
{
"type": "selector",
"tag": "🎯 全球直连",
"outbounds": [
"DIRECT",
"🚀 节点选择",
"♻️ 自动选择"
]
},
{
"type": "selector",
"tag": "🛑 全球拦截",
"outbounds": [
"REJECT",
"DIRECT"
]
},
{
"type": "selector",
"tag": "🐟 漏网之鱼",
"outbounds": [
"🚀 节点选择",
"🎯 全球直连",
"♻️ 自动选择",
"🇺🇸 US-100G"
]
},
{
"type": "selector",
"tag": "GLOBAL",
"outbounds": [
"DIRECT",
"🇺🇸 US-100G"
]
}
]
}

3472
config/client/6_route.json Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,12 @@
{
"experimental": {
"cache_file": {
"enabled": true,
"store_fakeip": true
},
"clash_api": {
"external_controller": "0.0.0.0:9090",
"external_ui": "/etc/mihomo/ui"
}
}
}

View File

@@ -1,108 +0,0 @@
{
"dns":
{
"independent_cache": true,
"rules":
[
{ "outbound": "any", "server": "dns-direct" },
{ "query_type": [32, 33], "server": "dns-block" },
{ "domain_suffix": ".lan", "server": "dns-block" },
],
"servers":
[
{
"address": "https://8.8.8.8/dns-query",
"address_resolver": "dns-local",
"detour": "proxy",
"strategy": "",
"tag": "dns-remote",
},
{
"address": "local",
"address_resolver": "dns-local",
"detour": "direct",
"strategy": "",
"tag": "dns-direct",
},
{ "address": "rcode://success", "tag": "dns-block" },
{ "address": "local", "detour": "direct", "tag": "dns-local" },
],
},
"inbounds":
[
{
"domain_strategy": "",
"listen": "127.0.0.1",
"listen_port": 2080,
"sniff": true,
"sniff_override_destination": false,
"tag": "mixed-in",
"type": "mixed",
},
],
"log": { "level": "info" },
"outbounds":
[
{
"domain_strategy": "",
"flow": "xtls-rprx-vision",
"packet_encoding": "",
"server": "服务器IP",
"server_port": 443,
"tag": "proxy",
"tls":
{
"enabled": true,
"reality":
{
"enabled": true,
"public_key": "singbox生成公钥",
"short_id": "singbox生成ID",
},
"server_name": "yahoo.com",
"utls": { "enabled": true, "fingerprint": "chrome" },
},
"type": "vless",
"uuid": "singbox生成UUID",
},
{ "tag": "direct", "type": "direct" },
{ "tag": "bypass", "type": "direct" },
{ "tag": "block", "type": "block" },
{ "tag": "dns-out", "type": "dns" },
],
"route":
{
"final": "proxy",
"rules":
[
{ "outbound": "dns-out", "protocol": "dns" },
{
"domain": [],
"domain_keyword": [],
"domain_regex": [],
"domain_suffix": ["appcenter.ms", "firebase.io", "crashlytics.com"],
"geosite": ["category-ads-all"],
"outbound": "block",
},
{
"domain": [],
"domain_keyword": [],
"domain_regex": [],
"domain_suffix": [],
"geosite": ["cn"],
"outbound": "bypass",
},
{ "geoip": ["cn", "private"], "ip_cidr": [], "outbound": "bypass" },
{
"network": "udp",
"outbound": "block",
"port": [135, 137, 138, 139, 5353],
},
{ "ip_cidr": ["224.0.0.0/3", "ff00::/8"], "outbound": "block" },
{
"outbound": "block",
"source_ip_cidr": ["224.0.0.0/3", "ff00::/8"],
},
],
},
}

View File

@@ -1,24 +0,0 @@
[
{
"tag": "Jp-100G",
"type": "vless",
"server": "服务器IP",
"server_port": 443,
"uuid": "singbox生成UUID",
"tls":
{
"enabled": true,
"server_name": "icloud.com",
"insecure": false,
"reality":
{
"enabled": true,
"public_key": "singbox生成公钥",
"short_id": "singbox生成ID",
},
"utls": { "enabled": true, "fingerprint": "chrome" },
},
"flow": "xtls-rprx-vision",
},
]

View File

@@ -1,62 +0,0 @@
{
"dns":
{
"servers":
[
{ "tag": "google", "address": "tls://8.8.8.8" },
{
"tag": "local",
"address": "https://223.5.5.5/dns-query",
"detour": "direct",
},
],
"rules":
[
{ "outbound": "any", "server": "local" },
{ "clash_mode": "Direct", "server": "local" },
{ "clash_mode": "Global", "server": "google" },
{ "rule_set": "geosite-geolocation-cn", "server": "local" },
{ "clash_mode": "Default", "server": "google" },
{
"type": "logical",
"mode": "and",
"rules":
[
{ "rule_set": "geosite-geolocation-!cn", "invert": true },
{ "rule_set": "geoip-cn" },
],
"server": "local",
},
],
},
"route":
{
"rule_set":
[
{
"type": "remote",
"tag": "geosite-geolocation-cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs",
},
{
"type": "remote",
"tag": "geosite-geolocation-!cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs",
},
{
"type": "remote",
"tag": "geoip-cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs",
},
],
},
"experimental":
{
"cache_file": { "enabled": true, "store_rdrc": true },
"clash_api": { "default_mode": "Enhanced" },
},
}

View File

@@ -1,61 +0,0 @@
{
"dns":
{
"servers":
[
{ "tag": "google", "address": "tls://8.8.8.8" },
{
"tag": "local",
"address": "https://223.5.5.5/dns-query",
"detour": "direct",
},
],
"rules": [
{ "outbound": "any", "server": "local" },
{ "clash_mode": "Direct", "server": "local" },
{ "clash_mode": "Global", "server": "google" },
{ "rule_set": "geosite-geolocation-cn", "server": "local" },
{
"type": "logical",
"mode": "and",
"rules":
[
{ "rule_set": "geosite-geolocation-!cn", "invert": true },
{ "rule_set": "geoip-cn" },
],
"server": "google",
"client_subnet": "114.114.114.114/24", #Any China client IP address
},
],
},
"route":
{
"rule_set":
[
{
"type": "remote",
"tag": "geosite-geolocation-cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs",
},
{
"type": "remote",
"tag": "geosite-geolocation-!cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs",
},
{
"type": "remote",
"tag": "geoip-cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs",
},
],
},
"experimental":
{
"cache_file": { "enabled": true, "store_rdrc": true },
"clash_api": { "default_mode": "Enhanced" },
},
}

View File

@@ -1,48 +0,0 @@
{
"dns":
{
"servers":
[
{ "tag": "google", "address": "tls://8.8.8.8" },
{ "tag": "local", "address": "223.5.5.5", "detour": "direct" },
{ "tag": "remote", "address": "fakeip" },
],
"rules":
[
{ "outbound": "any", "server": "local" },
{ "query_type": ["A", "AAAA"], "server": "remote" },
],
"fakeip":
{
"enabled": true,
"inet4_range": "198.18.0.0/15",
"inet6_range": "fc00::/18",
},
"independent_cache": true,
},
"inbounds":
[
{
"type": "tun",
"inet4_address": "172.19.0.1/30",
"inet6_address": "fdfe:dcba:9876::1/126",
"auto_route": true,
"strict_route": true,
},
],
"outbounds": [
# ...
{ "type": "direct", "tag": "direct" },
{ "type": "dns", "tag": "dns-out" },
],
"route":
{
"rules":
[
{ "protocol": "dns", "outbound": "dns-out" },
{ "geoip": ["private"], "outbound": "direct" },
],
"auto_detect_interface": true,
},
} #

View File

@@ -1,53 +0,0 @@
{
"outbounds":
[
{ "type": "direct", "tag": "direct" },
{ "type": "block", "tag": "block" },
],
"route":
{
"rules":
[
{
"type": "logical",
"mode": "or",
"rules": [{ "protocol": "dns" }, { "port": 53 }],
"outbound": "dns",
},
{ "ip_is_private": true, "outbound": "direct" },
{ "clash_mode": "Direct", "outbound": "direct" },
{ "clash_mode": "Global", "outbound": "default" },
{
"type": "logical",
"mode": "or",
"rules":
[
{ "port": 853 },
{ "network": "udp", "port": 443 },
{ "protocol": "stun" },
],
"outbound": "block",
},
{
"rule_set": ["geoip-cn", "geosite-geolocation-cn"],
"outbound": "direct",
},
],
"rule_set":
[
{
"type": "remote",
"tag": "geoip-cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs",
},
{
"type": "remote",
"tag": "geosite-geolocation-cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs",
},
],
},
}

View File

@@ -1,36 +0,0 @@
{
"dns":
{
"servers":
[
{ "tag": "google", "address": "tls://8.8.8.8" },
{ "tag": "local", "address": "223.5.5.5", "detour": "direct" },
],
"rules": [{ "outbound": "any", "server": "local" }],
},
"inbounds":
[
{
"type": "tun",
"inet4_address": "172.19.0.1/30",
"inet6_address": "fdfe:dcba:9876::1/126",
"auto_route": true,
"strict_route": false,
},
],
"outbounds": [
# // ...
{ "type": "direct", "tag": "direct" },
{ "type": "dns", "tag": "dns-out" },
],
"route":
{
"rules":
[
{ "protocol": "dns", "outbound": "dns-out" },
{ "geoip": ["private"], "outbound": "direct" },
],
"auto_detect_interface": true,
},
} #

View File

@@ -1,36 +0,0 @@
{
"dns":
{
"servers":
[
{ "tag": "google", "address": "tls://8.8.8.8" },
{ "tag": "local", "address": "223.5.5.5", "detour": "direct" },
],
"rules": [{ "outbound": "any", "server": "local" }],
"strategy": "ipv4_only",
},
"inbounds":
[
{
"type": "tun",
"inet4_address": "172.19.0.1/30",
"auto_route": true,
"strict_route": false,
},
],
"outbounds": [
#// ...
{ "type": "direct", "tag": "direct" },
{ "type": "dns", "tag": "dns-out" },
],
"route":
{
"rules":
[
{ "protocol": "dns", "outbound": "dns-out" },
{ "geoip": ["private"], "outbound": "direct" },
],
"auto_detect_interface": true,
},
}

File diff suppressed because it is too large Load Diff