fix: update DNS configuration and logging level in singbox.json
This commit is contained in:
@ -1,29 +1,25 @@
|
|||||||
{
|
{
|
||||||
"log": {
|
"log": {
|
||||||
"level": "info",
|
"level": "warn",
|
||||||
"timestamp": true
|
"timestamp": true
|
||||||
},
|
},
|
||||||
"dns": {
|
"dns": {
|
||||||
"servers": [
|
"servers": [
|
||||||
{
|
{
|
||||||
"tag": "proxyDns",
|
"tag": "proxyDns",
|
||||||
"address": "tls://8.8.8.8",
|
"address": "https://1.1.1.1/dns-query",
|
||||||
"detour": "Proxy"
|
"detour": "Proxy"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"tag": "localDns",
|
"tag": "localDns",
|
||||||
"address": "udp://8.8.8.8",
|
"address": "local",
|
||||||
"detour": "direct"
|
"detour": "direct"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"rules": [
|
"rules": [
|
||||||
{
|
|
||||||
"outbound": "any",
|
|
||||||
"server": "localDns"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"rule_set": "geosite-ir",
|
"rule_set": "geosite-ir",
|
||||||
"server": "proxyDns"
|
"server": "localDns"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"clash_mode": "direct",
|
"clash_mode": "direct",
|
||||||
@ -34,19 +30,20 @@
|
|||||||
"server": "proxyDns"
|
"server": "proxyDns"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"final": "localDns",
|
"final": "proxyDns",
|
||||||
"strategy": "ipv4_only"
|
"strategy": "prefer_ipv4"
|
||||||
},
|
},
|
||||||
"inbounds": [
|
"inbounds": [
|
||||||
{
|
{
|
||||||
"tag": "tun-in",
|
"tag": "tun-in",
|
||||||
"type": "tun",
|
"type": "tun",
|
||||||
"address": [
|
"address": [
|
||||||
"172.19.0.0/30"
|
"172.19.0.0/30",
|
||||||
|
"fdfe:dcba:9876::1/126"
|
||||||
],
|
],
|
||||||
"mtu": 9000,
|
"mtu": 9000,
|
||||||
"auto_route": true,
|
"auto_route": true,
|
||||||
"strict_route": true,
|
"strict_route": false,
|
||||||
"stack": "system",
|
"stack": "system",
|
||||||
"platform": {
|
"platform": {
|
||||||
"http_proxy": {
|
"http_proxy": {
|
||||||
@ -110,16 +107,7 @@
|
|||||||
"action": "sniff"
|
"action": "sniff"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "logical",
|
"protocol": "dns",
|
||||||
"mode": "or",
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"port": 53
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"protocol": "dns"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"action": "hijack-dns"
|
"action": "hijack-dns"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -169,4 +157,4 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user