mirror of
https://github.com/Dichgrem/singbox-example.git
synced 2025-12-17 04:11:58 -05:00
add:momo_config
fmt:config_style
This commit is contained in:
7
config/client/shellcrash/1_log.json
Normal file
7
config/client/shellcrash/1_log.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"log": {
|
||||
"disabled": false,
|
||||
"level": "info",
|
||||
"timestamp": true
|
||||
}
|
||||
}
|
||||
210
config/client/shellcrash/2_dns.json
Normal file
210
config/client/shellcrash/2_dns.json
Normal 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/shellcrash/3_ntp.json
Normal file
9
config/client/shellcrash/3_ntp.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ntp": {
|
||||
"enabled": true,
|
||||
"server": "time.apple.com",
|
||||
"server_port": 123,
|
||||
"interval": "30m",
|
||||
"detour": "DIRECT"
|
||||
}
|
||||
}
|
||||
19
config/client/shellcrash/4_inbounds.json
Normal file
19
config/client/shellcrash/4_inbounds.json
Normal 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
|
||||
}
|
||||
]
|
||||
}
|
||||
94
config/client/shellcrash/5_outbounds.json
Normal file
94
config/client/shellcrash/5_outbounds.json
Normal 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/shellcrash/6_route.json
Normal file
3472
config/client/shellcrash/6_route.json
Normal file
File diff suppressed because it is too large
Load Diff
12
config/client/shellcrash/7_experimental.json
Normal file
12
config/client/shellcrash/7_experimental.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
21
config/client/shellcrash/add_hosts.json
Normal file
21
config/client/shellcrash/add_hosts.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"dns": {
|
||||
"servers": [
|
||||
{
|
||||
"tag": "hosts_local",
|
||||
"address": "local",
|
||||
"detour": "DIRECT"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"domain": [
|
||||
"localhost",
|
||||
"time.android.com",
|
||||
"time.facebook.com"
|
||||
],
|
||||
"server": "hosts_local"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
11
config/client/shellcrash/add_route.json
Normal file
11
config/client/shellcrash/add_route.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"route": {
|
||||
"rules": [
|
||||
{
|
||||
"inbound": "dns-in",
|
||||
"outbound": "dns-out"
|
||||
}
|
||||
],
|
||||
"default_mark": 7894
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user