我们知道SSR 和v2ray 都可以免流, V2ray免流漏点更少 .V2采用tcp 和 http伪装方案在header 中加入混淆免流的网址来让计费系统误以为是免流数据流量。
v2ray云免流脚本教程分为服务器端和客户端设置,需要有VPS主机服务器来实现V2ray服务器云免流。
V2ray 云免流的方案:VMess协议 + TCP + HTTP伪装
1、搭建V2ray 免流服务器
1.1 一键安装V2ray
一键安装v2ray支持 V2Ray 绝大多数传输协议,WebSocket + TLS,HTTP/2,Shadowsocks,动态端口,集成 BBR 和锐速优化等。
如果提示 curl: command not found ,那是因为你的 VPS 没装 Curl
ubuntu/debian 系统安装 Curl 方法: apt-get update -y && apt-get install curl -y
centos 系统安装 Curl 方法: yum update -y && yum install curl -y
来源:https://github.com/v2fly/fhs-install-v2
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)
一键脚本的相关命令:
- systemctl start v2ray
- systemctl stop v2ray
- systemctl restart v2ray
- systemctl enable v2ray # 开机启动并且崩溃时自动重启程序
- systemctl disable v2ray# 取消开机启动
- systemctl status v2ray#查看状态
配置文件在/usr/local/etc/v2ray/config.json
1.2、V 2ray 免流服务器端脚本配置如下:
把下面代码复制进config.json中,保存并上传到/usr/local/etc/v2ray/ ,然后输入命令systemctl restart v2ray重启v2ray
{ "log": { "loglevel": "warning" }, "inbound": { "protocol": "vmess", "port": 8080, "settings": { "clients": [{ "id": "ad806487-2d26-4636-98b6-ab85cc8521f7", "alterId": 64, "security": "chacha20-poly1305" }] }, "streamSettings": { "network": "tcp", "httpSettings": { "path": "/" }, "tcpSettings": { "header": { "type": "http", "response": { "version": "1.1", "status": "200", "reason": "OK", "headers": { "Content-Type": ["application/octet-stream", "application/x-msdownload", "text/html", "application/x-shockwave-flash"], "Transfer-Encoding": ["chunked"], "Connection": ["keep-alive"], "Pragma": "no-cache" } } } } } }, "inboundDetour": [], "outbound": { "protocol": "freedom", "settings": {} } }
IP6的VPS的配置
{ "log": { "loglevel": "warning" }, "inbound": { "protocol": "vmess", "port": 25565, "settings": { "clients": [{ "id": "ad806487-2d26-4636-98b6-ab85cc8521f7", "alterId": 64, "security": "chacha20-poly1305" }] }, "streamSettings": { "network": "tcp", "httpSettings": { "path": "/" }, "tcpSettings": { "header": { "type": "http", "response": { "version": "1.1", "status": "200", "reason": "OK", "headers": { "Content-Type": ["application/octet-stream", "application/x-msdownload", "text/html", "application/x-shockwave-flash"], "Transfer-Encoding": ["chunked"], "Connection": ["keep-alive"], "Pragma": "no-cache" } } } } } }, "inboundDetour": [], "outbounds": [ { "tag":"IP6-out", "protocol": "freedom", "settings": {} }, { "tag":"IP4-out", "protocol": "freedom", "settings": { "domainStrategy": "UseIPv4" } } ], "routing": { "rules": [ { "type": "field", "outboundTag": "IP4-out", "domain": [""] }, { "type": "field", "outboundTag": "IP6-out", "network": "udp,tcp" } ] } }
2.v2ray 免流客户端配置
注意路径是/
根据我测试,手机的User-Agent和免流的Host只需在客户端设置,服务端无需设置。
如果你用v2N 软件,那配置如下
地址:就是你服务器IP地址或域名
端口:目前免流端口一般是80/8080/443,其它未测试
用户ID:填写服务器配置文件里的UUID
额外ID:填写服务器配置文件里的alterId
加密方式:不确定我选择的是none
传输协议:选择tcp
伪装类型:选择http伪装域名/其他项: 填写你手机卡的免流域名(我的是电信卡,所以填写: ltevod.tv189.cn )
底层传输安全:选择空
3. 实战例子——免费BlueMix Docker容器创建v2ray免流。
BlueMix Docker容器的使用可参考 免费BlueMix Docker容器免流 这篇文章。
3.1 设置BlueMix Docker
我们采用gingko/v2ray 这个docker镜像,环境变量CONFIG_JSON的参数填写上面服务器配置(用户ID要改成你自己的)。按下图填写。
4. V2ray 客服端配置——以v2ray Android 安卓客户端 BifrostV 来做演示
4.1、移动、联通、电信混淆参数设置。和SSR免流原理相同,V2ray也需要配置混淆host,各地运营商免流网址不同。目前电信/移动/联通三家的互联网套餐都可以实现V2ray 免流(云免),包括电信阿里鱼卡,联通腾讯王卡、蚂蚁宝卡、京东强卡、百度圣卡、网易白金卡、移动百度卡、芒果卡、天神卡等等,无需root,安卓、iOS通用免流方法。
三大运营商通常免流host( v2ray免流头填写):
- v2免流移动混淆host:rd.go.10086.cn
- v2免流联通混淆host:10001.cn
- v2免流电信混淆host:ltevod.189.cn
4.2 免流安卓客户端
推荐BifrostV ,一个基于 V2内核的 Android 应用,它支持 VMess、Shadowsocks、Socks 协议。它和SSR界面类似,简单易用,应用耗电量低。
以下图片以电信v2免流为例,注意中间图片的host配置
按下图配置(可点击放大图片):
经过以上配置即可实现安卓手机 V2ray云免流了。 或许你会问V2ray免流效果怎样? 少许漏点,大概漏掉5%左右,因为v2支持udp免流。
如果是IOS苹果手机系统,可以使用 Kitsunebi ,Kitsunebi 是一个基于 V2核心的 iOS 应用。Kitsunebi 支持导入和导出与 V2兼容的 JSON 免流配置。
5、v2免流开热点
SSR免流可以通过注射器APP来开热点,那么V2ray免流可以开热点WIFI吗?理论上是可行的,如果是安卓手机root后安装注射器APP,然后开WIFI。
6、 V2ray路由器免流
V2ray路由免流的原理和安卓手机端相同,使用路由器将数据加上http伪装的混淆host后,再发送给云服务器端。
拿openwrt搭建v2免流举例。安装V2ray后路由器配置如下:
{ "log": { "error": "/tmp/syslog.log", "loglevel": "warning" }, "inbound": { "port": 1088, "listen": "192.168.123.1", "protocol": "socks", "settings": { "auth": "noauth", "udp": true, "ip": "192.168.123.1" } }, "inboundDetour": [ { "port": "1099", "listen": "0.0.0.0", "protocol": "dokodemo-door", "settings": { "network": "tcp,udp", "timeout": 30, "followRedirect": true } } ], "outbound": { "protocol": "vmess", "settings": { "vnext": [ { "address": "填你的服务器ip", "port": 填你的端口, "users": [ { "id": "填你的uuid", "alterId": 填你的alterid } ] } ] }, "streamSettings": { "network": "tcp", "tcpSettings": { "connectionReuse": true, "header": { "type": "http", "request": { "version": "1.1", "method": "GET", "path": ["/"], "headers": { "Host": ["你的免流host"], "User-Agent": [ "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36", "Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/53.0.2785.109 Mobile/14A456 Safari/601.1.46" ], "Accept-Encoding": ["gzip, deflate"], "Connection": ["keep-alive"], "Pragma": "no-cache" } }, "response": { "version": "1.1", "status": "200", "reason": "OK", "headers": { "Content-Type": ["application/octet-stream", "application/x-msdownload", "text/html", "application/x-shockwave-flash"], "Transfer-Encoding": ["chunked"], "Connection": ["keep-alive"], "Pragma": "no-cache" } } } } } }, "outboundDetour": [ { "protocol": "freedom", "settings": {}, "tag": "direct" } ], "dns": { "servers": [ "8.8.8.8", "8.8.4.4", "localhost" ] }, "routing": { "strategy": "rules", "settings": { "domainStrategy": "IPIfNonMatch", "rules": [] } } }
下面分享一些混淆参数 自己套餐有哪些定向流量可以把参数改成对应的混淆
通用免流混淆参数 A
QQ 音乐混淆参数:dl.stream.qqmusic.com
梦想 e 卡混淆参数:imhdfs.icbc.com.cn
梦想 e 卡混淆参数:v.icbc.com.cn
爱奇艺混淆参数:data.video.qiyi.com
优酷混淆参数:vali-dns.cp31.ott.cibntv.net
高德地图混淆参数:mps.amap.com
央视影音混淆参数:asp.cntv.myalicdn.com
百度贴吧混淆参数:static.tieba.baidu.com
微信混淆参数:short.weixin.qq.com
虾米音乐混淆参数:pic.xiami.net
天翼视讯混淆参数:vod3.nty.tv189.cn
钉钉混淆参数:tms.dingtalk.com
微博混淆参数:tobe.vip.weibo.com
微博混淆参数:new.vip.weibo.cn
微博混淆参数:simg.s.weibo.com
优酷混淆参数:push.m.youku.com
优酷混淆参数:api.mobile.youku.com
书旗混淆参数:spend1.shuqireader.com
书旗混淆参数:c1.shuqireader.com
优酷混淆参数:www.youku.com
通用免流混淆参数 B
优酷:vali-dns.cp31.ott.cibntv.net
爱看 4G:ltevod.tv189.cn
沃音乐:woif.10155.com
微信:szminorshort.weixin.qq.com
淘宝:adashbc.m.taobao.com
央视影音:asp.cntv.myalicdn.com
抖音:dm.toutiao.com
百度:tbcdn.hiphotos.baidu.com
爱奇艺:data.video.qiyi.com
美团:apimeishi.meituan.com
高德地图:mps.amap.com
电信广东停机卡 [http://gd.189.cn/TS/recharge/tzUrl.html](http://gd.189.cn/TS/recharge/tzUrl.html)
电信全国停机卡 a.189.cn
微信绿通 open.weixin.qq.com
抖音头条 dm.toutiao.com
美图 hreport.meituan.com
若未标明,均为原创,转载请附上文章链接:https://jiemahao.com/v2ray-crack-mobile-traffic/