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
+107 -104
View File
@@ -1266,142 +1266,87 @@ sball(){
cat <<EOF
{
"log": {
"disabled": false,
"level": "info",
"timestamp": true
},
"experimental": {
"cache_file": {
"enabled": true,
"path": "./cache.db",
"store_fakeip": true
},
"clash_api": {
"external_controller": "127.0.0.1:9090",
"external_ui": "ui",
"default_mode": "Rule"
"http_clients": [
{
"tag": "rule-set-direct"
}
},
],
"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",
"tag": "fakeip",
"inet4_range": "198.18.0.0/15",
"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",
"clash_mode": "Rule",
"server": "aliDns"
},
{
"clash_mode": "Direct",
"server": "local"
},
{
"clash_mode": "Global",
"server": "proxyDns"
"rule_set": [
"geosite-cn"
],
"action": "route",
"server": "dns-cn"
},
{
"query_type": [
"A",
"AAAA"
],
"action": "route",
"server": "fakeip"
}
],
"final": "proxyDns",
"strategy": "prefer_ipv4"
"final": "dns-proxy",
"strategy": "prefer_ipv4",
"cache_capacity": 8192,
"optimistic": {
"enabled": true,
"timeout": "1h"
},
"timeout": "10s",
"reverse_mapping": true
},
"http_clients": [
{
"tag": "http-client-direct"
}
],
"inbounds": [
{
"type": "tun",
"tag": "tun-in",
"address": [
"172.19.0.1/30",
"fd00::1/126"
"fdfe:dcba:9876::1/126"
],
"auto_route": true,
"strict_route": true
"strict_route": true,
"stack": "gvisor",
"mtu": 1420
}
],
"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,
"clash_mode": "Rule",
"outbound": "direct"
},
{
"clash_mode": "Direct",
"outbound": "direct"
}
],
"default_http_client": "rule-set-direct",
"default_domain_resolver": "dns-cn",
"auto_detect_interface": true,
"rule_set": [
{
"tag": "geosite-cn",
"type": "remote",
"format": "binary",
"url": "https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/geolocation-cn.srs"
"url": "https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/cn.srs"
},
{
"tag": "geoip-cn",
@@ -1410,11 +1355,65 @@ cat <<EOF
"url": "https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/cn.srs"
}
],
"final": "proxy",
"default_http_client": "http-client-direct",
"auto_detect_interface": true,
"default_domain_resolver": {
"server": "aliDns"
"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": [
"geosite-cn"
],
"action": "route",
"outbound": "direct"
},
{
"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": [
@@ -1751,7 +1750,8 @@ $(sbany1)
],
"url": "http://www.gstatic.com/generate_204",
"interval": "10m",
"tolerance": 50
"tolerance": 30,
"idle_timeout": "30m"
},
{
"type": "direct",
@@ -1973,7 +1973,8 @@ $(sbany1)
],
"url": "http://www.gstatic.com/generate_204",
"interval": "10m",
"tolerance": 50
"tolerance": 30,
"idle_timeout": "30m"
},
{
"type": "direct",
@@ -2163,7 +2164,8 @@ $(sbany1)
],
"url": "http://www.gstatic.com/generate_204",
"interval": "10m",
"tolerance": 50
"tolerance": 30,
"idle_timeout": "30m"
},
{
"type": "direct",
@@ -2293,7 +2295,8 @@ $(sbany1)
],
"url": "http://www.gstatic.com/generate_204",
"interval": "10m",
"tolerance": 50
"tolerance": 30,
"idle_timeout": "30m"
},
{
"type": "direct",