mirror of https://gitlab.com/fscarmen/test.git
parent
df05b96b0e
commit
242dc6153d
@ -1,105 +1,185 @@ |
||||
# 【ArgoX】 = Argo + Xray |
||||
# 【刷 WARP IP】 - 为 WARP 解锁流媒体而生 |
||||
Born to make stream media unlock by WARP |
||||
|
||||
* * * |
||||
|
||||
# 目录 |
||||
|
||||
- [更新信息](README.md#更新信息) |
||||
- [项目特点](README.md#项目特点) |
||||
- [ArgoX for VPS 运行脚本](README.md#argox-for-vps-运行脚本) |
||||
- [Argo Json 的获取](README.md#argo-json-的获取) |
||||
- [Argo Token 的获取](README.md#argo-token-的获取) |
||||
- [各种场景下 xray outbound 和 routing 模板的说明](README.md#各种场景下-xray-outbound-和-routing-模板的说明) |
||||
- [免责声明](README.md#免责声明) |
||||
- [更新信息和 TODO](README.md#更新信息和-todo) |
||||
- [脚本特点(附 5 种模式对比)](README.md#脚本特点) |
||||
- [VPS 运行脚本(附 TG bot 创建方法)](README.md#VPS-运行脚本) |
||||
- [Docker 自动解锁方案](README.md#Docker-自动解锁方案) |
||||
- [鸣谢](README.md#鸣谢下列作者的文章和项目) |
||||
|
||||
* * * |
||||
## 更新信息 |
||||
2023.6.23 For better network traffic diversion in various scenarios, split `config.json` into `inbound.json` and `outbound.json`; 为了更好的在各种情景下分流,把 `config.json` 拆分为 `inbound.json` 和 `outbound.json` |
||||
|
||||
2023.4.13 1.0 正式版 |
||||
## 更新信息和 TODO |
||||
2023.6.26 1.11 1. Warp-go uses the official api to register and cancel accounts; 2. Client proxy mode dual-stack supports changing IP; 3. Client warp mode dual-stack supports changing IP 1. warp-go 使用官方 api 注册和注销账户; 2. Client proxy 模式双栈支持更换 IP; 3. Client warp 模式双栈支持更换 IP |
||||
|
||||
<details> |
||||
<summary>历史更新 history(点击即可展开或收起)</summary> |
||||
<br> |
||||
|
||||
>2023.3.11 beta6 1. Users can easily obtain the JSON of a fixed domain name tunnel through the accompanying function website at https://fscarmen.cloudflare.now.cc ; 2. Change the sensitive path names; 3. Add CDN for download; 1. 用户可以通过配套的功能网轻松获取固定域名隧道的 json, https://fscarmen.cloudflare.now.cc; 2. 改掉敏感路径名; 3. 下载增加 CDN |
||||
>2023.3.26 1.10 Upgrade the Netflix unlocking section; 升级解锁奈飞的部分 |
||||
> |
||||
>2023.3.4 beta5 1. Change listening to all network addresses to only Argo tunnel directed listening for added security; 2. Argo Tunnel supports dualstack; 1. 把对所有的网络地址监听改为只对 Argo 隧道作定向监听,以增加安全性; 2. Argo 隧道支持双栈 |
||||
>2022.9.16 1.09 Support change IP for warp-go mode; 支持 warp-go 模式下更换 IP |
||||
> |
||||
>2023.3.2 beta4 Change listening to all network addresses to only Argo tunnel directed listening for added security; 把对所有的网络地址监听改为只对 Argo 隧道作定向监听,以增加安全性 |
||||
>2022.4.9 1.08 Support change IP for Client WARP mode; 支持 Client WRAP 模式下更换 IP |
||||
> |
||||
>2023.2.24 beta3 1. Simplify the operation of changing argo tunnel; 2. Use wget global instead of cURL; 1. 简化转换 Argo 隧道的方法; 2. 全局用 wget 替代 cURL |
||||
>2022.4.2 1.07 1. Support change IP for WireProxy; 2. Add Misaka one-key warp. 1. 支持 WireProxy 更换 IP; 2. 新增 Misaka WARP 一键脚本 |
||||
> |
||||
>2023.2.17 beta2 1. extremely fast installation mode, [-f] followed by a parameter file path; 2. Support for switching between the three argo tunnels; 3. Synchronise Argo and Xray to the latest version at any time; 4. Optimize the code to achieve speedup. |
||||
>1.极速安装模式,[-f] 后带参数文件路径;2.安装后,支持三种argo隧道随意切换;3.随时同步Argo 和 Xray到最新版本;4.优化代码,达到提速的目的。 |
||||
</details> |
||||
|
||||
2023.2.16 beta1 Argo + Xray for vps |
||||
|
||||
|
||||
## 项目特点: |
||||
|
||||
* 在 VPS 中部署 Xray,采用的方案为 Argo + Xray + WebSocket + TLS; |
||||
* 正常用 CF 是访问机房回源,Argo 则是每次创建两个反向链接到两个就近机房,然后回源是通过源服务器就近机房回源,其中用户访问机房到源服务器连接的就近机房之间是CF自己的黑盒线路; |
||||
* 使用 CloudFlare 的 Argo 隧道,使用TLS加密通信,可以将应用程序流量安全地传输到Cloudflare网络,提高了应用程序的安全性和可靠性。此外,Argo Tunnel也可以防止IP泄露和DDoS攻击等网络威胁; |
||||
* Argo 是内网穿透的隧道,既 Xray 的 inbound 不对外暴露端口增加安全性,也不用做伪装网浪费资源,还支持 Cloudflare 的全部端口,不会死守443被封,同时服务端输出 Argo Ws 数据流,大大简化数据处理流程,提高响应,tls 由 cf 提供,避免多重 tls; |
||||
* Argo 隧道既支持临时隧道,又支持通过 Token 或者 cloudflared Cli 方式申请的固定域名,直接优选 + 隧道,不需要申请域名证书,并可以在安装后随时转换; |
||||
* 回落分流,同时支持 Xray 4 种主流协议: vless / vmess / trojan / shadowsocks + WSS (ws + tls); |
||||
* vmess 和 vless 的 uuid,trojan 和 shadowsocks 的 password,各协议的 ws 路径既可以自定义,又或者使用默认值; |
||||
* 节点信息以 V2rayN / Clash / 小火箭 链接方式输出; |
||||
* 极速安装,即可交互式安装,也可像 docker compose 一样的非交互式安装,提前把所有的参数放到一个配置文件,全程不到5秒。 |
||||
|
||||
>2022.2.23 1.06 1. Add two modes to unlock: systemd service and pm2 daemon; 1. 增加两个解锁模式: systemd 服务和 pm2 进程守护 |
||||
> |
||||
>2022.2.20 AC 交叉编译(cross-compilation)上传镜像,支持 AMD64、 ARM64 和 s390x |
||||
> |
||||
>2022.2.15 Happy Lantern Festival. Bring you a new experience of docker unlock, another way to unlock Netflix. Project based on alpine. Content wgcf and unblocking Netflix scripts. Change unlock warp ip automatically. Provide a socks5 proxy for the host. Thanks Oreo ,Coia Prant and Brother Big B |
||||
>元宵节快乐。为大家带来个 docker 解锁的全新体验,换个姿势解锁 Netflix。项目以 alpine 为基础系统,内含 wgcf 和解锁 Netflix 脚本,自动切换解锁 WARP IP,为宿主机提供 socks5 代理,感谢 "猫佬"、"Coia Prant"和"大B哥" |
||||
> |
||||
>2022.2.2 1.05 1. Support switch unlock modes and stream media freely; 2. Remove ASN information. Add icon in TG push; 3. Limit the log to 1000 lines; 1. 轻松地切换解锁模式和流媒体平台; 2. 去掉日志里的线路供应商信息,在 TG push 里加入icon; 3. 限制日志在1000行 |
||||
> |
||||
>2022.1.31 1.04 1. Support push the logs to Telegram. 1. 日志结果输出到 Telegram. |
||||
> |
||||
>2022.1.30 1.03 1. Suppport pass parameter. You can run like this:```bash <(curl -sSL https://raw.githubusercontent.com/fscarmen/warp_unlock/main/unlock.sh) -E -A us -4 -N nd -M 2```; 2. Improve log details |
||||
>1. 支持传参,你可以这样运行脚本: ```bash <(curl -sSL https://raw.githubusercontent.com/fscarmen/warp_unlock/main/unlock.sh) -E -A us -4 -N nd -M 2```; 2. 日志显示更详细 |
||||
|
||||
## ArgoX for VPS 运行脚本: |
||||
2022.1.29 1.02 1. Support Disney+ 1. 支持 Disney+ |
||||
|
||||
2022.1.28 1.01 1. Add two ways to unlock; 2. Add running logs file 1. 增加两种解锁方式; 2. 加入运行日志 |
||||
``` |
||||
bash <(wget -qO- https://raw.githubusercontent.com/fscarmen/argox/main/argox.sh) |
||||
2022-01-31 21:27:35. IP: 8.37.43.216 Country: Japan Script runs. |
||||
2022-01-31 21:27:35. IP: 8.37.43.216 Country: Japan Netflix: No. |
||||
2022-01-31 21:27:56. IP: 8.37.43.188 Country: Japan Netflix: No. |
||||
2022-01-31 21:28:15. IP: 8.37.43.192 Country: Japan Netflix: No. |
||||
2022-01-31 21:28:38. IP: 8.37.43.229 Country: Japan Netflix: Yes. |
||||
2022-01-31 22:28:40. IP: 8.37.43.229 Country: Japan Script runs. |
||||
2022-01-31 22:28:42. IP: 8.37.43.229 Country: Japan Netflix: Yes. |
||||
``` |
||||
|
||||
| Option 参数 | Remark 备注 | |
||||
| -----------| ------ | |
||||
| -c | Chinese 中文 | |
||||
| -e | English 英文 | |
||||
| -f | Variable file,refer to REPO file "config" 参数文件,可参数项目的文件 config | |
||||
| -u | Uninstall 卸载 | |
||||
| -e | Export Node list 显示节点信息 | |
||||
| -v | Sync Argo Xray to the newest 同步 Argo Xray 到最新版本 | |
||||
|
||||
beta 2022.1.26 Media unlock daemon. Check it every 5 minutes. If unlocked, the scheduled task exits immediately. If it is not unlocked, it will be swiped successfully in the background. Advantages: Minimized use of system resources. ~Disadvantage: Can't see the results as intuitively as screen~ |
||||
|
||||
## Argo Json 的获取 |
||||
## 脚本特点 |
||||
* 支持多种主流串流影视检测,可以单选或多选 |
||||
* 支持 WARP Socks5 Proxy 检测和更换 IP |
||||
* 日志输出 |
||||
* 多种方式解锁: 1.crontab 每 5 分钟检测一次状态; 2. screen 后台运行; 3. nohup & 后台运行; 4. systemd service 进程守护; 5. pm2 daemon 进程守护 |
||||
|
||||
用户可以通过 Cloudflare Json 生成网轻松获取: https://fscarmen.cloudflare.now.cc |
||||
| Mode<br>模式 | Dependencies<br>依赖 | Resident Process<br>常驻进程 | Maximum detection interval time<br>最大检测间隔时长 | recommendation<br>推荐度 | |
||||
| ------- | ------- | ------- | ------- | ------- | |
||||
| 1 crontab |❌| ❌| 5 min | ⭐⭐⭐⭐⭐ | |
||||
| 2 systemd |❌| ✅ | 60 min | ⭐⭐⭐⭐ | |
||||
| 3 nohup |❌| ✅ | 60 min | ⭐⭐⭐⭐ | |
||||
| 4 screen | screen | ✅ | 60 min | ⭐⭐⭐ | |
||||
| 5 pm2| node npm pm2 | ✅ | 60 min | ⭐⭐ | |
||||
|
||||
<img src="https://user-images.githubusercontent.com/62703343/155870006-ce235b59-fee7-4f45-a9b7-9af3ede8420f.png" width="70%" /> |
||||
|
||||
 |
||||
<img src="https://user-images.githubusercontent.com/62703343/155870126-97aaea72-d714-4d1d-80c6-f9864d0246a6.png" width="60%" /> |
||||
|
||||
如想手动,可以参考,以 Debian 为例,需要用到的命令,[Deron Cheng - CloudFlare Argo Tunnel 试用](https://zhengweidong.com/try-cloudflare-argo-tunnel) |
||||
## VPS 运行脚本 |
||||
|
||||
### 1.菜单方式 (menu) |
||||
``` |
||||
bash <(curl -sSL https://raw.githubusercontent.com/fscarmen/warp_unlock/main/unlock.sh) |
||||
``` |
||||
### 2.带参数 (pass parameter) |
||||
| paremeter 参数 | value 值 | describe 具体动作说明 | |
||||
| ----------|------- | --------------- | |
||||
| -E | | English 英文 | |
||||
| -C | | Chinese 中文 | |
||||
| -U | | Uninstall 卸载 | |
||||
| -M | 1 | Mode 1: detect every 5 minute 每5分钟检测 | |
||||
| -M | 2 | Mode 2: run by systemd 以 systemd 方式运行 | |
||||
| -M | 3 | Mode 3: run by nohup & 以 hup & 方式运行 | |
||||
| -M | 4 | Mode 4: run by screen 以 screen 方式运行 | |
||||
| -M | 5 | Mode 5: run by pm2 daemon 以 pm2 进程守护方式运行 | |
||||
| -A | ** | region abbreviation,such as us. 地区简码,如 us | |
||||
| -N | n | Unlock Neflix 解锁奈飞 | |
||||
| -N | d | Unlock Disney+ 解锁迪士尼 | |
||||
| -N | ud | Unlock Neflix and Disney+ 解锁奈飞和迪士尼 | |
||||
| -T | Token@ID@Name | Receive messages Bot 接收信息的 TG bot 信息 | |
||||
|
||||
For example 1: Language is Chinese. Unlock area is Singapore. Brush WARP IPv4. Unlock Netflix and detect every 5 minute when successed. Receive message to |
||||
举例1: 用中文,解锁新加坡奈飞,当成功的时候每5分钟检测一次, |
||||
``` |
||||
bash <(curl -sSL https://raw.githubusercontent.com/fscarmen/warp_unlock/main/unlock.sh) -C -A sg -4 -N n -M 1 -T 1730133Uu5:AAF33T7sWPB8cGu31-QoaUkjdkjzeRo1_m8@1254502669@unlock |
||||
``` |
||||
For example 2: Display and uninstall in English |
||||
举例2: 用英文卸载 |
||||
``` |
||||
bash <(curl -sSL https://raw.githubusercontent.com/fscarmen/warp_unlock/main/unlock.sh) -E -U |
||||
``` |
||||
|
||||
## Argo Token 的获取 |
||||
### TG bot 创建方法 |
||||
转自 北纬37度的大飛 [如何申请Telegram机器人 | 推送通知](https://w37fhy.cn/2364.html) |
||||
|
||||
详细教程: [群晖套件:Cloudflare Tunnel 内网穿透中文教程 支持DSM6、7](https://imnks.com/5984.html) |
||||
## Docker 自动解锁方案 |
||||
|
||||
<img width="1409" alt="image" src="https://user-images.githubusercontent.com/92626977/218253461-c079cddd-3f4c-4278-a109-95229f1eb299.png"> |
||||
* 支持 AMD64 和 ARM64 机器 |
||||
* Docker 以 alpine 为底包,内置 WGCF |
||||
* 每 5 分钟检测一次状态,TG 通知输出 |
||||
* 容器内 gost 为宿主机提供 socks5 或者 http 服务,端口为 40000,可以在xray/v2ray 配置文件里作相应设置 |
||||
|
||||
<img width="1619" alt="image" src="https://user-images.githubusercontent.com/92626977/218253838-aa73b63d-1e8a-430e-b601-0b88730d03b0.png"> |
||||
``` |
||||
bash <(curl -sSL https://raw.githubusercontent.com/fscarmen/warp_unlock/main/docker.sh) |
||||
``` |
||||
|
||||
<img width="1155" alt="image" src="https://user-images.githubusercontent.com/92626977/218253971-60f11bbf-9de9-4082-9e46-12cd2aad79a1.png"> |
||||
先安装 Docker, 其 IP 为 172.17.0.2 ,获取```docker exec -it wgcf ip route get 172.17.0.1 | grep -oP 'src \K\S+'``` |
||||
并安装 [mack-a 八合一脚本](https://github.com/mack-a/v2ray-agent)。编辑 ```/etc/v2ray-agent/xray/conf/10_ipv4_outbounds.json``` |
||||
|
||||
``` |
||||
{ |
||||
"outbounds": [ |
||||
{ |
||||
"protocol": "freedom" |
||||
}, |
||||
{ |
||||
"tag": "media-unlock", |
||||
"protocol": "socks", |
||||
"settings": { |
||||
"servers": [ |
||||
{ |
||||
"address": "172.17.0.2", |
||||
"port": 40000, |
||||
"users": [] |
||||
} |
||||
] |
||||
} |
||||
} |
||||
], |
||||
"routing": { |
||||
"domainStrategy": "AsIs", |
||||
"rules": [ |
||||
{ |
||||
"type": "field", |
||||
"domain": [ |
||||
"geosite:netflix" |
||||
], |
||||
"outboundTag": "media-unlock" |
||||
} |
||||
] |
||||
} |
||||
} |
||||
``` |
||||
|
||||
## 各种场景下 xray outbound 和 routing 模板的说明 |
||||
|
||||
* 域名分类中包含的各具体域名: https://github.com/v2fly/domain-list-community/blob/master/data |
||||
* Routing 路由说明: https://www.v2fly.org/config/routing.html |
||||
* 修改 `/etc/argox/outbound.json`,注意: 请先备份好原 `outbound.json` 文件,修改的 json 做到 https://www.json.cn/ 查看格式 |
||||
* 修改后运行 `systemctl restart xray; sleep 1; systemctl is-active xray` ,反显 active 即生效,如为 failed 即为失败,请检查配置文件格式 |
||||
## 鸣谢下列作者的文章和项目 |
||||
|
||||
| 说明 | 模板示例 | |
||||
| --- | ------ | |
||||
| chatGPT 使用链式 warp 代理,不需要本地安装 warp,其余流量走 vps 默认的网络出口 | [warp](https://github.com/fscarmen/warp#通过-warp-解锁-chatgpt-的方法) | |
||||
| 指定流量走本机指定的网络接口,对于双栈能区分 IPv4 或 IPv6,其余流量走 vps 默认的网络出口 | [interface](https://github.com/fscarmen/warp#指定网站分流到-interface-的-xray-配置模板适用于-warp-client-warp-和-warp-go-非全局) | |
||||
| 指定流量走本机指定的socks5代理,对于双栈能区分 IPv4 或 IPv6,其余流量走 vps 默认的网络出口 | [socks5](https://github.com/fscarmen/warp#指定网站分流到-socks5-的-xray-配置模板-适用于-warp-client-proxy-和-wireproxy) | |
||||
互联网永远不会忘记,但人们会。 |
||||
|
||||
技术文章和相关项目(排名不分先后): |
||||
* luoxue-bot 解锁 Netflix: https://github.com/luoxue-bot/warp_auto_change_ip |
||||
* lmc999 查各大流媒体解锁情况: https://github.com/lmc999/RegionRestrictionCheck |
||||
* ginuerzh 的 socks+http 代理: https://github.com/ginuerzh/gost/ |
||||
* 跨平台构建 Docker 镜像新姿势,x86、arm 一把梭: https://cloud.tencent.com/developer/article/1543689 |
||||
* Run-On-Arch GitHub Action: https://github.com/marketplace/actions/run-on-architecture#supported-platforms |
||||
* Linux 利用systemd开机自启shell脚本: https://blog.csdn.net/qq_41539778/article/details/109361023 |
||||
* 让你的傻妞稳稳地和机器人GG拍拖!: https://mp.weixin.qq.com/s/77rGQUKg_n5Kz2MqlAUmzw |
||||
* 如何高速安装pm2来守护您的进程?: https://www.kejiwanjia.com/jiaocheng/51930.html |
||||
|
||||
## 免责声明: |
||||
* 本程序仅供学习了解, 非盈利目的,请于下载后 24 小时内删除, 不得用作任何商业用途, 文字、数据及图片均有所属版权, 如转载须注明来源。 |
||||
* 使用本程序必循遵守部署免责声明。使用本程序必循遵守部署服务器所在地、所在国家和用户所在国家的法律法规, 程序作者不对使用者任何不当行为负责。 |
||||
服务提供(排名不分先后): |
||||
* CloudFlare Warp(+): https://1.1.1.1/ |
||||
* WGCF 项目原作者: https://github.com/ViRb3/wgcf/ |
||||
* 获取公网 IP 及归属地查询: https://ifconfig.co |
||||
https://ip.gs/ |
||||
https://ip.sb |
||||
* 统计PV网:https://hits.seeyoufarm.com/ |
||||
|
||||
Loading…
Reference in new issue