update:format

This commit is contained in:
Dich
2025-05-25 18:55:05 +08:00
parent e14e533551
commit 9c39c13f4c
10 changed files with 424 additions and 643 deletions

View File

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

View File

@ -1,82 +1,62 @@
{ {
"dns": { "dns":
"servers": [ {
{ "servers":
"tag": "google", [
"address": "tls://8.8.8.8" { "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", "tag": "local",
"invert": true "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",
}, },
{ {
"rule_set": "geoip-cn" "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",
},
], ],
"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": { "experimental":
"default_mode": "Enhanced" {
} "cache_file": { "enabled": true, "store_rdrc": true },
} "clash_api": { "default_mode": "Enhanced" },
},
} }

View File

@ -1,79 +1,61 @@
{ {
"dns": { "dns":
"servers": [ {
{ "servers":
"tag": "google", [
"address": "tls://8.8.8.8" { "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", "tag": "local",
"invert": true "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",
}, },
{ {
"rule_set": "geoip-cn" "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",
},
], ],
"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": { "experimental":
"default_mode": "Enhanced" {
} "cache_file": { "enabled": true, "store_rdrc": true },
} "clash_api": { "default_mode": "Enhanced" },
},
} }

View File

@ -1,73 +1,48 @@
{ {
"dns": { "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", "servers":
"inet4_address": "172.19.0.1/30", [
"inet6_address": "fdfe:dcba:9876::1/126", { "tag": "google", "address": "tls://8.8.8.8" },
"auto_route": true, { "tag": "local", "address": "223.5.5.5", "detour": "direct" },
"strict_route": true { "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": [ "outbounds": [
// ... # ...
{ { "type": "direct", "tag": "direct" },
"type": "direct", { "type": "dns", "tag": "dns-out" },
"tag": "direct"
},
{
"type": "dns",
"tag": "dns-out"
}
],
"route": {
"rules": [
{
"protocol": "dns",
"outbound": "dns-out"
},
{
"geoip": [
"private"
],
"outbound": "direct"
}
], ],
"auto_detect_interface": true "route":
} {
} "rules":
[
{ "protocol": "dns", "outbound": "dns-out" },
{ "geoip": ["private"], "outbound": "direct" },
],
"auto_detect_interface": true,
},
} #

View File

@ -1,79 +1,53 @@
{ {
"outbounds": [ "outbounds":
{ [
"type": "direct", { "type": "direct", "tag": "direct" },
"tag": "direct" { "type": "block", "tag": "block" },
},
{
"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": [ "route":
{ {
"type": "remote", "rules":
"tag": "geoip-cn", [
"format": "binary", {
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs" "type": "logical",
}, "mode": "or",
{ "rules": [{ "protocol": "dns" }, { "port": 53 }],
"type": "remote", "outbound": "dns",
"tag": "geosite-geolocation-cn", },
"format": "binary", { "ip_is_private": true, "outbound": "direct" },
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs" { "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,56 +1,36 @@
{ {
"dns": { "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", "servers":
"inet4_address": "172.19.0.1/30", [
"inet6_address": "fdfe:dcba:9876::1/126", { "tag": "google", "address": "tls://8.8.8.8" },
"auto_route": true, { "tag": "local", "address": "223.5.5.5", "detour": "direct" },
"strict_route": false
}
],
"outbounds": [
// ...
{
"type": "direct",
"tag": "direct"
},
{
"type": "dns",
"tag": "dns-out"
}
],
"route": {
"rules": [
{
"protocol": "dns",
"outbound": "dns-out"
},
{
"geoip": [
"private"
], ],
"outbound": "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,
},
], ],
"auto_detect_interface": 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,56 +1,36 @@
{ {
"dns": { "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", "servers":
"inet4_address": "172.19.0.1/30", [
"auto_route": true, { "tag": "google", "address": "tls://8.8.8.8" },
"strict_route": false { "tag": "local", "address": "223.5.5.5", "detour": "direct" },
}
],
"outbounds": [
// ...
{
"type": "direct",
"tag": "direct"
},
{
"type": "dns",
"tag": "dns-out"
}
],
"route": {
"rules": [
{
"protocol": "dns",
"outbound": "dns-out"
},
{
"geoip": [
"private"
], ],
"outbound": "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,
},
], ],
"auto_detect_interface": 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,59 +1,37 @@
{ {
"log": { "log": { "level": "info" },
"level": "info" "dns": { "servers": [{ "address": "tls://8.8.8.8" }] },
}, "inbounds":
"dns": { [
"servers": [
{ {
"address": "tls://8.8.8.8" "type": "vless",
} "tag": "VLESSReality",
] "listen": "::",
}, "listen_port": 443,
"inbounds": [ "users":
{ [
"type": "vless", {
"tag": "VLESSReality", "name": "AK-JP-100G",
"listen": "::", "uuid": "singbox生成",
"listen_port": 443, "flow": "xtls-rprx-vision",
"users": [ },
{ ],
"name": "AK-JP-100G", "tls":
"uuid": "singbox生成", {
"flow": "xtls-rprx-vision" "enabled": true,
} "server_name": "s0.awsstatic.com",
], "reality":
"tls": { {
"enabled": true, "enabled": true,
"server_name": "s0.awsstatic.com", "handshake":
"reality": { { "server": "s0.awsstatic.com", "server_port": 443 },
"enabled": true, "private_key": "singbox生成",
"handshake": { "short_id": ["singbox生成"],
"server": "s0.awsstatic.com", },
"server_port": 443
}, },
"private_key": "singbox生成", },
"short_id": [ ],
"singbox生成" "outbounds": [{ "type": "direct" }, { "type": "dns", "tag": "dns-out" }],
] "route": { "rules": [{ "protocol": "dns", "outbound": "dns-out" }] },
}
}
}
],
"outbounds": [
{
"type": "direct"
},
{
"type": "dns",
"tag": "dns-out"
}
],
"route": {
"rules": [
{
"protocol": "dns",
"outbound": "dns-out"
}
]
}
} }