feat(脚本): 完善sing-box订阅通用配置

pull/1006/head
mack-a 2024-03-13 19:42:21 +08:00
parent 5bcfb7d8a9
commit d5d3fb537d
3 changed files with 60 additions and 15 deletions

View File

@ -34,7 +34,7 @@
- 支持不同核心之间的配置读取 - 支持不同核心之间的配置读取
- 支持个性化安装单个协议 - 支持个性化安装单个协议
- [支持无域名版本的VLESS Reality搭建](https://www.v2ray-agent.com/archives/1680104902581) - [支持无域名版本的VLESS Reality搭建](https://www.v2ray-agent.com/archives/1708584312877)
- [支持多种分流用于解锁wireguard、IPv6、Socks5、DNS、VMess(ws)、SNI反向代理](https://www.v2ray-agent.com/archives/ba-he-yi-jiao-ben-yu-ming-fen-liu-jiao-cheng) - [支持多种分流用于解锁wireguard、IPv6、Socks5、DNS、VMess(ws)、SNI反向代理](https://www.v2ray-agent.com/archives/ba-he-yi-jiao-ben-yu-ming-fen-liu-jiao-cheng)
- [支持批量添加CDN节点并配合ClashMeta自动优选](https://www.v2ray-agent.com/archives/1684858575649) - [支持批量添加CDN节点并配合ClashMeta自动优选](https://www.v2ray-agent.com/archives/1684858575649)
- 支持普通证书和通配符证书自动申请及更新 - 支持普通证书和通配符证书自动申请及更新
@ -46,6 +46,7 @@
# 二、使用指南 # 二、使用指南
- [八合一脚本从入门到精通](https://www.v2ray-agent.com/archives/1710141233)
- [脚本快速搭建教程](https://www.v2ray-agent.com/archives/1682491479771) - [脚本快速搭建教程](https://www.v2ray-agent.com/archives/1682491479771)
- [垃圾VPS大救星hysteria2最新协议一键搭建](https://www.v2ray-agent.com/archives/1697162969693) - [垃圾VPS大救星hysteria2最新协议一键搭建](https://www.v2ray-agent.com/archives/1697162969693)
- [Tuic V5性能提升及使用方法](https://www.v2ray-agent.com/archives/1687167522196) - [Tuic V5性能提升及使用方法](https://www.v2ray-agent.com/archives/1687167522196)

View File

@ -18,44 +18,63 @@
}, },
"dns": { "dns": {
"servers": [ "servers": [
{
"tag": "dns_proxy",
"address": "https://1.1.1.1/dns-query",
"address_resolver": "dns_resolver",
"strategy": "ipv4_only",
"detour": "select"
},
{
"tag": "dns_direct",
"address": "h3://dns.alidns.com/dns-query",
"address_resolver": "dns_resolver",
"strategy": "ipv4_only",
"detour": "direct"
},
{ {
"tag": "google", "tag": "google",
"address": "tls://8.8.4.4" "address": "tls://8.8.4.4"
}, },
{ {
"tag": "local", "tag": "dns_block",
"address": "https://223.5.5.5/dns-query", "address": "rcode://success"
"detour": "direct"
}, },
{ {
"tag": "dns-block", "tag": "dns_resolver",
"address": "rcode://success" "address": "114.114.114.114",
"strategy": "ipv4_only",
"detour": "direct"
} }
], ],
"rules": [ "rules": [
{ {
"outbound": "any", "outbound": "any",
"server": "local" "server": "dns_direct"
}, },
{ {
"clash_mode": "Direct", "clash_mode": "direct",
"server": "local" "server": "dns_direct"
}, },
{ {
"clash_mode": "Global", "clash_mode": "global",
"server": "google" "server": "dns_proxy"
}, },
{ {
"rule_set": "geosite-cn", "rule_set": "geosite-cn",
"server": "local" "server": "dns_direct"
}, },
{ {
"rule_set": "geoip-cn", "rule_set": "geoip-cn",
"server": "local" "server": "dns_direct"
},
{
"rule_set": "geosite-geolocation-!cn",
"server": "dns_proxy"
} }
], ],
"independent_cache": true, "independent_cache": true,
"final": "google" "final": "dns_direct"
}, },
"inbounds": [ "inbounds": [
{ {
@ -66,6 +85,12 @@
"auto_route": true, "auto_route": true,
"strict_route": true, "strict_route": true,
"sniff": true "sniff": true
},
{
"type": "socks",
"tag": "socks-in",
"listen": "127.0.0.1",
"listen_port": 7888
} }
], ],
"outbounds": [ "outbounds": [
@ -126,6 +151,14 @@
"direct" "direct"
] ]
}, },
{
"type": "selector",
"tag": "Github",
"outbounds": [
"全局代理",
"direct"
]
},
{ {
"type": "selector", "type": "selector",
"tag": "本地直连", "tag": "本地直连",
@ -250,6 +283,13 @@
"url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/geolocation-!cn.srs", "url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/geolocation-!cn.srs",
"update_interval": "1d" "update_interval": "1d"
}, },
{
"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",
"update_interval": "1d"
},
{ {
"tag": "geosite-private", "tag": "geosite-private",
"type": "remote", "type": "remote",
@ -355,6 +395,10 @@
"rule_set": "geosite-microsoft", "rule_set": "geosite-microsoft",
"outbound": "Microsoft" "outbound": "Microsoft"
}, },
{
"rule_set": "geosite-github",
"outbound": "Github"
},
{ {
"rule_set": "geosite-geolocation-!cn", "rule_set": "geosite-geolocation-!cn",
"outbound": "全局代理" "outbound": "全局代理"

View File

@ -8711,7 +8711,7 @@ menu() {
cd "$HOME" || exit cd "$HOME" || exit
echoContent red "\n==============================================================" echoContent red "\n=============================================================="
echoContent green "作者mack-a" echoContent green "作者mack-a"
echoContent green "当前版本v3.2.21" echoContent green "当前版本v3.2.22"
echoContent green "Githubhttps://github.com/mack-a/v2ray-agent" echoContent green "Githubhttps://github.com/mack-a/v2ray-agent"
echoContent green "描述:八合一共存脚本\c" echoContent green "描述:八合一共存脚本\c"
showInstallStatus showInstallStatus