mirror of
https://github.com/Dichgrem/singbox-example.git
synced 2025-07-31 17:19:31 -04:00
update:folder
This commit is contained in:
108
config/client/example-node/single-node-core.yaml
Normal file
108
config/client/example-node/single-node-core.yaml
Normal file
@ -0,0 +1,108 @@
|
||||
{
|
||||
"dns":
|
||||
{
|
||||
"independent_cache": true,
|
||||
"rules":
|
||||
[
|
||||
{ "outbound": "any", "server": "dns-direct" },
|
||||
{ "query_type": [32, 33], "server": "dns-block" },
|
||||
{ "domain_suffix": ".lan", "server": "dns-block" },
|
||||
],
|
||||
"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":
|
||||
[
|
||||
{
|
||||
"domain_strategy": "",
|
||||
"listen": "127.0.0.1",
|
||||
"listen_port": 2080,
|
||||
"sniff": true,
|
||||
"sniff_override_destination": false,
|
||||
"tag": "mixed-in",
|
||||
"type": "mixed",
|
||||
},
|
||||
],
|
||||
"log": { "level": "info" },
|
||||
"outbounds":
|
||||
[
|
||||
{
|
||||
"domain_strategy": "",
|
||||
"flow": "xtls-rprx-vision",
|
||||
"packet_encoding": "",
|
||||
"server": "服务器IP",
|
||||
"server_port": 443,
|
||||
"tag": "proxy",
|
||||
"tls":
|
||||
{
|
||||
"enabled": true,
|
||||
"reality":
|
||||
{
|
||||
"enabled": true,
|
||||
"public_key": "singbox生成公钥",
|
||||
"short_id": "singbox生成ID",
|
||||
},
|
||||
"server_name": "yahoo.com",
|
||||
"utls": { "enabled": true, "fingerprint": "chrome" },
|
||||
},
|
||||
"type": "vless",
|
||||
"uuid": "singbox生成UUID",
|
||||
},
|
||||
{ "tag": "direct", "type": "direct" },
|
||||
{ "tag": "bypass", "type": "direct" },
|
||||
{ "tag": "block", "type": "block" },
|
||||
{ "tag": "dns-out", "type": "dns" },
|
||||
],
|
||||
"route":
|
||||
{
|
||||
"final": "proxy",
|
||||
"rules":
|
||||
[
|
||||
{ "outbound": "dns-out", "protocol": "dns" },
|
||||
{
|
||||
"domain": [],
|
||||
"domain_keyword": [],
|
||||
"domain_regex": [],
|
||||
"domain_suffix": ["appcenter.ms", "firebase.io", "crashlytics.com"],
|
||||
"geosite": ["category-ads-all"],
|
||||
"outbound": "block",
|
||||
},
|
||||
{
|
||||
"domain": [],
|
||||
"domain_keyword": [],
|
||||
"domain_regex": [],
|
||||
"domain_suffix": [],
|
||||
"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"],
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
24
config/client/example-node/single-node.yaml
Normal file
24
config/client/example-node/single-node.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
[
|
||||
{
|
||||
"tag": "Jp-100G",
|
||||
"type": "vless",
|
||||
"server": "服务器IP",
|
||||
"server_port": 443,
|
||||
"uuid": "singbox生成UUID",
|
||||
"tls":
|
||||
{
|
||||
"enabled": true,
|
||||
"server_name": "icloud.com",
|
||||
"insecure": false,
|
||||
"reality":
|
||||
{
|
||||
"enabled": true,
|
||||
"public_key": "singbox生成公钥",
|
||||
"short_id": "singbox生成ID",
|
||||
},
|
||||
"utls": { "enabled": true, "fingerprint": "chrome" },
|
||||
},
|
||||
"flow": "xtls-rprx-vision",
|
||||
},
|
||||
]
|
||||
|
62
config/client/example-rule/dns-rule-leak.yaml
Normal file
62
config/client/example-rule/dns-rule-leak.yaml
Normal file
@ -0,0 +1,62 @@
|
||||
{
|
||||
"dns":
|
||||
{
|
||||
"servers":
|
||||
[
|
||||
{ "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", "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",
|
||||
},
|
||||
{
|
||||
"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": { "default_mode": "Enhanced" },
|
||||
},
|
||||
}
|
||||
|
61
config/client/example-rule/dns-rule.yaml
Normal file
61
config/client/example-rule/dns-rule.yaml
Normal file
@ -0,0 +1,61 @@
|
||||
{
|
||||
"dns":
|
||||
{
|
||||
"servers":
|
||||
[
|
||||
{ "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", "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",
|
||||
},
|
||||
{
|
||||
"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": { "default_mode": "Enhanced" },
|
||||
},
|
||||
}
|
||||
|
48
config/client/example-rule/fakeip.yaml
Normal file
48
config/client/example-rule/fakeip.yaml
Normal file
@ -0,0 +1,48 @@
|
||||
{
|
||||
"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",
|
||||
"inet4_address": "172.19.0.1/30",
|
||||
"inet6_address": "fdfe:dcba:9876::1/126",
|
||||
"auto_route": true,
|
||||
"strict_route": 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,
|
||||
},
|
||||
} #
|
||||
|
53
config/client/example-rule/route-rule.yaml
Normal file
53
config/client/example-rule/route-rule.yaml
Normal file
@ -0,0 +1,53 @@
|
||||
{
|
||||
"outbounds":
|
||||
[
|
||||
{ "type": "direct", "tag": "direct" },
|
||||
{ "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":
|
||||
[
|
||||
{
|
||||
"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",
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
|
36
config/client/example-rule/tun-ipv4+ipv6.yaml
Normal file
36
config/client/example-rule/tun-ipv4+ipv6.yaml
Normal file
@ -0,0 +1,36 @@
|
||||
{
|
||||
"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",
|
||||
"inet4_address": "172.19.0.1/30",
|
||||
"inet6_address": "fdfe:dcba:9876::1/126",
|
||||
"auto_route": true,
|
||||
"strict_route": false,
|
||||
},
|
||||
],
|
||||
"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,
|
||||
},
|
||||
} #
|
||||
|
36
config/client/example-rule/tun-ipv4only.yaml
Normal file
36
config/client/example-rule/tun-ipv4only.yaml
Normal file
@ -0,0 +1,36 @@
|
||||
{
|
||||
"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",
|
||||
"inet4_address": "172.19.0.1/30",
|
||||
"auto_route": true,
|
||||
"strict_route": false,
|
||||
},
|
||||
],
|
||||
"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,
|
||||
},
|
||||
}
|
||||
|
1580
config/client/full-config/shellcrash.json
Normal file
1580
config/client/full-config/shellcrash.json
Normal file
File diff suppressed because it is too large
Load Diff
54
config/server/reality_domain.md
Normal file
54
config/server/reality_domain.md
Normal file
@ -0,0 +1,54 @@
|
||||
# Apple
|
||||
gateway.icloud.com
|
||||
itunes.apple.com
|
||||
swdist.apple.com
|
||||
swcdn.apple.com grcp不可用
|
||||
updates.cdn-apple.com grcp不可用
|
||||
mensura.cdn-apple.com
|
||||
osxapps.itunes.apple.com grcp不可用
|
||||
aod.itunes.apple.com,
|
||||
|
||||
# mozilla
|
||||
download-installer.cdn.mozilla.net
|
||||
addons.mozilla.org
|
||||
|
||||
# CDN
|
||||
s0.awsstatic.com
|
||||
d1.awsstatic.com
|
||||
cdn-dynmedia-1.microsoft.com
|
||||
|
||||
# amazon
|
||||
images-na.ssl-images-amazon.com
|
||||
m.media-amazon.com
|
||||
|
||||
# google
|
||||
dl.google.com
|
||||
www.google-analytics.com
|
||||
|
||||
# 其他
|
||||
player.live-video.net grcp不可用
|
||||
one-piece.com
|
||||
lol.secure.dyn.riotcdn.net
|
||||
www.lovelive-anime.jp
|
||||
www.swift.com
|
||||
academy.nvidia.com
|
||||
www.cisco.com
|
||||
www.samsung.com
|
||||
www.amd.com
|
||||
software.download.prss.microsoft.com grcp不可用
|
||||
|
||||
# 技术网站
|
||||
www.python.org
|
||||
vuejs-jp.org
|
||||
vuejs.org
|
||||
zh-hk.vuejs.org
|
||||
react.dev
|
||||
www.java.com
|
||||
www.oracle.com
|
||||
www.mysql.com
|
||||
www.mongodb.com
|
||||
redis.io
|
||||
|
||||
# dns
|
||||
cname.vercel-dns.com
|
||||
vercel-dns.com
|
37
config/server/vless+reality.yaml
Normal file
37
config/server/vless+reality.yaml
Normal file
@ -0,0 +1,37 @@
|
||||
{
|
||||
"log": { "level": "info" },
|
||||
"dns": { "servers": [{ "address": "tls://8.8.8.8" }] },
|
||||
"inbounds":
|
||||
[
|
||||
{
|
||||
"type": "vless",
|
||||
"tag": "VLESSReality",
|
||||
"listen": "::",
|
||||
"listen_port": 443,
|
||||
"users":
|
||||
[
|
||||
{
|
||||
"name": "AK-JP-100G",
|
||||
"uuid": "singbox生成",
|
||||
"flow": "xtls-rprx-vision",
|
||||
},
|
||||
],
|
||||
"tls":
|
||||
{
|
||||
"enabled": true,
|
||||
"server_name": "s0.awsstatic.com",
|
||||
"reality":
|
||||
{
|
||||
"enabled": true,
|
||||
"handshake":
|
||||
{ "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" }] },
|
||||
}
|
||||
|
Reference in New Issue
Block a user