mirror of
https://github.com/Dichgrem/singbox-example.git
synced 2025-12-16 03:51:59 -05:00
update:kernel_config
This commit is contained in:
Binary file not shown.
Binary file not shown.
209
config/kernel/ipv4+6.json
Normal file
209
config/kernel/ipv4+6.json
Normal file
@@ -0,0 +1,209 @@
|
||||
{
|
||||
"dns": {
|
||||
"servers": [
|
||||
{
|
||||
"tag": "local",
|
||||
"type": "udp",
|
||||
"server": "223.5.5.5"
|
||||
},
|
||||
{
|
||||
"tag": "public",
|
||||
"type": "https",
|
||||
"server": "dns.alidns.com",
|
||||
"domain_resolver": "local"
|
||||
},
|
||||
{
|
||||
"tag": "foreign",
|
||||
"type": "https",
|
||||
"server": "8.8.8.8",
|
||||
"detour": "Azure-JP"
|
||||
},
|
||||
{
|
||||
"tag": "fakeip",
|
||||
"type": "fakeip",
|
||||
"inet4_range": "198.18.0.0/15",
|
||||
"inet6_range": "fc00::/18"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"rule_set": "geosite-cn",
|
||||
"server": "local"
|
||||
},
|
||||
{
|
||||
"query_type": [
|
||||
"A",
|
||||
"AAAA"
|
||||
],
|
||||
"server": "fakeip",
|
||||
"rewrite_ttl": 1
|
||||
}
|
||||
],
|
||||
"final": "foreign",
|
||||
"strategy": "prefer_ipv4",
|
||||
"independent_cache": true,
|
||||
"reverse_mapping": false
|
||||
},
|
||||
"outbounds": [
|
||||
{
|
||||
"tag": "Server1",
|
||||
"type": "vless",
|
||||
"server": "xxx.xxx.xxx.xxx",
|
||||
"server_port": 8443,
|
||||
"uuid": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "xxxxxxxxxxxx",
|
||||
"insecure": false,
|
||||
"reality": {
|
||||
"enabled": true,
|
||||
"public_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
||||
"short_id": "xxxxxxxxxxxx"
|
||||
},
|
||||
"utls": {
|
||||
"enabled": true,
|
||||
"fingerprint": "firefox"
|
||||
}
|
||||
},
|
||||
"flow": "xtls-rprx-vision"
|
||||
},
|
||||
{
|
||||
"tag": "Server2",
|
||||
"type": "vless",
|
||||
"server": "xxx.xxx.xxx.xxx",
|
||||
"server_port": 8443,
|
||||
"uuid": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "xxxxxxxxxxxx",
|
||||
"insecure": false,
|
||||
"reality": {
|
||||
"enabled": true,
|
||||
"public_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
||||
"short_id": "xxxxxxxxxxxx"
|
||||
},
|
||||
"utls": {
|
||||
"enabled": true
|
||||
}
|
||||
},
|
||||
"flow": "xtls-rprx-vision"
|
||||
},
|
||||
{
|
||||
"tag": "GLOBAL",
|
||||
"type": "selector",
|
||||
"outbounds": [
|
||||
"Server1",
|
||||
"Server2",
|
||||
"direct"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "direct",
|
||||
"type": "direct"
|
||||
}
|
||||
],
|
||||
"route": {
|
||||
"rules": [
|
||||
{
|
||||
"inbound": "tun-in",
|
||||
"port": 53,
|
||||
"action": "hijack-dns"
|
||||
},
|
||||
{
|
||||
"inbound": "dns-in",
|
||||
"action": "hijack-dns"
|
||||
},
|
||||
{
|
||||
"ip_is_private": true,
|
||||
"outbound": "direct"
|
||||
},
|
||||
{
|
||||
"rule_set": "geosite-cn",
|
||||
"outbound": "direct"
|
||||
},
|
||||
{
|
||||
"rule_set": "geoip-cn",
|
||||
"outbound": "direct"
|
||||
},
|
||||
{
|
||||
"action": "sniff",
|
||||
"sniffer": [
|
||||
"http",
|
||||
"tls",
|
||||
"quic",
|
||||
"dns"
|
||||
]
|
||||
},
|
||||
{
|
||||
"outbound": "GLOBAL"
|
||||
}
|
||||
],
|
||||
"rule_set": [
|
||||
{
|
||||
"tag": "geosite-cn",
|
||||
"type": "remote",
|
||||
"format": "binary",
|
||||
"url": "https://gh-proxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/cn.srs",
|
||||
"download_detour": "direct"
|
||||
},
|
||||
{
|
||||
"tag": "geoip-cn",
|
||||
"type": "remote",
|
||||
"format": "binary",
|
||||
"url": "https://cdn.jsdelivr.net/gh/Loyalsoldier/geoip@release/srs/cn.srs",
|
||||
"download_detour": "direct"
|
||||
}
|
||||
],
|
||||
"final": "GLOBAL",
|
||||
"auto_detect_interface": true,
|
||||
"default_domain_resolver": {
|
||||
"server": "public"
|
||||
}
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"tag": "dns-in",
|
||||
"type": "direct",
|
||||
"listen": "127.0.0.1",
|
||||
"listen_port": 1053
|
||||
},
|
||||
{
|
||||
"tag": "tun-in",
|
||||
"type": "tun",
|
||||
"interface_name": "stun",
|
||||
"address": [
|
||||
"172.19.0.1/30",
|
||||
"fdfe:dcba:9876::1/126"
|
||||
],
|
||||
"mtu": 9000,
|
||||
"auto_route": true,
|
||||
"auto_redirect": true,
|
||||
"strict_route": false
|
||||
},
|
||||
{
|
||||
"type": "mixed",
|
||||
"listen": "127.0.0.1",
|
||||
"listen_port": 7890
|
||||
}
|
||||
],
|
||||
"experimental": {
|
||||
"cache_file": {
|
||||
"enabled": true,
|
||||
"path": "/var/lib/sing-box/cache.db",
|
||||
"store_fakeip": true
|
||||
},
|
||||
"clash_api": {
|
||||
"external_controller": "0.0.0.0:9191",
|
||||
"external_ui": "/var/lib/sing-box/ui",
|
||||
"external_ui_download_url": "https://gh-proxy.com/https://github.com/Zephyruso/zashboard/archive/refs/heads/gh-pages.zip",
|
||||
"external_ui_download_detour": "direct",
|
||||
"secret": "",
|
||||
"default_mode": "rule"
|
||||
}
|
||||
},
|
||||
"log": {
|
||||
"disabled": false,
|
||||
"level": "info",
|
||||
"timestamp": true
|
||||
}
|
||||
}
|
||||
208
config/kernel/ipv4only.json
Normal file
208
config/kernel/ipv4only.json
Normal file
@@ -0,0 +1,208 @@
|
||||
{
|
||||
"dns": {
|
||||
"servers": [
|
||||
{
|
||||
"tag": "local",
|
||||
"type": "udp",
|
||||
"server": "223.5.5.5"
|
||||
},
|
||||
{
|
||||
"tag": "public",
|
||||
"type": "https",
|
||||
"server": "dns.alidns.com",
|
||||
"domain_resolver": "local"
|
||||
},
|
||||
{
|
||||
"tag": "foreign",
|
||||
"type": "https",
|
||||
"server": "8.8.8.8",
|
||||
"detour": "Azure-JP"
|
||||
},
|
||||
{
|
||||
"tag": "fakeip",
|
||||
"type": "fakeip",
|
||||
"inet4_range": "198.18.0.0/15",
|
||||
"inet6_range": "fc00::/18"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"rule_set": "geosite-cn",
|
||||
"server": "local"
|
||||
},
|
||||
{
|
||||
"query_type": [
|
||||
"A",
|
||||
"AAAA"
|
||||
],
|
||||
"server": "fakeip",
|
||||
"rewrite_ttl": 1
|
||||
}
|
||||
],
|
||||
"final": "foreign",
|
||||
"strategy": "ipv4_only",
|
||||
"independent_cache": true,
|
||||
"reverse_mapping": false
|
||||
},
|
||||
"outbounds": [
|
||||
{
|
||||
"tag": "Server1",
|
||||
"type": "vless",
|
||||
"server": "xxx.xxx.xxx.xxx",
|
||||
"server_port": 8443,
|
||||
"uuid": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "xxxxxxxxxxxx",
|
||||
"insecure": false,
|
||||
"reality": {
|
||||
"enabled": true,
|
||||
"public_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
||||
"short_id": "xxxxxxxxxxxx"
|
||||
},
|
||||
"utls": {
|
||||
"enabled": true,
|
||||
"fingerprint": "firefox"
|
||||
}
|
||||
},
|
||||
"flow": "xtls-rprx-vision"
|
||||
},
|
||||
{
|
||||
"tag": "Server2",
|
||||
"type": "vless",
|
||||
"server": "xxx.xxx.xxx.xxx",
|
||||
"server_port": 8443,
|
||||
"uuid": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "xxxxxxxxxxxx",
|
||||
"insecure": false,
|
||||
"reality": {
|
||||
"enabled": true,
|
||||
"public_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
||||
"short_id": "xxxxxxxxxxxx"
|
||||
},
|
||||
"utls": {
|
||||
"enabled": true
|
||||
}
|
||||
},
|
||||
"flow": "xtls-rprx-vision"
|
||||
},
|
||||
{
|
||||
"tag": "GLOBAL",
|
||||
"type": "selector",
|
||||
"outbounds": [
|
||||
"Server1",
|
||||
"Server2",
|
||||
"direct"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "direct",
|
||||
"type": "direct"
|
||||
}
|
||||
],
|
||||
"route": {
|
||||
"rules": [
|
||||
{
|
||||
"inbound": "tun-in",
|
||||
"port": 53,
|
||||
"action": "hijack-dns"
|
||||
},
|
||||
{
|
||||
"inbound": "dns-in",
|
||||
"action": "hijack-dns"
|
||||
},
|
||||
{
|
||||
"ip_is_private": true,
|
||||
"outbound": "direct"
|
||||
},
|
||||
{
|
||||
"rule_set": "geosite-cn",
|
||||
"outbound": "direct"
|
||||
},
|
||||
{
|
||||
"rule_set": "geoip-cn",
|
||||
"outbound": "direct"
|
||||
},
|
||||
{
|
||||
"action": "sniff",
|
||||
"sniffer": [
|
||||
"http",
|
||||
"tls",
|
||||
"quic",
|
||||
"dns"
|
||||
]
|
||||
},
|
||||
{
|
||||
"outbound": "GLOBAL"
|
||||
}
|
||||
],
|
||||
"rule_set": [
|
||||
{
|
||||
"tag": "geosite-cn",
|
||||
"type": "remote",
|
||||
"format": "binary",
|
||||
"url": "https://gh-proxy.com/https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/cn.srs",
|
||||
"download_detour": "direct"
|
||||
},
|
||||
{
|
||||
"tag": "geoip-cn",
|
||||
"type": "remote",
|
||||
"format": "binary",
|
||||
"url": "https://cdn.jsdelivr.net/gh/Loyalsoldier/geoip@release/srs/cn.srs",
|
||||
"download_detour": "direct"
|
||||
}
|
||||
],
|
||||
"final": "GLOBAL",
|
||||
"auto_detect_interface": true,
|
||||
"default_domain_resolver": {
|
||||
"server": "public"
|
||||
}
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"tag": "dns-in",
|
||||
"type": "direct",
|
||||
"listen": "127.0.0.1",
|
||||
"listen_port": 1053
|
||||
},
|
||||
{
|
||||
"tag": "tun-in",
|
||||
"type": "tun",
|
||||
"interface_name": "stun",
|
||||
"address": [
|
||||
"172.19.0.1/30"
|
||||
],
|
||||
"mtu": 9000,
|
||||
"auto_route": true,
|
||||
"auto_redirect": true,
|
||||
"strict_route": false
|
||||
},
|
||||
{
|
||||
"type": "mixed",
|
||||
"listen": "127.0.0.1",
|
||||
"listen_port": 7890
|
||||
}
|
||||
],
|
||||
"experimental": {
|
||||
"cache_file": {
|
||||
"enabled": true,
|
||||
"path": "/var/lib/sing-box/cache.db",
|
||||
"store_fakeip": true
|
||||
},
|
||||
"clash_api": {
|
||||
"external_controller": "0.0.0.0:9191",
|
||||
"external_ui": "/var/lib/sing-box/ui",
|
||||
"external_ui_download_url": "https://gh-proxy.com/https://github.com/Zephyruso/zashboard/archive/refs/heads/gh-pages.zip",
|
||||
"external_ui_download_detour": "direct",
|
||||
"secret": "",
|
||||
"default_mode": "rule"
|
||||
}
|
||||
},
|
||||
"log": {
|
||||
"disabled": false,
|
||||
"level": "info",
|
||||
"timestamp": true
|
||||
}
|
||||
}
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user