求一份在设置中选中启用本地DNS和启用虚拟DNS,以及域名策略选Asis,预定义规则选择绕过局域网及大陆地址而后代理这样的条件下的源码配置文件 #3228
summer9888
started this conversation in
General
Replies: 2 comments
-
有高手知道如何配置么 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
求助各位大神,最近在做将NG内置到我的APP中,希望能按照启用本地DNS和启用虚拟DNS,以及域名策略选Asis,预定义规则选择绕过局域网及大陆地址而后代理这样的规则将配置文件固定下来,不需要用户再去选择了。
我尝试使用了V2rayN的配置
"dns": {
"hosts": {
"dns.google": "8.8.8.8",
"proxy.example.com": "127.0.0.1"
},
"servers": [
{
"address": "223.5.5.5",
"domains": [
"geosite:cn",
"geosite:geolocation-cn"
],
"expectIPs": [
"geoip:cn"
]
},
"1.1.1.1",
"8.8.8.8",
"https://dns.google/dns-query"
]
},
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"inboundTag": [
"api"
],
"outboundTag": "api"
},
{
"type": "field",
"outboundTag": "block",
"domain": [
"geosite:category-ads-all"
]
},
{
"type": "field",
"outboundTag": "direct",
"domain": [
"geosite:cn",
"geosite:geolocation-cn"
]
},
{
"type": "field",
"outboundTag": "direct",
"domain": [
"leshare.top"
]
},
{
"type": "field",
"outboundTag": "direct",
"ip": [
"geoip:private",
"geoip:cn"
]
},
{
"type": "field",
"port": "0-65535",
"outboundTag": "proxy"
}
]
}
打包后在安卓上运行,不能使用代理上网。因此推断v2rayng和v2raN的配置文件一定不同才导致不能上网的,
现向各位大神求助一份正确的配置文件,条件是:启用本地DNS和启用虚拟DNS,以及域名策略选Asis,预定义规则选择绕过局域网及大陆地址而后代理,谢谢
Beta Was this translation helpful? Give feedback.
All reactions