Merge pull request #344 from yonggekkk/beta

Update sb.sh
This commit is contained in:
甬哥侃侃侃ygkkk
2026-09-02 21:09:59 +08:00
committed by GitHub
+139 -136
View File
@@ -1265,158 +1265,157 @@ EOF
sball(){ sball(){
cat <<EOF cat <<EOF
{ {
"log": { "log": {
"disabled": false, "level": "info",
"level": "info", "timestamp": true
"timestamp": true },
}, "http_clients": [
"experimental": { {
"cache_file": { "tag": "rule-set-direct"
"enabled": true, }
"path": "./cache.db", ],
"store_fakeip": true "dns": {
}, "servers": [
"clash_api": { {
"external_controller": "127.0.0.1:9090",
"external_ui": "ui",
"default_mode": "Rule"
}
},
"dns": {
"servers": [
{
"tag": "aliDns",
"type": "https",
"server": "dns.alidns.com",
"path": "/dns-query",
"domain_resolver": "local"
},
{
"tag": "local",
"type": "udp",
"server": "223.5.5.5"
},
{
"tag": "proxyDns",
"type": "https",
"server": "dns.google",
"path": "/dns-query",
"domain_resolver": "aliDns",
"detour": "proxy"
},
{
"type": "fakeip", "type": "fakeip",
"tag": "fakeip", "tag": "fakeip",
"inet4_range": "198.18.0.0/15", "inet4_range": "198.18.0.0/15",
"inet6_range": "fc00::/18" "inet6_range": "fc00::/18"
},
{
"type": "udp",
"tag": "dns-cn",
"server": "223.5.5.5",
"server_port": 53
},
{
"type": "https",
"tag": "dns-proxy",
"server": "dns.google",
"domain_resolver": "dns-cn",
"detour": "proxy"
} }
],
"rules": [
{
"rule_set": [
"geosite-cn"
], ],
"rules": [ "action": "route",
{ "server": "dns-cn"
"rule_set": "geosite-cn", },
"clash_mode": "Rule", {
"server": "aliDns"
},
{
"clash_mode": "Direct",
"server": "local"
},
{
"clash_mode": "Global",
"server": "proxyDns"
},
{
"query_type": [ "query_type": [
"A", "A",
"AAAA" "AAAA"
], ],
"action": "route",
"server": "fakeip" "server": "fakeip"
} }
], ],
"final": "proxyDns", "final": "dns-proxy",
"strategy": "prefer_ipv4" "strategy": "prefer_ipv4",
"cache_capacity": 8192,
"optimistic": {
"enabled": true,
"timeout": "1h"
}, },
"http_clients": [ "timeout": "10s",
"reverse_mapping": true
},
"inbounds": [
{ {
"tag": "http-client-direct" "type": "tun",
"tag": "tun-in",
"address": [
"172.19.0.1/30",
"fdfe:dcba:9876::1/126"
],
"auto_route": true,
"strict_route": true,
"stack": "gvisor",
"mtu": 1420
} }
], ],
"inbounds": [ "route": {
{ "default_http_client": "rule-set-direct",
"type": "tun", "default_domain_resolver": "dns-cn",
"tag": "tun-in", "auto_detect_interface": true,
"address": [ "rule_set": [
"172.19.0.1/30", {
"fd00::1/126" "tag": "geosite-cn",
], "type": "remote",
"auto_route": true, "format": "binary",
"strict_route": true "url": "https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/cn.srs"
}
],
"route": {
"rules": [
{
"inbound": "tun-in",
"action": "sniff"
},
{
"type": "logical",
"mode": "or",
"rules": [
{
"port": 53
},
{
"protocol": "dns"
}
],
"action": "hijack-dns"
},
{
"clash_mode": "Global",
"outbound": "proxy"
},
{
"rule_set": "geosite-cn",
"clash_mode": "Rule",
"outbound": "direct"
},
{
"rule_set": "geoip-cn",
"clash_mode": "Rule",
"outbound": "direct"
}, },
{ {
"ip_is_private": true, "tag": "geoip-cn",
"clash_mode": "Rule", "type": "remote",
"outbound": "direct" "format": "binary",
}, "url": "https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/cn.srs"
{ }
"clash_mode": "Direct", ],
"outbound": "direct" "rules": [
} {
"inbound": [
"tun-in"
], ],
"protocol": [
"dns"
],
"action": "hijack-dns"
},
{
"clash_mode": "Global",
"action": "route",
"outbound": "proxy"
},
{
"ip_is_private": true,
"action": "route",
"outbound": "direct"
},
{
"rule_set": [ "rule_set": [
{ "geosite-cn"
"tag": "geosite-cn",
"type": "remote",
"format": "binary",
"url": "https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/geolocation-cn.srs"
},
{
"tag": "geoip-cn",
"type": "remote",
"format": "binary",
"url": "https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/cn.srs"
}
], ],
"final": "proxy", "action": "route",
"default_http_client": "http-client-direct", "outbound": "direct"
"auto_detect_interface": true, },
"default_domain_resolver": { {
"server": "aliDns" "rule_set": [
} "geoip-cn"
],
"action": "route",
"outbound": "direct"
},
{
"clash_mode": "Direct",
"action": "route",
"outbound": "direct"
},
{
"network": [
"tcp",
"udp"
],
"port": 853,
"action": "reject"
}
],
"final": "proxy"
},
"experimental": {
"cache_file": {
"enabled": true,
"store_dns": true
}, },
"clash_api": {
"external_controller": "127.0.0.1:9090",
"external_ui": "ui",
"default_mode": "Rule"
}
},
"outbounds": [ "outbounds": [
{ {
"type": "vless", "type": "vless",
@@ -1751,7 +1750,8 @@ $(sbany1)
], ],
"url": "http://www.gstatic.com/generate_204", "url": "http://www.gstatic.com/generate_204",
"interval": "10m", "interval": "10m",
"tolerance": 50 "tolerance": 30,
"idle_timeout": "30m"
}, },
{ {
"type": "direct", "type": "direct",
@@ -1973,7 +1973,8 @@ $(sbany1)
], ],
"url": "http://www.gstatic.com/generate_204", "url": "http://www.gstatic.com/generate_204",
"interval": "10m", "interval": "10m",
"tolerance": 50 "tolerance": 30,
"idle_timeout": "30m"
}, },
{ {
"type": "direct", "type": "direct",
@@ -2163,7 +2164,8 @@ $(sbany1)
], ],
"url": "http://www.gstatic.com/generate_204", "url": "http://www.gstatic.com/generate_204",
"interval": "10m", "interval": "10m",
"tolerance": 50 "tolerance": 30,
"idle_timeout": "30m"
}, },
{ {
"type": "direct", "type": "direct",
@@ -2293,7 +2295,8 @@ $(sbany1)
], ],
"url": "http://www.gstatic.com/generate_204", "url": "http://www.gstatic.com/generate_204",
"interval": "10m", "interval": "10m",
"tolerance": 50 "tolerance": 30,
"idle_timeout": "30m"
}, },
{ {
"type": "direct", "type": "direct",