GithubHelp home page GithubHelp logo

warp-sh's Introduction

【WGCF】连接CF WARP为服务器添加IPv4/IPv6网络


目录


更新信息

2024.7.25 menu.sh 3.1.1 / warp-go.sh v1.2.1 1. Support using the self-built WARP API at https://www.warpapi.us.kg/?run=pluskey to generate a 1920 PB WARP+ license for upgrading to a Plus account; 2. Client lacks sufficient support for WARP+, only able to use IPv4 and not IPv6; 3. Optimize the installer to further reduce script runtime; 1. 支持使用自建 warp api: https://www.warpapi.us.kg/?run=pluskey, 生成 1920 PB WARP+ license 升级为 Plus 账户; 2. Client 对 WARP+ 支持不够,只能使用 IPv4,不能使用 IPv6; 3. 优化安装程序,进一步缩短脚本运行时间

2024.7.18 menu.sh 3.1.0 / warp-go.sh v1.2.0 1. Use self-built warp api: https://www.warpapi.us.kg/ to upgrade to Teams account, no need to prepare Token in advance, only need to enter organization, email and verification code when the script is running to complete, the efficiency is greatly increased; 2. Because the Client's settings need to be set up in the Cloudflare dashboard, which can cause the vps to lose contact if not handled properly, the Client's is not upgraded to a Teams account, and the user can look up the information to set it up on their own; 1. 使用自建 warp api: https://www.warpapi.us.kg/ ,升级为 Teams 账户,不需要提前获取 Token,只须在脚本运行的时候输入组织名、邮箱和验证码即可完成,效率大增; 2. 由于 Client 的设置需要到 Cloudflare 控制后台设置,处理不好会导致 vps 失去联系,所以 Client 并没有升级为 Teams 账户的处理,用户可自行查资料设置

历史更新 history(点击即可展开或收起)

2024.7.8 menu.sh v3.0.10 / warp-go.sh v1.1.9 1. Publish warp api, you can register account, join Zero Trust, check account information and all other operations. Detailed instructions: https://www.warpapi.us.kg/ ; 2. Scripts to update the warp api; 1. 发布 warp api,可以注册账户,加入 Zero Trust,查账户信息等所有的操作。详细使用说明: https://www.warpapi.us.kg/; 2. 脚本更新 warp api

2024.6.30 menu.sh v3.0.9 1. By multithreading, parallel processing of optimal MTU, optimal endpoint, downloading wireguard-go and installing dependencies, the script runtime is reduced by more than half; 2. Reverse proxy http://ip-api.com/json and https://hits.seeyoufarm.com with cloudflare worker for better dual-stack support and faster fetching; 3. DNS Priority: Cloudflare 1.1.1.1 > Google 8.8.8.8; 1. 通过多线程,并行处理最优 MTU,最优 endpoint,下载 wireguard-go 和安装依赖, 脚本运行时间缩短一半以上; 2. 用 Cloudflare worker 反向代理 http://ip-api.com/jsonhttps://hits.seeyoufarm.com,以更好支持双栈及提升获取速度; 3. DNS 优先级: Cloudflare 1.1.1.1 > Google 8.8.8.8

2024.6.28 menu.sh v3.0.8 The official WARP Linux Client supports arm64 systems and is available in both socks5 proxy and Warp interface modes; 官方 WARP Linux Client 支持 arm64 系统, Socks5 proxy 模式 和 Warp interface 模式均可用

2024.6.2 menu.sh v3.0.7 Support CentOS 9 / Alma Linux 9 / Rocky Linux 9 system; 支持 CentOS 9 / Alma Linux 9 / Rocky Linux 9 系统

2024.5.5 menu.sh v3.0.6 / warp-go.sh v1.1.8 Support Alpine edge system; 支持 Alpine edge 系统

2024.5.1 menu.sh v3.0.5 Deal with apt library changes for Debian 10 installations of wireguard-tools; 处理 Debian 10 安装 wireguard-tools 的 apt 库变更的问题

2024.4.14 menu.sh v3.0.4 1. Alpine check and update the wget version; 2. Add a message for feedback when connect warp fails; 1. Alpine 检测并更新 wget 版本的; 2. 获取 IP 失败时增加提示信息以便反馈

2024.3.21 menu.sh v3.0.3 / warp-go.sh 1.1.7 1. Update some commands according to warp-cli; 2. Remove the github cdn; 1. 根据 warp-cli 官方更新部分命令; 2. 去掉 Github cdn

2024.2.7 menu.sh v3.0.2 To check if the WireGuard kernel module is already loaded. If not, attempt to load it and recheck; 判断系统是否已经加载 wireguard 内核模块,如果还没有则尝试加载,再重新判断

2023.12.19 menu.sh v3.0.1 / warp-go.sh 1.1.6 Add a check to see if udp is allowed, if all endpoints of WARP are unreachable, the script will abort; 增加是否允许 udp 的检测,如果 WARP 的所有 endpoint 均不能连通,脚本将中止

2023.8.22 menu.sh v3.0.0 / warp-go.sh 1.1.5 Add Github CDN; 添加 Github CDN

2023.8.15 menu.sh v3.0.0 1. Add a non-global working mode, it can be switched use [warp g], which requires a script reinstallation; 2. Support regions sanctioned by Cloudflare, such as Russia, with a shared account; 3. IPv6 only uses the preset nat64 and restores the original nameserver file when uninstalled; 1. 增加warp的非全局工作模式,可以通过 [warp g] 切换,需要重装脚本; 2. 支持被Cloudflare制裁地区,如俄罗斯,使用共享账户; 3. IPv6 only 使用预设 nat64,卸载时恢复原始 nameserver 文件

2023.7.21 menu.sh v3.0.0 beta2 1. If the system supports wireguard kernel and wireguard-go-reserved, it can be switched use [warp k], which requires a script reinstallation; 2. Support Fedora system; 3. Fix switch error caused by client version 2023.7.40-1; 1. 如果系统支持 wireguard kernel 和 wireguard-go-reserved,可以通过 [warp k] 切换,需要重装脚本; 2. 支持 Fedora 系统; 3. 修复 client 2023.7.40-1 版本导致的开关错误

2023.6.30 menu.sh v3.0.0 beta IMPORTANT: 1. Use Cloudflare official warp api to replace wgcf; 2. Use wireguard-go with reserved to replace kernel. Make Hong Kong, Los Angeles and other restricted areas use warp; The above are the works of enthusiastic user, I would like to thank this guy and warp-go author coia for their contributions on behalf of all users of this script; 3. Since the changes are too big, please ask users to reinstall, if you have any problems, please feedback, I will deal with it as soon as possible; 重要更新: 1. 全面用 Cloudflare 官方 warp api 替代 wgcf; 2. 使用 wireguard-go with reserved 替代内核。使香港,洛杉矶等受限地区使用 warp; 以上均是热心网友的作品,我谨代表本脚本的所有用户感谢这位网友和 warp-go 作者 coia 的贡献; 3.由于改动太大,请用户重新安装,如有问题请反馈,我将会尽快处理

2023.6.27 menu.sh V2.53 Wireproxy proxy mode supports warp dualstack. From now on wgcf / wireproxy / client all support dual stack; Client Proxy 模式支持 warp 双栈, 从此之后 wgcf / wireproxy / client 通通支持双栈

2023.6.21 menu.sh V2.52 1. Client proxy mode supports warp dualstack; 2. Client warp mode supports warp dualstack; 3. Speed up script startup; Thanks to Bro ⑥, WordsWorthLess, us254 and chika0801 for the guidace on the xray template; 1. Client Proxy 模式支持 warp 双栈; 2. Client warp 模式支持 warp 双栈; 3. 加快脚本启动速度; 感谢网友 ⑥哥, WordsWorthLess, us254 and chika0801 关于 xray 模板的指导

2023.6.18 menu.sh V2.51 Client supports Debian 12 (bookworm); Client 支持 Debian 12 (bookworm)

