mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-09-15 04:44:47 +08:00
179 lines
3.4 KiB
JSON
179 lines
3.4 KiB
JSON
{
|
|
"log": {
|
|
"disabled": false,
|
|
"level": "warn",
|
|
"output": "__TEST_ROOT__/var/run/homeproxy/sing-box-c.log",
|
|
"timestamp": true
|
|
},
|
|
"ntp": {
|
|
"enabled": true,
|
|
"server": "time.apple.com",
|
|
"detour": "direct-out",
|
|
"domain_resolver": "default-dns"
|
|
},
|
|
"dns": {
|
|
"servers": [
|
|
{
|
|
"tag": "default-dns",
|
|
"type": "udp",
|
|
"server": "223.5.5.5",
|
|
"detour": "direct-out"
|
|
},
|
|
{
|
|
"tag": "system-dns",
|
|
"type": "local",
|
|
"detour": "direct-out"
|
|
},
|
|
{
|
|
"tag": "main-dns",
|
|
"domain_resolver": {
|
|
"server": "default-dns",
|
|
"strategy": "ipv4_only"
|
|
},
|
|
"detour": "main-out",
|
|
"type": "tcp",
|
|
"server": "223.5.5.5"
|
|
},
|
|
{
|
|
"tag": "china-dns",
|
|
"domain_resolver": {
|
|
"server": "default-dns",
|
|
"strategy": "prefer_ipv6"
|
|
},
|
|
"detour": "direct-out",
|
|
"type": "udp",
|
|
"server": "223.5.5.5"
|
|
}
|
|
],
|
|
"rules": [
|
|
{
|
|
"rule_set": "geosite-cn",
|
|
"action": "route",
|
|
"server": "china-dns",
|
|
"strategy": "prefer_ipv6"
|
|
},
|
|
{
|
|
"type": "logical",
|
|
"mode": "and",
|
|
"rules": [
|
|
{
|
|
"rule_set": "geosite-noncn",
|
|
"invert": true
|
|
},
|
|
{
|
|
"rule_set": "geoip-cn"
|
|
}
|
|
],
|
|
"action": "route",
|
|
"server": "china-dns",
|
|
"strategy": "prefer_ipv6"
|
|
}
|
|
],
|
|
"strategy": "ipv4_only",
|
|
"final": "main-dns"
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"type": "direct",
|
|
"tag": "dns-in",
|
|
"listen": "::",
|
|
"listen_port": 5333
|
|
},
|
|
{
|
|
"type": "mixed",
|
|
"tag": "mixed-in",
|
|
"listen": "::",
|
|
"listen_port": 5330,
|
|
"sniff": true,
|
|
"sniff_override_destination": true,
|
|
"set_system_proxy": false
|
|
},
|
|
{
|
|
"type": "redirect",
|
|
"tag": "redirect-in",
|
|
"listen": "::",
|
|
"listen_port": 5331,
|
|
"sniff": true,
|
|
"sniff_override_destination": true
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"type": "direct",
|
|
"tag": "direct-out",
|
|
"routing_mark": 100
|
|
},
|
|
{
|
|
"type": "block",
|
|
"tag": "block-out"
|
|
},
|
|
{
|
|
"type": "shadowtls",
|
|
"tag": "main-out-shadowtls",
|
|
"routing_mark": 100,
|
|
"server": "shadowtls.example",
|
|
"server_port": 443,
|
|
"version": 3,
|
|
"password": "shadowtls-password",
|
|
"tls": {
|
|
"enabled": true,
|
|
"server_name": "www.apple.com"
|
|
}
|
|
},
|
|
{
|
|
"type": "shadowsocks",
|
|
"tag": "main-out",
|
|
"routing_mark": 100,
|
|
"server": "ss-shadowtls.example",
|
|
"server_port": 8388,
|
|
"password": "ss-password",
|
|
"method": "2022-blake3-aes-128-gcm",
|
|
"detour": "main-out-shadowtls"
|
|
}
|
|
],
|
|
"route": {
|
|
"rules": [
|
|
{
|
|
"inbound": "dns-in",
|
|
"action": "hijack-dns"
|
|
}
|
|
],
|
|
"rule_set": [
|
|
{
|
|
"type": "remote",
|
|
"tag": "geoip-cn",
|
|
"format": "binary",
|
|
"url": "https://fastly.jsdelivr.net/gh/1715173329/IPCIDR-CHINA@rule-set/cn.srs",
|
|
"download_detour": "main-out"
|
|
},
|
|
{
|
|
"type": "remote",
|
|
"tag": "geosite-cn",
|
|
"format": "binary",
|
|
"url": "https://fastly.jsdelivr.net/gh/1715173329/sing-geosite@rule-set-unstable/geosite-geolocation-cn.srs",
|
|
"download_detour": "main-out"
|
|
},
|
|
{
|
|
"type": "remote",
|
|
"tag": "geosite-noncn",
|
|
"format": "binary",
|
|
"url": "https://fastly.jsdelivr.net/gh/1715173329/sing-geosite@rule-set-unstable/geosite-geolocation-!cn.srs",
|
|
"download_detour": "main-out"
|
|
}
|
|
],
|
|
"auto_detect_interface": true,
|
|
"default_domain_resolver": {
|
|
"action": "route",
|
|
"server": "china-dns",
|
|
"strategy": "prefer_ipv4"
|
|
},
|
|
"final": "main-out"
|
|
},
|
|
"experimental": {
|
|
"cache_file": {
|
|
"enabled": true,
|
|
"path": "__TEST_ROOT__/var/run/homeproxy/cache.db"
|
|
}
|
|
}
|
|
}
|