-
Notifications
You must be signed in to change notification settings - Fork 104
/
v2rayNG_custom_remote_dns.json
121 lines (121 loc) · 3.18 KB
/
v2rayNG_custom_remote_dns.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"log": {
"loglevel": "warning"
},
"dns": {
"hosts": {
"geosite:category-ads-all": "127.0.0.1"
},
"servers": [
"https://1.1.1.1/dns-query"
],
"queryStrategy": "UseIPv4"
},
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"inboundTag": [
"dns-in"
],
"outboundTag": "dns-out"
},
{
"port": "853",
"network": "tcp",
"outboundTag": "block"
},
{
"port": "443,853",
"network": "udp",
"outboundTag": "block"
},
{
"ip": [
"1.1.1.1"
],
"outboundTag": "proxy"
},
{
"domain": [
"geosite:category-ads-all"
],
"outboundTag": "block"
},
{
"type": "field",
"domain": [
"geosite:geolocation-!cn"
],
"ip": [
"geoip:!cn"
],
"outboundTag": "proxy"
},
{
"ip": [
"geoip:cn",
"geoip:private"
],
"outboundTag": "direct"
}
]
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 10808,
"protocol": "socks",
"settings": {
"udp": true
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
],
"routeOnly": true
}
},
{
"listen": "127.0.0.1",
"port": 10853,
"protocol": "dokodemo-door",
"settings": {
"address": "1.1.1.1",
"port": 53,
"network": "udp"
},
"tag": "dns-in"
}
],
"outbounds": [
{
// 粘贴你的客户端配置,需要保留 "tag": "proxy"
"tag": "proxy"
},
{
"protocol": "freedom",
"settings": {
"domainStrategy": "ForceIPv4"
},
"tag": "direct"
},
{
"protocol": "blackhole",
"tag": "block"
},
{
"protocol": "dns",
"settings": {
"nonIPQuery": "drop" // 若不写此字段,将使用默认值 "drop",阻止非 A 和 AAAA 记录查询,若设置为 "skip",则允许非 A 和 AAAA 记录查询
},
"proxySettings": {
"tag": "proxy" // 当 "nonIPQuery" 设置为 "skip" 时,若不写此字段,将使用本地网络出站;若设置此字段,将使用对应 "tag" 出站,目的地址对应 "dns-in" 中的 "settings" 字段的内容
},
"tag": "dns-out"
}
]
}