2023.5.20 menu.sh V2.50 1. Client supports IPv6 only VPS; 2. Support 4 ways to upgrade to teams account including token (Easily available at https://web--public--warp-team-api--coia-mfs4.code.run); 3. Use api to delete warp account while uninstalling; 1. Client 支持 IPv6 only VPS 安装; 2. 支持包括 token 等4种方式升级为 teams 账户 (可通过 https://web--public--warp-team-api--coia-mfs4.code.run 轻松获取); 3. 卸载的同时使用 api 删除 warp 账户

2023.5.15 Cloudflare api Thanks to badafans open source project and patient guidance. Now released in linux using the Cloudflare WARP api. badafans open source project Use method 感谢大神 badafans的开源项目及耐心指导,现发布在linux下使用的Cloudflare WARP api,badafans的开源项目 使用方法

wget -N https://gitlab.com/fscarmen/warp/-/raw/main/api.sh && bash api.sh [option]

2023.5.10 warp-go V1.1.4 1. Docking the warp-go official account pool api, wiki: https://docs.zeroteam.top/apis/warp; 2. Change non-global from ipv4 only to dualstacks; 3. Fix the bug that the native IPv6 cannot login when using dualstacks; 4. Update the Best-enpoint app; 5. Change ip api; 1. 对接 warp-go 官方账户池 api,wiki: https://docs.zeroteam.top/apis/warp; 2. 非全局从ipv4 only 改为双栈; 3. 修复双栈时使用原生 IPv6 不能登陆的 bug; 4. 更新最佳 Endpoint 应用; 5. 更换 ip api

2023.3.26 warp-go V1.1.3 / menu.sh 2.49 1. Change the best Warp endpoint to standard ports [500,1701,2408,4500]; 2. Upgrade the Netflix unlocking section; 1. warp endpoint 优选改为标准端口 [500,1701,2408,4500]; 2. 升级奈飞解锁部分

2023.3.14 warp-go V1.1.2 / menu.sh 2.48 To speed up WARP, automatically find the most suitable endpoint for local use and apply it to wgcf, warp-go and client. Thanks to an anonymous and enthusiastic user for the tool; 为了提速 WARP,自动寻找最适合本机使用的 endpoint,应用在 wgcf, warp-go 和 client,感谢匿名的热心网友提供的工具

2023.3.2 warp-go V1.1.1 1. warp-go v1.0.8 is supported. Allowing custom MTU values in the configuration file /opt/warp-go/warp.conf; 2. Singbox configuration exports reseved using 3-numeric-array instead of a string; 1. 支持 warp-go v1.0.8 , 允许在配置文件 /opt/warp-go/warp.conf 自定义 MTU 值; 2. Singbox配置导出 reseved 使用三个数字的数组代替字符串

2023.2.22 Unlock chatGPT without installing warp; 不安装 warp 就能解锁 chatGPT 的方法

2023.2.7 menu.sh V2.47 Iptables + dnsmasq + ipset solution supports chatGPT. Install via the 12 option in the menu or bash menu.sh e; Iptables + dnsmasq + ipset 方案支持 chatGPT. 安装方式: 菜单 12 选项或者 bash menu.sh e

2022.12.17 warp-go V1.1.0 Support OpenWrt system; 支持 OpenWrt 系统

2022.12.10 warp-go V1.0.9 1.Export wireguard and sing-box config file with [warp-go e]; 2.Teams token website change to https://web--public--warp-team-api--coia-mfs4.code.run 1. 使用 [warp-go e] 导出 wireguard 和 sing-box 配置文件; 2.获取 teams token 网站更换为: https://web--public--warp-team-api--coia-mfs4.code.run

2022.10.19 menu V2.46 / warp-go V1.0.8 Switch the IPv4 / IPv6 priority by [warp s 4/6/d] or [warp-go s 4/6/d]; 通过 [warp s 4/6/d] 或者 [warp-go 4/6/d]来切换 IPv4 / IPv6 的优先级别

2022.10.7 warp-go V1.0.7 1. Further improve the conversion function between accounts. You can even switch from one WARP+ to another; 2. Formatting code; 1. 进一步完善账户间转换功能,你甚至可以从一个 WARP+ 换到另一个; 2. 优化代码

2022.10.6 menu V2.45 1. Further improve the conversion function between accounts. You can even switch from one WARP+ to another; 2. Rebuild the account registration module; 1. 进一步完善账户间转换功能,你甚至可以从一个 WARP+ 换到另一个; 2. 重构账户注册模块

2022.9.10 Over 2,000 users star. Thank you to every solution creator. I'm just passing these on more widely to serve more players. Thank you to each user for your continued support. I wish you all good health and Happy Mid-Autumn Festival! 项目 star 达 2000。感谢每位解决方案创造者。我只是把这些作更广泛的传递,服务更多玩家。感谢各用户一如既往的支持。祝大家身体健康,中秋节快乐!

2022.8.29 warp-go V1.0.6 1.Fixed the bug that routing rules failed after restart in non-global mode; 2.Fixed the bug of not changing IP; 1.解决了非全局模式重启后,路由规则失效的bug; 2.解决了更换不了IP的bug

2022.8.27 menu V2.44 Refactoring the uninstallation logic. Dependency uninstallation requires confirmation; 重构卸载逻辑,依赖卸载需要确认

2022.8.23 menu V2.43 warp-go V1.0.5 Support NAT VPS. Such as Woiden; 支持 NAT 服务器,例如 Woiden.

2022.8.21 After testing, wgcf warp service is back to normal in Hong Kong and Toronto, etc. 经测试,香港和多伦多等地区 wgcf warp 服务恢复正常

2022.8.21 menu V2.42 1.Add shortcut hints in the menu; 2.Remove the shortcut of S. Single and dual stacks swithing can directly use [warp 4/6/d]; 1.在菜单中增加快捷方式的提示; 2.移除快捷方式 s,单双栈相互切换可以直接 [warp 4/6/d]

2022.8.20 warp-go V1.0.4 Chinese and English language support. Hello World; 中英双语支持,与世界接轨

2022.8.20 warp-go V1.0.3 New feat: Menu + shortcuts for various usage scenarios; 菜单 + 快捷方式,适合各种使用场景

2022.8.17 warp-go v1.0.2 1. Add WARP IPv4 non-global and global switch echo other. To use the v2ray/xray configuration file for triage, refer to the template for Client WARP mode on the project homepage; 2. Output wgcf configuration file (warp-go e); 1.在原来全局的基础上,新增 WARP IPv4 非全局方案,配合 v2ray/xray 配置文件来分流,参考项目主页的 Client WARP 模式的模版; 2.输出 wgcf 配置文件(warp-go e)

2022.8.13 warp-go v1.0.1 1.New feat: Support WARP+ (warp-go a ); 2.Support Teams (warp-go a token). You can easily get the token through https://warp-team-api.herokuapp.com/ ; 3.Brush unlock Netflix IP (warp-go i); 4.Support AMD v2 v3 v4 instruction set; 1.新增 WARP+ 升级功能(warp-go a ); 2.新增 Teams 升级功能(warp-go a token),通过 https://warp-team-api.herokuapp.com/ 你能轻松获取 token; 3.新增刷解锁奈飞IP功能(warp-go i); 4.支持 GOAMD64v4 等指令集,提升功能

2022.8.13 First on the whole web, proudly presents @CoiaPrant's warp-go one-click script. Using various interfaces of CloudFlare-WARP and integrating wireguard-go, it can completely replace WGCF. Save Hong Kong, Toronto, etc., and let VPS without official WARP also get WARP IP. Thanks @CoiaPrant and his team again. Project official address: https://gitlab.com/ProjectWARP/warp-go/-/tree/master/

全网首发,隆重推出 @CoiaPrant 的 warp-go 一键脚本。使用 CloudFlare-WARP 的各类接口,集成 wireguard-go,可以完全替代 WGCF。 救活了香港、多伦多等,让没有官方 WARP 的 VPS 也可以获取 WARP IP。再次感谢 @CoiaPrant 及其团队。项目地址: https://gitlab.com/ProjectWARP/warp-go/-/tree/master/

wget -N https://gitlab.com/fscarmen/warp/-/raw/main/warp-go.sh && bash warp-go.sh [option] [lisence]

2022.8.5 2.41 1.Get the traffic quota of WARP+ via API. Thanks to Oreo for technical support; 1.通过 API 获取 WARP+ 剩余流量, 感谢猫佬的技术支持。

2022.6.27 香港 IPv6 only 安装 Client 的方式,转自 LOC jhsyue 的技术贴:wiki-hk-61.8 开启warp教程

2022.6.11 2.40 1.Support VPS-free LXC VPS; 1.支持 VPS-free LXC VPS

2022.5.25 2.39 1.Automatically sync the latest official versions of wgcf, CloudFlare client, wireguard-go and wireproxy every day, allowing users to have >the best performance with every installation; 2.Change the installation method of CloudFlare client, from APT/YUM repository to Package repository >repository; 1.每天自动同步官方版本最新版本的 wgcf、 CloudFlare client、wireguard-go 和 wireproxy,让用户每次安装都能获得最佳性能; 2.更换 CloudFlare client 的安装方式,从 >APT/YUM库 改到 Package 库

2022.5.18 2.38 1. Fully support Ubuntu 22.04 and CentOS Streams 9 LTS; 2. Optimize Debian to speed up installation; 1. 全面支持 Ubuntu 22.04 和 CentOS >Streams 9 LTS; 2. 优化 Debian 以提升安装速度

2022.4.21 WARP one-click script on macOS. A VPN that fast,modern,secure by WireGuard tunnel and WARP service 全网首发: macOS 一键脚本, 一个为免费、快速、安全的>基于 WireGuard 隧道,WARP 服务的 VPN。你可以理解为白嫖 CloudFlare 的科学服务了,也不需要服务器。

项目地址: https://github.com/fscarmen/warp/tree/main/pc

2022.4.8 2.37 1. First publication on a global scale: After WirePorxy, another major technological breakthrough -- WARP-Cli's WARP mode solution. Thanks >to the original creator -- Teacher LUBAN. It solves two major pain points: 1) The instability of the traditional proxy model; 2) Currently HK does not >have a WARP service; 1. 全网首发: 继 WirePorxy 之后,又一重大技术突破,WARP-Cli 的 WARP 模式方案,感谢原创者 LUBAN 老师,引用大神的思路,解决两大通点: 1) 传统 proxy 模式的>断流和慢; 2) 解决 HK 没有 WARP 服务

2022.3.27 2.36 1. First publication on a global scale. By WireProxy, Wireguard client that exposes itself as a socks5 proxy; Ths Fangliding for the >information:#113; 2. WARP+ and Teams can be used in WireProxy; 3. Systemd and change Netflix IP for >WireProxy. 1. 全网首发: 通过 wireproxy,让 WARP 在本地建议一个 socks5 代理。感谢风扇滑翔翼 提供的资讯:#113; 2. WARP+ >和 Teams 账户可用于 WireProxy 安装或者升级; 3. WireProxy systemd 进程守护,同时支持更换 Netflix IP

2022.3.23 2.35 1.Support WARP on Debian9; 1.支持 Debian 9 上安装 WARP

Over 1,000 users star. Thank you for your support. 项目 star 破千,感谢各用户的大力支持。

2022.3.19 2.34: 1.Support Arch Linux. Ths @SE_dong; 1.应呜呜冬 @SE_dong 的要求,新增 Arch Linux 的支持.

2022.3.11 2.33: 1.First publication on a global scale. WARP Client support Ubuntu 18.04 and CentOS 7; 2. Open TUN for OVZ. You needn't setting it in the >control panel. Thx @Q_lilll; 1. 全网首发, WARP Client 支持 Ubuntu 18.04 and CentOS 7; 2. 感谢 @Q_lilll 提供方案,为 OVZ VPS 在线打开 TUN,不需要到面板处理

2022.2.25 2.32: 1.Change the WARP endpoint; 2. Sync the Netflix title with lmc999; 1.更换 WARP 的 endpoint; 2. 同步 lmc999 的 Netflix 检测 title

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. 元宵节快乐。为大家带来个 docker 解锁的全新体验,换个姿势解锁 Netflix。项目以 alpine 为基础系统,内含 >wgcf 和解锁 Netflix 脚本,自动切换解锁 WARP IP https://github.com/fscarmen/unlock_warp

2022.2.11 2.31: 1.iptables + dnsmasq + ipset to unlock stream media. (Not available for IPv6 only VPS). It is better than setting the outbound in >xray/v2ray. 1.iptables + dnsmasq + ipset 最小化解锁流媒体,warp 只接管流媒体流量 (不适合 IPv6 only VPS),比在 xray/v2ray 设置分流的方案要更好

2022.1.25 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. Please support professional unlock one-click script: >https://github.com/fscarmen/unlock_warp

流媒体解锁守护进程,定时5分钟检查一次,遇到不解锁时更换 WARP IP,直至刷成功。请大家支持一下兄弟项目: https://github.com/fscarmen/unlock_warp

bash <(curl -sSL https://raw.githubusercontent.com/fscarmen/unlock_warp/main/unlock.sh)

2022.1.21 2.30: 1.All support WARP single-stack and dual-stack solutions. Switch to each other easily and quickly. Such as [warp s 4],[warp s 6],[warp s >d]; 2.Brush Netflix Unlock IP with the expect area. Such as [warp i hk]. You can use it with crontab,screen,nohup & etc. Detail; 3.Fixed stuck when brushing Netflix IP 1.全面支持WARP单栈与双栈方案,简单并快速切换,如[warp s 4],[warp s 6],[warp s d]; 2.在刷解锁 Netflix WARP >IP 时可以带上期望的地区,如 [warp i hk]。你可以结合 crontab,screen,nohup & 等方式使用,详细方法; 3.修正刷 Netflix IP 时可能发>生的卡死不动的bug

To be updated: huanx and malikshi #63 needs, hope like [P3terx]>(https://github.com/P3TERX/warp.sh/blob/main/warp.sh) scripts, all support WARP single-stack and dual-stack solutions. Plan to rebuild menu modules and >pass parameters with arrays.(DONE)

待更新:唤醒大神和 malikshi #63 的需求,希望像 P3terx 脚本>一样,全面支持 WARP 单栈和双栈方案。计划花点时间用数组重构菜单模块和传参。(已完成)

2022.1.11 2.26: 1.Asking the unlock Netflix region where you expect before brushing WARP IP; 2.Single and Dual stack switch to each other quickly. 1.在刷>解锁 Netflix WARP IP 之前,让用户输入想要的区域的简写; 2.单栈与双栈快速切换;

WARP docker solution support ARM64,AMD64 and s390x; WARP docker 方案支持 ARM64,AMD64 和 s390x CPU 架构 Dualstack on IPv4 only ,IPv6 only and native dualstack VPS is coming; 双栈 WARP docker 已经有方案,即将推出。(现 IPv6 only 和原生双栈的都能 WARP 双栈,差 IPv4 Only >了)

2022.1.6 重大技术突破,绝对原创,绝对原创,绝对原创。成功把 WGCF 配置文件与环境依赖分离。本着万物皆可 Docker 的思路,以超轻量级的 Alpine 为底包(底包5M+依赖22M=27MB),配置放在>映射目录处,解决某些旧系统不能使用 WARP 服务的问题。docker 安装依赖方案只能是单栈,并不能双栈。该技术已经是 WGCF 和 wireguard 的天花板,不服来辩。

wget -N https://cdn.jsdelivr.net/gh/fscarmen/warp/docker.sh && bash docker.sh [option] [lisence] ## 安装 docker、拉镜像和安装容器

docker exec -it wgcf sh #部分系统在容器外 docker exec -it wgcf wg-quick up wgcf 不行,一定要分开执行的。进入容器

wg-quick up wgcf; exit #运行 WGCF 并退出容器。

image

2022.1.1 1.Happy new year bros. I wish everyone good health and lots of money. Thanks for your support to this project. This project belongs to bros, I >just summarized your fragmented information; 2.Add timestamp and running time while brushing Netflix IP. 1.元旦快乐,祝各位身体健康,赚钱多多。本项目是属于网友们的,我只是把大家碎片化的信息汇总而已; 2.新年第一更刷奈飞IP时加入时间戳和运行时长

2021.12 29 大家可以试试另两位 WARP 作者脚本: 1.甬哥 wget -N https://cdn.jsdelivr.net/gh/kkkyg/CFwarp/CFwarp.sh && bash CFwarp.sh 2.P3terx bash <(curl -fsSL git.io/warp.sh) menu

2021.12.28 2.25: IMPORTANT: 1.First publication on a global scale. Support architecture s390x for IBM Linux One(Choose WARP ipv6 single stack),thx Brother Big B and Misaka; 2.Support Alpine Linux, thx Dong gua; 3.add whitelist. support Debian bookworm; 重要更新: 1. 全网首发,支持 IBM Linux One 的 s390x 架构 CPU (请选用 WARP ipv6单栈),感谢Misaka和大B哥借机器测试 2.支持 Alpine Linux 系统,感谢 Dong gua 借机器测试 3.支持 Debian bookworm系统,增加白名单,遇到没有大版本号的系统可以往里面放

2021.12.24 2.24: 1.The default language will set to the one selected during installation. echo 'E' >/etc/wireguard/language; warp v; 2.Support HAX LXC VPS. It needs run until curl -s4m8 ip.gs; do warp n; done to brush the warp network; 1.默认语言设置为安装时候选择的,中文 echo 'C' >/etc/wireguard/language; warp v; 2.支持 HAX LXC VPSlxc 机器母鸡资源不够,warp 需要不停的刷才能获取到 until curl -s4m8 ip.gs; do warp n; done

2021.12.17 2.23: Support change the Netflix IP not only WGCF but also Socks5 Client. Both will keep the Plus status. Recommand runs under [screen]; 2.Support update to TEAM account online. URL for you 1.支持 WARP Interface 和 Socks5 Client 自动更换支持奈飞的IP,两者都会保留 Plus 的状态,建议在 screen 下在后台运行,如果是中文,需要 screen -U 解决乱码问题; 2.支持在线升级为 TEAM 账户。 这此获取 URL

2021.12.14 2.22: 1.First in the whole network. Use WARP Team account instead of Plus. No need to brush Plus traffic any more. 50 user limited. return to version 2.21; 1.全网首创,使用脚本提供 TEAM 账户替代 Plus,免刷流量。翻车了,官方说了免费team有50个账户的限制,我心存侥幸,想着1个账户多人用,现在看来是行不通了,暂先回退到2.21版本

2021.12.11 2.21: 1.BoringTUN removed because of unstable; 2.Change the DNS to Google first. 3.Count the number of runs1.BoringTUN 因不稳定而移除 2.域名解析服务器首先谷歌 3.统计运行次数

2021.12.04 2.20: IMPORTANT: First publication on a global scale. Reduce installation time by more than 50% through multi-threading. No need to wait for WGCF registering and MTU value searching time; 2.Recode EN/CH traslation through associative array. Smarter and more efficient. Thx Oreo. 重大更新:1.全网首创,通过多线程,安装 WARP 时间缩短一半以上,不用长时间等待 WGCF 注册和寻找 MTU 值时间了; 2.中英双语部分关联数组重构了,更聪明高效,感谢猫大

2021.11.30 2.11: 感谢luoxue-bot原创,唤醒大神告知。 1.Changing Netflix IP is adapted from other authors [luoxue-bot]; 1.更换支持 Netflix IP 改编自 [luoxue-bot] 的成熟作品

2021.11.11 2.10: 1.Customize the priority of IPv4 / IPv6; 2.Customize the port of Client Socks5(default is 40000); 1.自定义 IPv4 / IPv6 优先组别; 2.自定义 Client Socks5 代理端>>口,默认40000

2021.11.06 2.09: 1.WARP Linux Client supported.Socks5 proxy listening on: 127.0.0.1:40000. Register and connnect need non-WARP IPv4 interface. Native IPv4 + WARP IPv6 is ok; >2.WARP+ license on Client supported; 3.Customize the WARP+ device name. 1.支持 WARP Linux Client,Socks5 代理监听:127.0.0.1:40000,注册和连接需要非 WARP 的原生 IPv4,可以是:原生>IPv4+ WARP IPv6; 2.Client 支持 WARP+ 账户升级和安装; 3.自定义 WARP+ 设备名

2021.11.01 2.08: 1.Serching the best MTU value for WARP interface automatically; 2.asn organisation for the VPS; 1.自动设置最优 MTU; 2.显示asn组织(线路提供商)

2021.10.29 2.07: 1.Support Chinese and English; 2.Optimize running speed; 3.fix startup at reboot bug; 1.支持中英文,用户可自行选择; 2.大幅优化速度; 3.修复重启后启动WARP的bug

2021.10.23 2.06: 1.添加自动检查是否开启 Tun 模块; 2.提高脚本适配性; 3.新增 hax、Amazon Linux 2 和 Oracle Linux 支持

2021.10.15 2.05: 1.WGCF自动同步最新的2.2.9; 2.升级了重启后运行 Warp 的处理方法,不再依赖另外的文件; 3.修复 KVM 由免费账户升级为 Warp+ 账户的bug

2021.10.14 2.04: 1.LXC 用户自主选择 BoringTun 还是 Wireguard-go (BoringTun用Rust语言,性能接近内核模块性能 ,稳定性与VPS有关;WireGuard-GO用Go语言,性能比前者差点,稳定性高); 2.增加限>制:原生双栈VPS只能用Warp双栈,bash menu.sh 1 会建议改为Warp双栈或退出; 3.Warp断网后,运行warp会自动关闭通道和杀掉进程; 4.脚本中止后,用 echo $? 显示 1,即代表不成功 (原来为代表运行成功的0)

2021.10.12 2.03: 1.对刷网络作了优化,加快了两次尝试之间的间隔时间,不会出现死循环,因为已经限制次数为10次,有明确的提示 2.用Rust语言的 BoringTun 替代Go语言的 WireGuard-GO

2021.10.10 2.02: 上游 ip.gs 用 wget 不稳定导致获取不了 IP 而一直在死刷,弃坑用 curl 替换,脚本检查到没有的话自动安装

脚本特点

  • 支持 WARP+ 账户,附带第三方刷 WARP+ 流量和升级内核 BBR 脚本
  • 普通用户友好的菜单,进阶者通过后缀选项快速搭建
  • 智能判断vps操作系统:Ubuntu 16.04、18.04、20.04; Debian 9、10、11,CentOS 7、8; Alpine 和 Arch Linux,请务必选择 LTS 系统 智能判断硬件结构类型:AMD、ARM 和 s390x
  • 结合 Linux 版本和虚拟化方式,自动优选三个 WireGuard 方案。 网络性能方面:内核集成 WireGuard>安装内核模块>BoringTun>wireguard-go
  • 智能判断 WGCF 作者 github库的最新版本 (Latest release)
  • 智能分析内网和公网IP生成 WGCF 配置文件
  • 输出结果,提示是否使用 WARP IP ,IP 归属地

WARP好处

  • 支持 chatGPT,解锁奈飞流媒体
  • 避免 Google 验证码或是使用 Google 学术搜索
  • 可调用 IPv4 接口,使青龙和V2P等项目能正常运行
  • 由于可以双向转输数据,能做对方VPS的跳板和探针,替代 HE tunnelbroker
  • 能让 IPv6 only VPS 上做的节点支持 Telegram
  • IPv6 建的节点能在只支持 IPv4 的 PassWall、ShadowSocksR Plus+ 上使用

warp 运行脚本

首次运行

wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh [option] [lisence/url/token]

再次运行

warp [option] [lisence]
[option] 变量1 变量2 具体动作说明
h 帮助
4 原无论任何状态 -> WARP IPv4
4 lisence name 把 WARP+ Lisence 和设备名添加进去,如 bash menu.sh 4 N5670ljg-sS9jD334-6o6g4M9F Goodluck
6 原无论任何状态 -> WARP IPv6
d 原无论任何状态 -> WARP 双栈
o WARP 开关,脚本主动判断当前状态,自动开或关
u 卸载 WARP
n 断网时,用于刷WARP网络 (WARP bug)
b 升级内核、开启BBR及DD
a 免费 WARP 账户升级 WARP+
a lisence 在上面基础上把 WARP+ Lisence 添加进去,如 bash menu.sh a N5670ljg-sS9jD334-6o6g4M9F
p 刷 Warp+ 流量
c 安装 WARP Linux Client,开启 Socks5 代理模式
l 安装 WARP Linux Client,开启 WARP 模式
c lisence 在上面基础上把 WARP+ Lisence 添加进去,如 bash menu.sh c N5670ljg-sS9jD334-6o6g4M9F
r WARP Linux Client 开关
v 同步脚本至最新版本
i 更换 WARP IP
e 安装 iptables + dnsmasq + ipset 分流流媒体方案
w 安装 WireProxy 解决方案
y WireProxy 开关
k 切换 wireguard 内核 / wireguard-go-reserved
g 切换 warp 全局 / 非全局 或首次以 非全局 模式安装
s s 4/6/d,切换优先级 warp IPv4 / IPv6 / 默认
其他或空值 菜单界面

举例:想为 IPv4 的甲骨文添加 Warp 双栈,首次运行

wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh d

刷日本 Netflix 运行

warp i jp

warp-go 运行脚本

首次运行

wget -N https://gitlab.com/fscarmen/warp/-/raw/main/warp-go.sh && bash warp-go.sh [option] [lisence]

再次运行

warp-go [option] [lisence]
[option] 变量1 变量2 具体动作说明
h 帮助
4 原无论任何状态 -> WARP IPv4
4 lisence name 把 WARP+ Lisence 和设备名添加进去,如 bash wire-go 4 N5670ljg-sS9jD334-6o6g4M9F Goodluck
6 原无论任何状态 -> WARP IPv6
d 原无论任何状态 -> WARP 双栈
o warp-go 开关,脚本主动判断当前状态,自动开或关
u 卸载 warp-go
a 免费 WARP 账户升级 WARP+
a lisence name 在上面基础上把 WARP+ Lisence 和设备名添加进去,如 bash menu.sh a N5670ljg-sS9jD334-6o6g4M9F Goodluck
v 同步脚本至最新版本
其他或空值 菜单界面

Cloudflare api

Cli-API 使用指南,浏览器带参数访问,或者使用 curl 命令可以执行 Warp API 请求,

run 参数 作用描述 参数 示例
使用指南 https://www.warpapi.us.kg/
register 注册新设备 team_token(可选), format(可选) https://www.warpapi.us.kg/?run=register&team_token=<Your-Team-Token>&format=<json|yaml|client|wireguard|warp-go||clash|xray|sing-box|qrencode>
device 获取特定设备的详细信息 device_id, token https://www.warpapi.us.kg/?run=device&device_id=<Your-Device-ID>&token=<Your-Token>
app 获取客户端配置 token https://www.warpapi.us.kg/?run=app&token=<Your-Token>
bind 将设备绑定到帐户 device_id, token https://www.warpapi.us.kg/?run=bind&device_id=<Your-Device-ID>&token=<Your-Token>
name 设置设备名称 device_id, token, device_name https://www.warpapi.us.kg/?run=name&device_id=<Your-Device-ID>&token=<Your-Token>&device_name=<Your-Device-Name>
license 设置设备许可证 device_id, token, license https://www.warpapi.us.kg/?run=license&device_id=<Your-Device-ID>&token=<Your-Token>&license=<Your-License>
unbind 从帐户中取消绑定设备 device_id, token https://www.warpapi.us.kg/?run=unbind&device_id=<Your-Device-ID>&token=<Your-Token>
cancel 取消设备注册 device_id, token https://www.warpapi.us.kg/?run=cancel&device_id=<Your-Device-ID>&token=<Your-Token>
id Client ID 与 Reserved 转换 convert https://www.warpapi.us.kg/?run=id&convert=<4-char-string|Numbers1,Numbers2,Numbers3>
token 获取 Zero Trust token organization, email, code step1: https://www.warpapi.us.kg/?organization=<Your-Organization>&email=<Your-Email>
step2: https://www.warpapi.us.kg/?organization=<Your-Organization>&A=<A-Value>&S=<S-Value>&N=<N-Value>&code=<Your-Code>
pluskey 生成指定数量的 1923PB Warp+ license num(可选,默认:1,最大:6), maxretry(可选,默认:3) https://www.warpapi.us.kg/?run=pluskey&num=2&maxretry=5
key 生成一对 WireGuard 公私钥 format(可选) https://www.warpapi.us.kg/?run=key&format=<json|yaml>
sum 获取总计和 24 小时运行计数 https://www.warpapi.us.kg/?run=sum

Shell-API 运行脚本

wget -N https://gitlab.com/fscarmen/warp/-/raw/main/api.sh && bash api.sh [option]
[option] 变量 具体动作说明
-h/--help 帮助
-f/--file 保存账户注册信息的文件,支持官方api,client,wgcf 和 warp-go ,不填则手动输入 device id 和 api token
-r/--register 注册账户
-t/--token -r 注册时,使用 team token 注册,快速获取: https://web--public--warp-team-api--coia-mfs4.code.run
-d/--device 获取账户注册信息,包括 plus 流量等
-a/--app 获取 app 信息
-b/--bind 获取绑定设备信息,包括子设备
-n/--name 修改设备名称
-l/--license 修改 license
-u/--unbind 解绑设备
-c/--cancle 注销账户
-i/--id 显示 cliend id 与 reserved

刷 Netflix 解锁 WARP IP 的方法

WARP socks5 或 interface 分流模板及解锁 chatGPT 的方法

指定网站分流到 socks5 的 xray 配置模板 (适用于 WARP Client Proxy 和 WireProxy)(点击即可展开或收起)

本地 socks5://127.0.0.1:40000 并安装 mack-a 八合一脚本 为例。编辑 /etc/v2ray-agent/xray/conf/10_ipv4_outbounds.json

{
    "outbounds":[
        {
            "protocol":"freedom"
        },
        {
            "tag":"warp",
            "protocol":"socks",
            "settings":{
                "servers":[
                    {
                        "address":"127.0.0.1",
                        "port":40000 // 填写你的 socks5 端口
                    }
                ]
            }
        },
        {
            "tag":"WARP-socks5-v4",
            "protocol":"freedom",
            "settings":{
                "domainStrategy":"UseIPv4"
            },
            "proxySettings":{
                "tag":"warp"
            }
        },
        {
            "tag":"WARP-socks5-v6",
            "protocol":"freedom",
            "settings":{
                "domainStrategy":"UseIPv6"
            },
            "proxySettings":{
                "tag":"warp"
            }
        }
    ],
    "routing":{
        "rules":[
            {
                "type":"field",
                "domain":[
                    "geosite:openai",
                    "ip.gs"
                ],
                "outboundTag":"WARP-socks5-v4"
            },
            {
                "type":"field",
                "domain":[
                    "geosite:google",
                    "geosite:netflix",
                    "p3terx.com"
                ],
                "outboundTag":"WARP-socks5-v6"
            }
        ]
    }
}
指定网站分流到 "interface" 的 xray 配置模板(适用于 WARP Client Warp 和 warp / warp-go 非全局)(点击即可展开或收起)
{
    "outbounds":[
        {
            "protocol":"freedom"
        },
        {
            "tag":"WARP-interface-v4",
            "protocol":"freedom",
            "settings":{
                "domainStrategy":"UseIPv4"
            },
            "streamSettings":{
                "sockopt":{
                    "interface":"CloudflareWARP", // warp 非全局模式填 warp; Client 的 Proxy 模式填 CloudflareWARP; warp-go 填 WARP
                    "tcpFastOpen":true
                }
            }
        },
        {
            "tag":"WARP-interface-v6",
            "protocol":"freedom",
            "settings":{
                "domainStrategy":"UseIPv6"
            },
            "streamSettings":{
                "sockopt":{
                    "interface":"CloudflareWARP",
                    "tcpFastOpen":true
                }
            }
        }
    ],
    "routing":{
        "domainStrategy":"AsIs",
        "rules":[
            {
                "type":"field",
                "domain":[
                    "geosite:google",
                    "geosite:openai",
                    "ip.gs"
                ],
                "outboundTag":"WARP-interface-v4"
            },
            {
                "type":"field",
                "domain":[
                    "geosite:netflix",
                    "p3terx.com"
                ],
                "outboundTag":"WARP-interface-v6"
            }
        ]
    }
}
通过 WARP 解锁 chatGPT 的方法(点击即可展开或收起)

思路是使用已经注册的 warp 做链式代理的设置,此解决方法是最轻便的,用户只要有 xray 即可。具体做法是修改 xray 配置文件的 outbound 和 routing,模板如下

{
    "outbounds":[
        {
            "protocol":"freedom",
            "tag": "direct"
        },
        {
            "protocol":"wireguard",
            "settings":{
                "secretKey":"YFYOAdbw1bKTHlNNi+aEjBM3BO7unuFC5rOkMRAz9XY=", // 粘贴你的 "private_key" 值
                "address":[
                    "172.16.0.2/32",
                    "2606:4700:110:8a36:df92:102a:9602:fa18/128"
                ],
                "peers":[
                    {
                        "publicKey":"bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=",
                        "allowedIPs":[
                            "0.0.0.0/0",
                            "::/0"
                        ],
                        "endpoint":"engage.cloudflareclient.com:2408" // 或填写 162.159.193.10:2408 或 [2606:4700:d0::a29f:c001]:2408
                    }
                ],
                "reserved":[78, 135, 76], // 粘贴你的 "reserved" 值
                "mtu":1280
            },
            "tag":"wireguard"
        },
        {
            "protocol":"freedom",
            "settings":{
                "domainStrategy":"UseIPv4"
            },
            "proxySettings":{
                "tag":"wireguard"
            },
            "tag":"warp-IPv4"
        },
        {
            "protocol":"freedom",
            "settings":{
                "domainStrategy":"UseIPv6"
            },
            "proxySettings":{
                "tag":"wireguard"
            },
            "tag":"warp-IPv6"
        }
    ],
    "routing":{
        "domainStrategy":"AsIs",
        "rules":[
            {
                "type":"field",
                "domain":[
                    "geosite:openai",
                    "ip.gs"
                ],
                "outboundTag":"warp-IPv4"
            },
            {
                "type":"field",
                "domain":[
                    "geosite:netflix",
                    "p3terx.com"
                ],
                "outboundTag":"warp-IPv6"
            }
        ]
    }
}

WARP+ License 及 ID 获取

以下是使用WARP和Team后 Argo 2.0 的官方介绍:Argo 2.0: Smart Routing Learns New Tricks

引用Luminous大神原话:实际测试WARP+在访问非CF的网站速度上和免费版没有差异,只有在访问CloudFlare的站点时付费版会通过Argo类似的技术通过与目标较近的数据中心前往源站,而免费版是仅限于连接地前往源站,仅此而已。

WARP Teams 获取并用于 Linux 的方法

WARP原理

WARP是CloudFlare提供的一项基于WireGuard的网络流量安全及加速服务,能够让你通过连接到CloudFlare的边缘节点实现隐私保护及链路优化。

其连接入口为双栈(IPv4/IPv6均可),且连接后能够获取到由CF提供基于NAT的IPv4和IPv6地址,因此我们的单栈服务器可以尝试连接到WARP来获取额外的网络连通性支持。这样我们就可以让仅具有IPv6的服务器访问IPv4,也能让仅具有IPv4的服务器获得IPv6的访问能力。

  • 为仅IPv6服务器添加IPv4

原理如图,IPv4的流量均被WARP网卡接管,实现了让IPv4的流量通过WARP访问外部网络。

  • 为仅IPv4服务器添加IPv6

原理如图,IPv6的流量均被WARP网卡接管,实现了让IPv6的流量通过WARP访问外部网络。

  • 双栈服务器置换网络

有时我们的服务器本身就是双栈的,但是由于种种原因我们可能并不想使用其中的某一种网络,这时也可以通过WARP接管其中的一部分网络连接隐藏自己的IP地址。至于这样做的目的,最大的意义是减少一些滥用严重机房出现验证码的概率;同时部分内容提供商将WARP的落地IP视为真实用户的原生IP对待,能够解除一些基于IP识别的封锁。

  • 网络性能方面:内核集成>内核模块>wireguard-go

鸣谢下列作者的文章和项目

互联网永远不会忘记,但人们会。

技术文章或相关项目(排名不分先后):

服务提供(排名不分先后):

CloudFlare WARP 全球站点和服务状态:

warp-sh's People

Contributors

fscarmen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

warp-sh's Issues

Spotify

Hey thanks in advance.
How to route only the spotify through the warp with your script ?

无论使用哪个VPS都是获取IP失败

  1. 为 IPv4 only 添加 WARP IPv4 网络接口 (bash menu.sh 4)
  2. 为 IPv4 only 添加 WARP IPv6 网络接口 (bash menu.sh 6)
  3. 为 IPv4 only 添加 WARP 双栈网络接口 (bash menu.sh d)
  4. 打开 WARP (warp o)
  5. 安装 CloudFlare Client 并设置为 Proxy 模式 (bash menu.sh c)
  6. 更换支持 Netflix 的 IP (warp i)
  7. 永久关闭 WARP 网络接口,并删除 WARP、 Linux Client 和 WireProxy (warp u)
  8. 刷 WARP+ 流量 (warp p)
  9. 升级内核、安装BBR、DD脚本 (warp b)
  10. 同步最新版本 (warp v)
  11. WARP 解锁 Netflix 等流媒体专业一键(支持多平台、多方式和 TG 通知)
  12. 安装 iptable + dnsmasq + ipset,让 WARP IPv4 only 接管流媒体流量 (不适用于 IPv6 only VPS) (bash menu.sh e)
  13. 安装 wireproxy,让 WARP 在本地创建一个 socks5 代理 (bash menu.sh w)
  14. 安装 CloudFlare Client 并设置为 WARP 模式 (bash menu.sh l)
  15. 退出脚本

请选择: 3

只能使用 wireguard-go with reserved 运行

工作模式:

  1. 全局 (默认)
  2. 非全局

请选择:

如有 WARP+ 或 Teams 账户请选择

  1. 使用免费账户 (默认)
  2. WARP+
  3. Teams

请选择:

请选择优先级别:

  1. IPv4
  2. IPv6
  3. 使用 VPS 初始设置 (默认)

请选择:

进度 1/3: 安装系统依赖……

Hit:1 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease
Reading package lists... 35%
进度 2/3: 已安装 WARP

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
7 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
net-tools is already the newest version (1.60+git20181103.0eebece-1ubuntu5).
iptables is already the newest version (1.8.7-1ubuntu5.1).
dnsutils is already the newest version (1:9.18.18-0ubuntu0.22.04.1).
The following NEW packages will be installed:
openresolv
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 25.6 kB of archives.
After this operation, 105 kB of additional disk space will be used.
Get:1 http://azure.archive.ubuntu.com/ubuntu jammy/universe amd64 openresolv all 3.12.0-2 [25.6 kB]
Fetched 25.6 kB in 0s (992 kB/s)
Selecting previously unselected package openresolv.
(Reading database ... 61677 files and directories currently installed.)
Preparing to unpack .../openresolv_3.12.0-2_all.deb ...
Unpacking openresolv (3.12.0-2) ...
Setting up openresolv (3.12.0-2) ...
Processing triggers for man-db (2.10.2-1) ...
NEEDRESTART-VER: 3.5
NEEDRESTART-KCUR: 6.2.0-1016-azure
NEEDRESTART-KEXP: 6.2.0-1016-azure
NEEDRESTART-KSTA: 1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
wireguard-tools
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 86.9 kB of archives.
After this operation, 328 kB of additional disk space will be used.
Get:1 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 wireguard-tools amd64 1.0.20210914-1ubuntu2 [86.9 kB]
Fetched 86.9 kB in 0s (3170 kB/s)
Selecting previously unselected package wireguard-tools.
(Reading database ... 61695 files and directories currently installed.)
Preparing to unpack .../wireguard-tools_1.0.20210914-1ubuntu2_amd64.deb ...
Unpacking wireguard-tools (1.0.20210914-1ubuntu2) ...
Setting up wireguard-tools (1.0.20210914-1ubuntu2) ...
wg-quick.target is a disabled or a static unit not running, not starting it.
Processing triggers for man-db (2.10.2-1) ...
NEEDRESTART-VER: 3.5
NEEDRESTART-KCUR: 6.2.0-1016-azure
NEEDRESTART-KEXP: 6.2.0-1016-azure
NEEDRESTART-KSTA: 1
--2023-11-11 07:30:04-- https://cdn2.cloudflare.now.cc/https://gitlab.com/fscarmen/warp/-/raw/main/wireguard-go/wireguard-go-linux-amd64-20230223
Resolving cdn2.cloudflare.now.cc (cdn2.cloudflare.now.cc)... 104.21.48.202, 172.67.156.44
Connecting to cdn2.cloudflare.now.cc (cdn2.cloudflare.now.cc)|104.21.48.202|:443... connected.
HTTP request sent, awaiting response... 200 OK
Cookie coming from cdn2.cloudflare.now.cc attempted to set domain to gitlab.com
Length: 2691072 (2.6M) [application/octet-stream]
Saving to: ‘/usr/bin/wireguard-go’

/usr/bin/wireguard-go 100%[=========================================================>] 2.57M 6.82MB/s in 0.4s

2023-11-11 07:30:05 (6.82 MB/s) - ‘/usr/bin/wireguard-go’ saved [2691072/2691072]

进度 3/3: 寻找 MTU 最优值和优选 endpoint 地址已完成

创建快捷 warp 指令成功
运行 WARP
后台获取 WARP IP 中,最大尝试3次……
第1次尝试
第2次尝试
第3次尝试
失败已超过3次,脚本中止,问题反馈:[https://github.com/fscarmen/warp-sh/issues]
root@ex-uk-vm:# warp o
后台获取 WARP IP 中,最大尝试3次……
第1次尝试
第2次尝试
curl: (28) Resolving timed out after 8000 milliseconds
第3次尝试
失败已超过3次,脚本中止,问题反馈:[https://github.com/fscarmen/warp-sh/issues]
root@ex-uk-vm:
#

warp-go 脚本 失败

进度 1/3: 安装系统依赖……

注册 WARP free 账户中, 最大尝试5次……
第1次尝试
第2次尝试
第3次尝试
第4次尝试
第5次尝试
注册 WARP free 账户失败,脚本中止,

进度 3/3: 已找到最佳 MTU 和 Endpoint

API 获取不到注册信息,脚本退出,

bug

我用的是lxc虚拟化的服务器,母鸡ipv4地址是warp的(ipv6不是),然后我运行脚本就认为我开启warp ipv4了,但实际上我机子没有安装warp

更换端口不成功

image
系统信息:
当前操作系统:Debian GNU/Linux 11 (bullseye)
内核:5.15.0-1040-oracle
处理器架构:arm64
虚拟化:lxc
IPv4: 132.*
IPv6:
WARP 网络接口未开启
Client 未安装
WARP Free WireProxy 已开启 本地 Socks5: 127.0.0.1:54789
IPv4: 104.28.246.212 英国 Cloudflare, Inc.
IPv6: 2a09:bac5:3807:ebe::178:70 英国 Cloudflare Warp

warp-go: 检测不到任何 IPv4 或 IPv6。脚本中止

运行环境:Ubuntu 22 LTS

复现过程:安装的v4非全局,warp-go o 开关,显示获取了ip,运行warp-go

warp-go -e查看到配置:

"listen": "127.0.0.1",
"listen_port": 2000,
"udp_timeout": 300,
"type": "socks"

但是2000端口没在监听,自然也不能用代理。求大佬看一下问题出在哪里。感谢~
需求:warp-go非全局代理,socks/http均可。warp 脚本经常出现获取不到ip,warp-go获取到了非全局不能用,所以想请大佬解决一下warp-go非全局代理的问题

运行脚本会卡在 ‘/usr/bin/wireguard-go’ saved

请选择: 1

只能使用 wireguard-go with reserved 运行

工作模式:

  1. 全局 (默认)
  2. 非全局

请选择:

如有 WARP+ 或 Teams 账户请选择

  1. 使用免费账户 (默认)
  2. WARP+
  3. Teams

请选择: 1

请选择优先级别:

  1. IPv4
  2. IPv6
  3. 使用 VPS 初始设置 (默认)

请选择: 1

进度 1/3: 安装系统依赖……
Exiting on user cancel.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirror.sfo12.us.leaseweb.net
  • centos-sclo-rh: mirrors.raystedman.org
  • centos-sclo-sclo: mirror.keystealth.org
  • centos-virt-xen-epel: mirror.tornadovps.com
  • epel: mirror.tornadovps.com
  • extras: mirrors.vcea.wsu.edu
  • updates: mirrors.sonic.net
    https://pkg.cloudflareclient.com/dists/8/main/binary-x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
    Trying other mirror.
    To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

^CPackage net-tools-2.0-0.25.20131004git.el7.x86_64 already installed and latest version
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirror.sfo12.us.leaseweb.net
  • centos-sclo-rh: mirrors.raystedman.org
  • centos-sclo-sclo: mirror.keystealth.org
  • centos-virt-xen-epel: mirror.tornadovps.com
  • epel: mirror.tornadovps.com
  • extras: mirrors.vcea.wsu.edu
  • updates: mirrors.sonic.net
    https://pkg.cloudflareclient.com/dists/8/main/binary-x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
    Trying other mirror.
    To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

Package wireguard-tools-1.0.20210914-1.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirror.sfo12.us.leaseweb.net
  • centos-sclo-rh: mirrors.raystedman.org
  • centos-sclo-sclo: mirror.keystealth.org
  • centos-virt-xen-epel: mirror.tornadovps.com
  • epel: mirror.tornadovps.com
  • extras: mirrors.vcea.wsu.edu
  • updates: mirrors.sonic.net
    https://pkg.cloudflareclient.com/dists/8/main/binary-x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
    Trying other mirror.
    To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

No packages marked for update
--2024-01-16 23:56:59-- https://cdn4.cloudflare.now.cc/proxy/https://gitlab.com/fscarmen/warp/-/raw/main/wireguard-go/wireguard-go-linux-amd64-20230223
Resolving cdn4.cloudflare.now.cc (cdn4.cloudflare.now.cc)... 104.21.48.202, 172.67.156.44
Connecting to cdn4.cloudflare.now.cc (cdn4.cloudflare.now.cc)|104.21.48.202|:443... connected.
HTTP request sent, awaiting response... 200 OK
Cookie coming from cdn4.cloudflare.now.cc attempted to set domain to cdn4.cloudflare.now.cc
Length: 2691072 (2.6M) [application/octet-stream]
Saving to: ‘/usr/bin/wireguard-go’

100%[===============================================================================================================================================>] 2,691,072 --.-K/s in 0.06s

2024-01-16 23:56:59 (42.8 MB/s) - ‘/usr/bin/wireguard-go’ saved [2691072/2691072]

【一直卡在这里,cpu占用也很高,top看是bash进程占用cpu】
【运行bash -x menu.sh 结果如下】

Package wireguard-tools-1.0.20210914-1.el7.x86_64 already installed and latest version
Nothing to do

  • yum -y update
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
  • base: mirror.sfo12.us.leaseweb.net
  • centos-sclo-rh: mirrors.raystedman.org
  • centos-sclo-sclo: mirror.keystealth.org
  • centos-virt-xen-epel: mirror.tornadovps.com
  • epel: mirror.tornadovps.com
  • extras: mirrors.vcea.wsu.edu
  • updates: mirrors.sonic.net
    https://pkg.cloudflareclient.com/dists/8/main/binary-x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
    Trying other mirror.
    To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

No packages marked for update

100%[==============================================================================================================================================>] 2,691,072 --.-K/s in 0.04s

2024-01-16 23:17:46 (65.3 MB/s) - ‘/usr/bin/wireguard-go’ saved [2691072/2691072]

  • chmod +x /usr/bin/wireguard-go
  • '[' 0 = 1 ']'
  • grep -q '^#[[:space:]]*add_if' /usr/bin/wg-quick
  • wait

warp-go获取warp ip失败

  1. 为 IPv4 only 添加 WARP IPv4 全局 网络接口,IPv4 优先 (bash warp-go.sh 4)
  2. 为 IPv4 only 添加 WARP IPv4 全局 网络接口,IPv6 优先 (bash warp-go.sh 4)
  3. 为 IPv4 only 添加 WARP IPv6 全局 网络接口,IPv4 优先 (bash warp-go.sh 6)
  4. 为 IPv4 only 添加 WARP IPv6 全局 网络接口,IPv6 优先 (bash warp-go.sh 6)
  5. 为 IPv4 only 添加 WARP 双栈 全局 网络接口,IPv4 优先 (bash warp-go.sh d)
  6. 为 IPv4 only 添加 WARP 双栈 全局 网络接口,IPv6 优先 (bash warp-go.sh d)
  7. 为 IPv4 only 添加 WARP 双栈 非全局 网络接口,IPv4 优先 (bash warp-go.sh n)
  8. 为 IPv4 only 添加 WARP 双栈 非全局 网络接口,IPv6 优先 (bash warp-go.sh n)
  9. 同步最新版本 (warp-go v)
  10. 退出脚本

请选择: 3

如有 WARP+ 或 Teams 账户请选择

  1. WARP+
  2. Teams
  3. 使用免费账户 (默认)

请选择:

进度 1/3: 安装系统依赖……

注册 WARP free 账户中, 最大尝试5次……
第1次尝试

进度 2/3: 已安装 warp-go

进度 3/3: 已找到最佳 MTU 和 Endpoint

后台获取 WARP IP 中, 最大尝试5次……
第1次尝试
第2次尝试
第3次尝试
第4次尝试
第5次尝试
失败已超过5次,脚本中止,问题反馈:[https://github.com/fscarmen/warp-sh/issues]

搬瓦工LA的VPS,求助~ 因为warp好像对LA的vps不适用,所以想用warp-go

双模式共存

RN的vps,ipv4被部分网站拉黑,所以开单ipv6,并设置ipv6优先能解决大多数网站问题,然而部分网站不支持ipv6,比如reddit和twitter,reddit用rn的ipv4访问不了,twitter用warp的ipv4访问不了,所以还需要开一个wireporxy,xray出口分流reddit到warp ipv4,但是这样,原warp 的 ipv6就启动失败。相当于默认都走RN的ipv4,而这个ip不干净,最简单的方案就是可以设置双栈方案的ipv4走非全局,ipv6还是全局,而我实测xray分流到非全局模式的"interface":"CloudflareWARP"无效

加上OpenCloudOS支持

执行脚本报错:本脚本只支持 Debian、Ubuntu、CentOS、Fedora、Arch 或 Alpine 系统,问题反馈:[https://github.com/fscarmen/warp-sh/issues]

当前系统:
cat /etc/os-release

NAME="OpenCloudOS"
VERSION="8.8"
ID="opencloudos"
ID_LIKE="rhel fedora"
VERSION_ID="8.8"
PLATFORM_ID="platform:oc8"
PRETTY_NAME="OpenCloudOS 8.8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:opencloudos:opencloudos:8"
HOME_URL="https://www.opencloudos.org/"
BUG_REPORT_URL="https://bugs.opencloudos.tech/"

warp e 没有找到适合的方案用于修改 warp 配置文件 warp.conf

warp e

所有依赖已存在,不需要额外安装

检查环境中……

==============================================================

通过 Iptable + dnsmasq + ipset,最小化实现 chatGPT,Netflix 等媒体解锁,WARP IPv4 只接管流媒体流量,改编自 [Anemone] 的成熟作品,地址[https://github.com/acacia233/Project-WARP-Unlock],请熟知

==============================================================

  1. 安装脚本
  2. 退出脚本

请选择: 1

请选择 wireguard 方式:

  1. wireguard 内核 (默认)
  2. wireguard-go with reserved

请选择: 1
没有找到适合的方案用于修改 warp 配置文件 warp.conf,脚本中止。当你看到此信息,请把该 bug 反馈至:[https://github.com/fscarmen/warp-sh/issues]

没有找到适合的方案用于修改 warp 配置文件

  1. 安装 iptable + dnsmasq + ipset,让 WARP IPv4 only 接管流媒体流量 (不适用于 IPv6 only VPS) (bash menu.sh e)
  2. 安装 wireproxy,让 WARP 在本地创建一个 socks5 代理 (bash menu.sh w)
  3. 安装 CloudFlare Client 并设置为 WARP 模式 (bash menu.sh l)
  4. 退出脚本

请选择: 12

请选择 wireguard 方式:

  1. wireguard 内核 (默认)
  2. wireguard-go with reserved

请选择:
没有找到适合的方案用于修改 warp 配置文件 warp.conf,脚本中止。当你看到此信息,请把该 bug 反馈至:[https://github.com/fscarmen/warp-sh/issues]

WARP命令提示的client连接状态问题

输入warp后,提示如下

系统信息:
当前操作系统:Debian GNU/Linux 11 (bullseye)
内核:5.10.0-26-cloud-amd64
处理器架构:amd64
虚拟化:kvm
IPv4: xxxx 香港 Cloudflare, Inc.
IPv6: xxxx 香港 Cloudflare Warp
WARP+ 网络接口已开启 设备名: xxx 剩余流量: 24.59 PB
工作模式: 全局
Client 已安装, 断开状态

  1. warp提示为Client已连接但端口状态;
  2. 但使用warp r命令尝试连接,却提示已断开 Client,再次连接可以用 warp r
  3. 重新使用warp r命令,提示剩余流量: 24.59 PB

用的warp-go reserved模式安装;然后安装了CloudFlare Client,想走CloudFlare Client的WARP模式来着。

debian12 的 systemd-resolved 好像和 openresolv 有冲突?

系统是 PVE8.1 下安装镜像: Debian12 Official Cloud Images,然后执行大佬脚本,装完后,重启机器,发现 DNS 解析失效了,CF 的 IP 地址一直无法获取,查了下发现重启后 /run/systemd/resolve/ 这个文件夹直接没了,导致文件 /etc/resolv.conf 的链接失效了(/etc/resolv.conf 是指向 /run/systemd/resolve/resolv.conf 的)
发现可能是 openresolv 导致的这问题(和 systemd-resolved 冲突?),于是修改脚本,不让脚本安装 openresolv ,然后执行脚本安装,于是 DNS 解析正常,warp 也可以正常拿到 CF 的 IP 地址。不知道这算是哪里的问题?

另一个使用情况是我配合 xray,只有在 warp-go 全局的情况下,xray 代理才能通过 CF 访问到网络。warp 全局不通,warp-go/warp 的非全局通过 interface 也不通(xray 的配置应该没有问题,别的服务器也是同样配置的,而且 log 里是能看到有去连 warp 的 interface),不知道这会不会和没装 openresolv 有关系?

之前我在 vultr 的 Debian12 上跑大佬的脚本也发现 openresolv 会有点问题,最后解决方法是:需要先手动安装 openresolv ,再 reboot 机器,再执行脚本就没有问题。直接跑脚本也是 DNS 直接失效。

我也没仔细研究为什么脚本里一定要装这个 openresolv ,搞不懂。。。

warp n获取ip失败 美国的vps

后台获取 WARP IP 中,最大尝试5次……
第1次尝试
第2次尝试
第3次尝试
第4次尝试
第5次尝试
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
当前操作系统: CentOS Linux 7 (Core)

内核:4.14.129-bbrplus

(text 40):

┌──────────────────────────────────────────────────────┐
│ │
│ Running wireguard-go is not required because this │
│ kernel has first class support for WireGuard. For │
│ information on installing the kernel module, │
│ please visit: │
https://www.wireguard.com/install/
│ │
└──────────────────────────────────────────────────────┘
[#] wg setconf warp /dev/fd/63
[#] ip -4 address add 172.16.0.2/32 dev warp
[#] ip -6 address add 2606:4700:110:88bd:3fee:4fa6:449d:47fe/128 dev warp
[#] ip link set mtu 1420 up dev warp
[#] mount `8.8.8.8 8.8.4.4 1.1.1.1 2001:4860:4860::8888 2001:4860:4860::8844 2606:4700:4700::1111' /etc/resolv.conf
[#] wg set warp fwmark 51820
[#] ip -6 route add ::/0 dev warp table 51820
[#] ip -6 rule add not fwmark 51820 table 51820
[#] ip -6 rule add table main suppress_prefixlength 0
[#] ip6tables-restore -n
[#] ip -4 rule add from 104...* lookup main
↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
失败已超过5次,脚本中止,附上以上错误提示,问题反馈:[https://github.com/fscarmen/warp-sh/issues]

貌似buster-backports仓库挂了导致无法正常安装wireguard-tools

======================================================================================================================

 1.  为 IPv4 only 添加 WARP IPv4 网络接口 (bash menu.sh 4) 
 2.  为 IPv4 only 添加 WARP IPv6 网络接口 (bash menu.sh 6) 
 3.  为 IPv4 only 添加 WARP 双栈网络接口 (bash menu.sh d) 
 4.  打开 WARP (warp o) 
 5.  安装 CloudFlare Client 并设置为 Proxy 模式 (bash menu.sh c) 
 6.  更换支持 Netflix 的 IP (warp i) 
 7.  永久关闭 WARP 网络接口,并删除 WARP、 Linux Client 和 WireProxy (warp u) 
 8.  刷 WARP+ 流量 (warp p) 
 9.  升级内核、安装BBR、DD脚本 (warp b) 
 10. 同步最新版本 (warp v) 
 11. WARP 解锁 Netflix 等流媒体专业一键(支持多平台、多方式和 TG 通知) 
 12. 安装 iptable + dnsmasq + ipset,让 WARP IPv4 only 接管流媒体流量 (不适用于 IPv6 only VPS) (bash menu.sh e) 
 13. 安装 wireproxy,让 WARP 在本地创建一个 socks5 代理 (bash menu.sh w) 
 14. 安装 CloudFlare Client 并设置为 WARP 模式 (bash menu.sh l) 
 0.  退出脚本 

 请选择: 2

 只能使用 wireguard-go with reserved 运行 

 工作模式:
 1. 全局 (默认)
 2. 非全局 

 请选择: 

 如有 WARP+ 或 Teams 账户请选择
 1. 使用免费账户 (默认)
 2. WARP+
 3. Teams 

 请选择: 

 请选择优先级别:
 1. IPv4
 2. IPv6
 3. 使用 VPS 初始设置 (默认) 

 请选择: 

 进度 1/3: 安装系统依赖…… 

Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://deb.debian.org/debian-security buster/updates InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Ign:4 http://deb.debian.org/debian buster-backports InRelease
Err:5 http://deb.debian.org/debian buster-backports Release
  404  Not Found [IP: 151.101.78.132 80]
Reading package lists... 0%
 进度 2/3: 已安装 WARP 

Reading package lists... Done
E: The repository 'http://deb.debian.org/debian buster-backports Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
iptables is already the newest version (1.8.2-4).
net-tools is already the newest version (1.60+git20180626.aebd88e-1).
openresolv is already the newest version (3.8.0-1).
dnsutils is already the newest version (1:9.11.5.P4+dfsg-5.1+deb10u10).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package wireguard-tools
./menu.sh: line 2120: wg: command not found
--2024-04-17 23:13:18--  https://gitlab.com/fscarmen/warp/-/raw/main/wireguard-go/wireguard-go-linux-amd64-20201118
Resolving gitlab.com (gitlab.com)... 172.65.251.78
Connecting to gitlab.com (gitlab.com)|172.65.251.78|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2523136 (2.4M) [application/octet-stream]
Saving to: ‘/usr/bin/wireguard-go’

/usr/bin/wireguard-go            100%[=======================================================>]   2.41M  --.-KB/s    in 0.04s   

2024-04-17 23:13:18 (62.6 MB/s) - ‘/usr/bin/wireguard-go’ saved [2523136/2523136]

grep: /usr/bin/wg-quick: No such file or directory
sed: can't read /usr/bin/wg-quick: No such file or directory

 进度 3/3: 寻找 MTU 最优值和优选 endpoint 地址已完成 

 创建快捷 warp 指令成功 
 运行 WARP 
 没有安装 WireGuard tools 或者找不到配置文件 warp.conf,请重新安装。

Unable to connect to Warp

It tried five times, but unfortunately he couldn't get the IP, I tried several times and none of them could get the IP.

Twitch出现网络错误。请重试。(错误 #2000)

您好,ipv6 only安装脚本“1.为ipv6 only 添加ipv4网络接口”这个选项后,看Twitch“出现网络错误。请重试。(错误 #2000)”,不安装则不会出现此问题,请解决这个问题,谢谢

warp c 命令下,SOCK5创建失败(ubuntu18 vps)

进度 2/2: 设置 Client 模式
创建 Socks5 代理失败,问题反馈:[https://github.com/fscarmen/warp-sh/issues]

请问大佬这个是什么问题,之前一种用着你的方案,这两天突然上不去ChatGPT,然后重装了这个warp就这样子了。

没有加载Tun模块

使用一键脚本解锁奈飞:bash <(curl -sSL https://gitlab.com/fscarmen/warp_unlock/-/raw/main/unlock.sh)

日志:
root@vps71533473:~# bash <(curl -sSL https://gitlab.com/fscarmen/warp_unlock/-/raw/main/unlock.sh)

Language:
1.English (default)
2.简体中文

Choose: 2

WARP 网络接口和 Socks5 都没有安装,请选择安装脚本:

  1. fscarmen's warp (默认)
  2. fscarmen's warp-go
  3. P3terx
  4. Misaka
  5. ygkkk
  6. 退出

请选择: 1
--2024-01-05 02:50:46-- https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh
Resolving gitlab.com (gitlab.com)... 2606:4700:90:0:f22e:fbec:5bed:a9b9, 172.65.251.78
Connecting to gitlab.com (gitlab.com)|2606:4700:90:0:f22e:fbec:5bed:a9b9|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 161322 (158K) [text/plain]
Saving to: 'menu.sh'

menu.sh 100%[===========================================================================================================================================================>] 157.54K --.-KB/s in 0.002s

Last-modified header missing -- time-stamps turned off.
2024-01-05 02:50:47 (80.6 MB/s) - 'menu.sh' saved [161322/161322]

Language:

  1. English (default)
  2. 简体中文

Choose: 2

所有依赖已存在,不需要额外安装

检查环境中……
本项目专为 VPS 添加 warp 网络接口,详细说明: [https://github.com/fscarmen/warp-sh]
脚本特点:
• 支持 WARP+ 账户,附带第三方刷 WARP+ 流量和升级内核 BBR 脚本
• 普通用户友好的菜单,进阶者通过后缀选项快速搭建
• 智能判断操作系统: Ubuntu 、Debian 、CentOS、 Alpine 和 Arch Linux,请务必选择 LTS 系统
• 支持硬件结构类型: AMD、 ARM 和 s390x
• 结合 Linux 版本和虚拟化方式,自动优选4个 WireGuard 方案。网络性能方面: 内核集成 WireGuard > 安装内核模块 > wireguard-go
• 支持 WARP Linux Socks5 Client
• 输出执行结果,提示是否使用 WARP IP ,IP 归属地和线路提供商

======================================================================================================================

脚本版本:3.01
功能新增:增加是否允许 udp 的检测,如果 WARP 的所有 endpoint 均不能连通,脚本将中止
系统信息:
当前操作系统:Debian GNU/Linux 11 (bullseye)
内核:4.19.0
处理器架构:amd64
虚拟化:openvz
IPv4: 205.*** 美国 Hosteons Pte. Ltd
IPv6: 2402:*** 美国 Hosteons
WARP 网络接口未开启
Client 未安装
WireProxy 未安装

======================================================================================================================

  1. 为 原生双栈 添加 WARP IPv4 网络接口 (bash menu.sh 4)
  2. 为 原生双栈 添加 WARP IPv6 网络接口 (bash menu.sh 6)
  3. 为 原生双栈 添加 WARP 双栈网络接口 (bash menu.sh d)
  4. 打开 WARP (warp o)
  5. 安装 CloudFlare Client 并设置为 Proxy 模式 (bash menu.sh c)
  6. 更换支持 Netflix 的 IP (warp i)
  7. 永久关闭 WARP 网络接口,并删除 WARP、 Linux Client 和 WireProxy (warp u)
  8. 刷 WARP+ 流量 (warp p)
  9. 升级内核、安装BBR、DD脚本 (warp b)
  10. 同步最新版本 (warp v)
  11. WARP 解锁 Netflix 等流媒体专业一键(支持多平台、多方式和 TG 通知)
  12. 安装 iptable + dnsmasq + ipset,让 WARP IPv4 only 接管流媒体流量 (不适用于 IPv6 only VPS) (bash menu.sh e)
  13. 安装 wireproxy,让 WARP 在本地创建一个 socks5 代理 (bash menu.sh w)
  14. 安装 CloudFlare Client 并设置为 WARP 模式 (bash menu.sh l)
  15. 退出脚本

请选择: 2
没有加载 TUN 模块,请在管理后台开启或联系供应商了解如何开启,问题反馈:[https://github.com/fscarmen/warp-sh/issues]
root@vps71533473:~# bash <(curl -sSL https://gitlab.com/fscarmen/warp_unlock/-/raw/main/unlock.sh)

Language:
1.English (default)
2.简体中文

Choose: 2

WARP 网络接口和 Socks5 都没有安装,请选择安装脚本:

  1. fscarmen's warp (默认)
  2. fscarmen's warp-go
  3. P3terx
  4. Misaka
  5. ygkkk
  6. 退出

请选择: 1
--2024-01-05 02:50:46-- https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh
Resolving gitlab.com (gitlab.com)... 2606:4700:90:0:f22e:fbec:5bed:a9b9, 172.65.251.78
Connecting to gitlab.com (gitlab.com)|2606:4700:90:0:f22e:fbec:5bed:a9b9|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 161322 (158K) [text/plain]
Saving to: 'menu.sh'

menu.sh 100%[===========================================================================================================================================================>] 157.54K --.-KB/s in 0.002s

Last-modified header missing -- time-stamps turned off.
2024-01-05 02:50:47 (80.6 MB/s) - 'menu.sh' saved [161322/161322]

Language:

  1. English (default)
  2. 简体中文

Choose: 2

所有依赖已存在,不需要额外安装

检查环境中……
本项目专为 VPS 添加 warp 网络接口,详细说明: [https://github.com/fscarmen/warp-sh]
脚本特点:
• 支持 WARP+ 账户,附带第三方刷 WARP+ 流量和升级内核 BBR 脚本
• 普通用户友好的菜单,进阶者通过后缀选项快速搭建
• 智能判断操作系统: Ubuntu 、Debian 、CentOS、 Alpine 和 Arch Linux,请务必选择 LTS 系统
• 支持硬件结构类型: AMD、 ARM 和 s390x
• 结合 Linux 版本和虚拟化方式,自动优选4个 WireGuard 方案。网络性能方面: 内核集成 WireGuard > 安装内核模块 > wireguard-go
• 支持 WARP Linux Socks5 Client
• 输出执行结果,提示是否使用 WARP IP ,IP 归属地和线路提供商

======================================================================================================================

脚本版本:3.01
功能新增:增加是否允许 udp 的检测,如果 WARP 的所有 endpoint 均不能连通,脚本将中止
系统信息:
当前操作系统:Debian GNU/Linux 11 (bullseye)
内核:4.19.0
处理器架构:amd64
虚拟化:openvz
IPv4: 205.*** 美国 Hosteons Pte. Ltd
IPv6: 2402:*** 美国 Hosteons
WARP 网络接口未开启
Client 未安装
WireProxy 未安装

======================================================================================================================

  1. 为 原生双栈 添加 WARP IPv4 网络接口 (bash menu.sh 4)
  2. 为 原生双栈 添加 WARP IPv6 网络接口 (bash menu.sh 6)
  3. 为 原生双栈 添加 WARP 双栈网络接口 (bash menu.sh d)
  4. 打开 WARP (warp o)
  5. 安装 CloudFlare Client 并设置为 Proxy 模式 (bash menu.sh c)
  6. 更换支持 Netflix 的 IP (warp i)
  7. 永久关闭 WARP 网络接口,并删除 WARP、 Linux Client 和 WireProxy (warp u)
  8. 刷 WARP+ 流量 (warp p)
  9. 升级内核、安装BBR、DD脚本 (warp b)
  10. 同步最新版本 (warp v)
  11. WARP 解锁 Netflix 等流媒体专业一键(支持多平台、多方式和 TG 通知)
  12. 安装 iptable + dnsmasq + ipset,让 WARP IPv4 only 接管流媒体流量 (不适用于 IPv6 only VPS) (bash menu.sh e)
  13. 安装 wireproxy,让 WARP 在本地创建一个 socks5 代理 (bash menu.sh w)
  14. 安装 CloudFlare Client 并设置为 WARP 模式 (bash menu.sh l)
  15. 退出脚本

请选择: 2
没有加载 TUN 模块,请在管理后台开启或联系供应商了解如何开启,问题反馈:[https://github.com/fscarmen/warp-sh/issues]

已经确保在管理面板打开 Tun :
root@vps71533473:~# lsmod | grep tun
tun 4242 -2
vznetstat 4242 -2 tun,ip_vznetstat,ip6_vznetstat
864fb878e8bfe05a074e887afa3d1c30

优选endponit ip问题

甲骨文韩国首尔,ipv4的endpoint ip绕日本,最近延时很高,ipv6的endpoint ip就在韩国,延时只有2ms。能否手动优选ip?

无法获取ip

失败超过5次。
用wg-quick up warp出现如下错误:

Warning: `/etc/wireguard/warp.conf' is world accessible
[#] ip link add warp type wireguard
[#] wg setconf warp /dev/fd/63
[#] ip -4 address add 172.16.0.2/32 dev warp
[#] ip -6 address add 2606:4700:110:840c:354e:a4ab:38d6:4e93/128 dev warp
[#] ip link set mtu 1420 up dev warp
[#] resolvconf -a warp -m 0 -x
[#] wg set warp fwmark 51820
[#] ip -6 route add ::/0 dev warp table 51820
[#] ip -6 rule add not fwmark 51820 table 51820
[#] ip -6 rule add table main suppress_prefixlength 0
[#] ip6tables-restore -n
modprobe: FATAL: Module ip6_tables not found in directory /lib/modules/5.4.0-172-generic
ip6tables-restore v1.8.4 (legacy): ip6tables-restore: unable to initialize table 'raw'

Error occurred at line: 1
Try `ip6tables-restore -h' or 'ip6tables-restore --help' for more information.
[#] resolvconf -d warp -f
[#] ip -6 rule delete table 51820
[#] ip -6 rule delete table main suppress_prefixlength 0
[#] ip link delete dev warp

更换支持Netflix的IP似乎不能更改地区

日本oracle cloude上的ARM NAT小鸡,ubuntu20.04,一直不能获取到可以解锁的IPv6地址,于是用warp i换地区成hk,但地区似乎并没有切换,仍然是日本区刷IP。

Snipaste_2023-12-23_14-54-41

执行后一直卡住不动

image
之前也是这台机器,脚本还在github上的时候联系过你解决了,现在又遇到了
之前是说向cloudflare请求token的时候没下发

纯v6机器(HK),使用warp-go注册 WARP free 账户失败,API 获取不到注册信息

  1. 为 IPv6 only 添加 WARP IPv4 全局 网络接口,IPv4 优先 (bash warp-go.sh 4)
  2. 为 IPv6 only 添加 WARP IPv4 全局 网络接口,IPv6 优先 (bash warp-go.sh 4)
  3. 为 IPv6 only 添加 WARP IPv6 全局 网络接口,IPv4 优先 (bash warp-go.sh 6)
  4. 为 IPv6 only 添加 WARP IPv6 全局 网络接口,IPv6 优先 (bash warp-go.sh 6)
  5. 为 IPv6 only 添加 WARP 双栈 全局 网络接口,IPv4 优先 (bash warp-go.sh d)
  6. 为 IPv6 only 添加 WARP 双栈 全局 网络接口,IPv6 优先 (bash warp-go.sh d)
  7. 为 IPv6 only 添加 WARP 双栈 非全局 网络接口,IPv4 优先 (bash warp-go.sh n)
  8. 为 IPv6 only 添加 WARP 双栈 非全局 网络接口,IPv6 优先 (bash warp-go.sh n)
  9. 同步最新版本 (warp-go v)
  10. 退出脚本

请选择: 2

如有 WARP+ 或 Teams 账户请选择

  1. WARP+
  2. Teams
  3. 使用免费账户 (默认)

请选择: 3

进度 1/3: 安装系统依赖……

注册 WARP free 账户中, 最大尝试5次……
第1次尝试
第2次尝试
第3次尝试
第4次尝试
第5次尝试
注册 WARP free 账户失败,脚本中止,问题反馈: [https://github.com/fscarmen/warp-sh/issues]

进度 3/3: 已找到最佳 MTU 和 Endpoint

API 获取不到注册信息,脚本退出,问题反馈: [https://github.com/fscarmen/warp-sh/issues]
root@ECS-w3RSX4:# cat /etc/resolv.conf
search debian
nameserver 2001:4860:4860::8888
nameserver 2606:4700:4700::1111
root@ECS-w3RSX4:
#

debian系统使用sid分支无法使用脚本

Language:

  1. English (default)
  2. 简体中文

Choose: 2
当前操作是 Debian GNU/Linux trixie/sid
不支持 CentOS 9 及 Debian 9 以下系统,问题反馈:[https://github.com/fscarmen/warp-sh/issues]

切换内核的bug

第一次选内核选的是 wireguard-go with reserved
之前不太清楚可以通过 warp k 来切换 wireguard-go with reserved 或者wireguard kernel ,所以直接使用 warp u 卸载之后重装。
但是在安装过程中发现无法选择内核 提示 只能使用 wireguard-go with reserved 运行。
只用warp k 切换 也是 提示 只能使用 wireguard-go with reserved 运行。

有两台机器不太方便重装,请问有什么解决方案
(如果是一开始使用 warp k 切换内核之后再卸载则不会出现这种情况)

获取Warp IP失败

您好,使用的是NAT机器,V4是埃及的,V6是借的HE.

 后台获取 WARP IP 中,最大尝试3次……
 第1次尝试 
 第2次尝试 
 第3次尝试 
 失败已超过3次,脚本中止,问题反馈:[https://github.com/fscarmen/warp-sh/issues] 

执行wg-quick up warp后提示如下

Warning: `/etc/wireguard/warp.conf' is world accessible
[#] ip link add warp type wireguard
[#] wg setconf warp /dev/fd/63
[#] ip -4 address add 172.16.0.2/32 dev warp
[#] ip -6 address add 2606:4700:110:8693:2d72:af6a:2b13:204f/128 dev warp
[#] ip link set mtu 1420 up dev warp
[#] resolvconf -a warp -m 0 -x
[#] wg set warp fwmark 51820
[#] ip -6 route add ::/0 dev warp table 51820
[#] ip -6 rule add not fwmark 51820 table 51820
[#] ip -6 rule add table main suppress_prefixlength 0
[#] nft -f /dev/fd/63
[#] ip -4 rule add from 10.200.2.126 lookup main
[#] ip -6 rule add from fc00:6861:6e03:0:163:: lookup main

执行wg后提示如下

interface: warp
  public key: qtIiG5gtqqrdavt4qlTqmb9nxEwlAWZfaht7lkqATho=
  private key: (hidden)
  listening port: 54244
  fwmark: 0xca6c

peer: bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=
  endpoint: 162.159.192.208:864
  allowed ips: ::/0
  transfer: 0 B received, 1.59 KiB sent
  persistent keepalive: every 30 seconds

执行ss -nlup后提示如下

State       Recv-Q      Send-Q            Local Address:Port              Peer Address:Port      Process                              
UNCONN      0           0                       0.0.0.0:54244                  0.0.0.0:*                                              
UNCONN      0           0                          [::]:54244                     [::]:*                                              

已自查且使用过其他类似脚本,均无法获取warp 接口 IP,但是可以用scoks5.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.