关于 Linux 端 V2rayN 无法默认分流 Xray 出站 WARP 流量
问题
3xui面板添加出站WARP,路由规则精准匹配入站和域名,完美解决CF屏蔽IP无法访问的问题。然而,经过测试,linux桌面端必须开v2rayn的tun全局模式,才可以。而手机端默认是VPN模式,但是手机端可以分应用代理。所以通过自定义linux桌面端的DNS可以解决这个问题。
|
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 |
{ "hosts": { "dns.google": "8.8.8.8", "proxy.example.com": "127.0.0.1" }, "servers": [ { "address": "1.1.1.1", "skipFallback": true, "domains": [ "cloudflare.com", "cloudflare.net", "workers.dev", "grok.com", "pages.dev", "ip.sb" ] }, { "address": "1.1.1.1", "skipFallback": true, "domains": [ "domain:googleapis.cn", "domain:gstatic.com" ] }, { "address": "223.5.5.5", "skipFallback": true, "domains": [ "geosite:cn" ], "expectIPs": [ "geoip:cn" ] }, "1.1.1.1", "8.8.8.8", "https://dns.google/dns-query" ] } |
THE END