联通小宝卡免流配合V2ray混淆实现免流并分享热点给笔记本 您所在的位置:网站首页 小火箭免流热点 联通小宝卡免流配合V2ray混淆实现免流并分享热点给笔记本

联通小宝卡免流配合V2ray混淆实现免流并分享热点给笔记本

2024-05-30 16:17| 来源: 网络整理| 查看: 265

通过搭建v2ray配置http伪装免流host,实现联通卡的免流,也可以进而分享热点给笔记本或者其他移动设备使用。

之前很久之前写了关于ssr免流大王卡的教程,此次通过v2ray也和上回差不多。本质相同,但是在稳定性上高于ssr。

测试免流的卡为阿里小宝卡,阿里系app均可免流。已测试异地联通也可免流,apn接入选择默认的3gnet就可以了。

 

找一台适合联网访问的服务器配置v2ray

1.下载v2ray

如果你的服务器没有unzip,可以通过 yum install -y unzip 或者 apt install -y unzip 安装。

mkdir /home/v2ray && cd /home/v2raywget https://github.com/v2ray/v2ray-core/releases/download/v4.21.3/v2ray-linux-64.zipunzip v2ray-linux-64.zip

 

2.配置v2ray

配置可以参考以下完全复制粘贴,其中的端口建议为80,除非你抓包对应的host有明确的其他端口,例如8080等。

客户端所用的ID 18a28d40-fb08-942f-a220-01a34c1d608d 也建议修改掉,也要符合uuid的格式规则。

注意,服务端的配置完全不需要额外配置免流的域名host或者其他header参数,如果你需要配置也没关系。

建议配置写入到:/etc/v2ray.json

通过 http 伪装 HOST 实现免流配置:

{"inbounds": [{"port": 80,"protocol": "vmess","settings": {"clients": [{"id": "18a28d40-fb08-942f-a220-01a34c1d608d","level": 1,"alterId": 64}]},"streamSettings": {"network": "tcp","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"}}}}}}],"outbounds": [{"protocol": "freedom","settings": {}},{"protocol": "blackhole","settings": {},"tag": "blocked"}],"routing": {"strategy": "rules","settings": {"rules": [{"type": "field","ip": ["geoip:private"],"outboundTag": "blocked"}]}}}

 

当然你也可以通过 Websocket 协议实现免流:

{"stats": {},"api": {"services": ["StatsService"],"tag": "api"},"routing": {"strategy": "rules","settings": {"rules": [{"inboundTag": ["api"],"type": "field","outboundTag": "api"}]}},"inbounds": [{"streamSettings": {"wsSettings": {"path": "/ray"},"network": "ws","kcpSettings": {"uplinkCapacity": 5,"downlinkCapacity": 20,"readBufferSize": 1,"mtu": 1350,"header": {"type": "none"},"tti": 20,"congestion": false,"writeBufferSize": 1},"tcpSettings": {"header": {"type": "none","response": {"status": "200","headers": {"Transfer-Encoding": ["chunked"],"Connection": ["keep-alive"],"Content-Type": ["application/octet-stream","application/x-msdownload","text/html","application/x-shockwave-flash"],"Pragma": "no-cache"},"reason": "OK","version": "1.1"}}}},"protocol": "vmess","port": "80","settings": {"clients": [{"alterId": 64,"level": 0,"email": "4","id": "18a28d40-fb08-942f-a220-01a34c1d608d"}]}},{"tag": "api","settings": {"address": "127.0.0.1"},"protocol": "dokodemo-door","port": 5001,"listen": "127.0.0.1"}],"policy": {"levels": {"0": {"statsUserUplink": true,"statsUserDownlink": true}},"system": {"statsInboundDownlink": true,"statsInboundUplink": true}},"outbounds": [{"protocol": "freedom","settings": {}},{"tag": "blocked","protocol": "blackhole","settings": {}}]}

 

3.配置计划任务

你也可以不用此方式,只是最近我发现系统有些服务总会莫名其妙的崩溃,建议加计划任务进行守护。

需要注意的是,如果你用如下的脚本,那必须保证这台服务器只能运行一个v2ray程序,否则会失效。

cat >/home/shell.sh &1 &fiEOF

通过 crontab -e 打开计划任务编辑器

在最后一行追加以下内容,以保证每分钟都会去检测服务是否存在,不存在则启动。

* * * * * bash /home/shell.sh

 

4.客户端连接

以下信息参考修改就可以,重点是 host 为你的可免流应用的 host ,我提供的是宝卡的虾米音乐免流。如果你是联通其他卡,可以测试将你的免流应用(定向免流) host 填入测试。

连接信息

IP: 你的服务器IPPORT: 80ID: 18a28d40-fb08-942f-a220-01a34c1d608dAlterID: 64安全性:None网络:tcp标头类型: httphost: m128.xiami.netpath: /

测试小歪卡免流 Host

v6-dy.ixigua.comv3-dy-x.ixigua.coma6-ipv6.pstatp.comv27-tt.ixigua.comdm.toutiao.com

微博免流 Host

m128.xiami.net

 

5.热点免流

很多人和我一样不只是用于手机免流,还要分享热点给其他PC或者移动设备使用,就需要额外设置一下。

如果热点分享的设备没有root,那么请先设置共享绑定地址为:0.0.0.0

在需要连接的设备连接wifi热点时,需要设置代理为你的分享热点手机的IP地址,端口为10809 (必须是http代理),IP地址可以在首次连接后的WIFI信息里找到。

如果你分享热点的手机已经 root 了,那么只需要额外下载一款 app(VPN Hotspot),并将流量导入 vpn(即v2ray),就可以让其他设备自动接入免流流量。

下载:VPN Hotspot

在已经开启了 v2ray 后,通过该软件共享链路(若提示root权限,请务必授予)。

成功之后,那么你应该可以通过你其他设备使用这个免流流量了。

注意:若连接后没有速度或者压根无法连接,可以去系统设置中打开开发者选项(关于手机中点击版本号 7 次),开启后进入开发者选项中,关闭网络共享硬件加速(Tethering hardware acceleration),然后重复上述步骤。

6.小宝卡测试免流结果



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有