Magisk-Modules-Repo / v2ray

v2ray core
336 stars 86 forks source link

修改为全局模式(配合电信停机卡免流使用!) #95

Open chengmeiqq opened 3 years ago

chengmeiqq commented 3 years ago

如果可以全局代理的话,可以实现免流卡使用!!

chengmeiqq commented 3 years ago

开机可以自动全局代理(可实现免流卡使用) 广东电信测试可以用!!!!!!! 可以加电报群下载:https://t.me/@ys1116 流量领取:http://v2.ys9898.xyz/ QQ群:1:517361488 2:797020395已满 也可以到这个位置下载到本地安装! https://cloud.189.cn/t/ia2mEb2yQfEj (访问码:0i1m) 非常感谢 @锄禾 大佬的指导!!

第一步:下载 v2Ray-v4.41.1 面具本地安装好! 第二步:修改/data/v2ray/config.json 加入你自己的服务器!或者 免流服务器都行! 第三步:修改代理模式/data/v2ray/config/routing.json(改成全局模式)

修改routing.json 为线下面内容:(修改之后一定要重启下手机!)

//这是全局代理,开启全局局域网共享端口应该用不了

{ "routing": { "domainStrategy": "IPIfNonMatch", "rules":[ ] } }

//这是路由绕行代理,默认绕行。 / { "routing": { "domainStrategy": "IPIfNonMatch", "rules":[ { "type": "field", "outboundTag": "dns-out", "inboundTag": [ "socks-in", "http-in", "dns-in" ], "network": "tcp,udp" }, { "type": "field", "outboundTag": "direct", "protocol": ["bittorrent"] }, { "type": "field", "outboundTag": "block", "domain": [ "geosite:category-ads-all" ] }, { "type": "field", "outboundTag": "proxy", "domain": [ "geosite:geolocation-!cn", "geosite:speedtest" ] }, { "type": "field", "outboundTag": "direct", "domain": [ "geosite:cn" ] }, { "type": "field", "outboundTag": "direct", "ip": [ "223.5.5.5/32", "119.29.29.29/32", "180.76.76.76/32", "114.114.114.114/32" ] }, { "type": "field", "outboundTag": "proxy", "ip": [ "1.1.1.1/32", "1.0.0.1/32", "8.8.8.8/32", "8.8.4.4/32" ] }, { "type": "field", "outboundTag": "direct", "ip": [ "geoip:cn", "geoip:private" ] } ] } } /

gdzhujun commented 2 years ago

改了用正常卡可以 换停机就不行 我怀疑是dns的问题 请问配置文件里要设置dns吗

GusRoth commented 2 years ago

改了用正常卡可以 换停机就不行 我怀疑是dns的问题 请问配置文件里要设置dns吗

请问您解决这个问题了吗