Giter Site home page Giter Site logo

cloudflarewarp's Introduction

Cloudflare Warp

CloudflareWarp 一键脚本

Warp

更新

2021年7月18日

  • 修复了IP可能检测错误的问题

Always Free IP Check API:

curl -4 ip.nisekoo.com
curl -6 ip.nisekoo.com

2021年6月13日

  • 加入了开机自启
  • 彻底修复了 Debian 10 第一次安装可能不成功的问题
  • 移除了双栈无损模式
  • 加入了流媒体检测

2021年5月31日

  • 增加了ARM 64的支持

2021年5月21日

  • 改进了在注册Warp账号的时候需要手动回车选择Yes的问题
  • 修复了没有wgetcurl可能导致安装失败的问问题
  • 增加了IPv4&IPv6的无损模式,仅出站走Warp「仅支持Ubuntu 20.04

感谢Bug发现的小伙伴

感谢 2guan 指出 可能安装失败的问题

感谢 lns103 建议 无损双栈方案

感谢 tianyunb666ChellyL 指出 Debian 10 安装失败的问题

「如有疏漏,请谅解」

已知问题

Debian10 部分内核下 linux-headers 无法通过 apt-get install linux-headers-$(uname -r) 完成安装

解决方案

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
reboot
sudo apt-get install linux-headers-$(uname -r) -y

参考文章:

Luminous大佬

本脚本与 Luminous 无关

Warp 优点

  • Warp为没有IPV4的IPV6 Only的服务器增加IPV4
  • Warp为没有IPV6的IPV4 Only的服务器增加IPV6
  • Warp为拥有IPV4和IPV6隐藏真实的IPV4和IPV6
  • Warp可以提供流媒体解锁服务(包括YouTube、Netflix等)
  • Warp是完全免费的

本脚本的功能

  • 一键安装Warp
  • 支持没有IPV4的机器
  • 支持没有IPV6的机器
  • 三种模式:增加IPV4、增加IPV6、双栈

要求

支持 Ubuntu Debian CentOS7 (内核必须为 >= 5.X 4.X版本可能会导致linux-headers无法安装)

已测试CentOS7Ubuntu18Debian9Debian10可以成功运行

建议使用一下脚本升级你的内核为BBR最新版本

wget uone.one/tcpx.sh && bash tcpx.sh

选择1安装原版BBR,安装完之后reboot,开机之后执行bash tcpx.sh,输入11启动BBR加速

使用

Linux X86_64

wget -O warp.sh https://cdn.jsdelivr.net/gh/missuo/CloudflareWarp/warp.sh && bash warp.sh

Linux ARM_64 (90%失败)

wget -O warp.sh https://cdn.jsdelivr.net/gh/missuo/CloudflareWarp/warp-arm64.sh && bash warp.sh

关于开源

本脚本的所有代码可以随意拿去使用,但是希望注明来源。之前本脚本的 Debian 10 一次绝对安装不成功。希望之前参考了本脚本的开发者看到后能及时修改,以免影响使用。

反馈

欢迎测试,并且在ISSUES中提出BUG,我会在第一时间修复

cloudflarewarp's People

Contributors

missuo 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  avatar  avatar

cloudflarewarp's Issues

能否增加无损双栈的模式

https://hiram.wang/cloudflare-wrap-vps/中提供的方式
wgcf.conf[Interface] 的最后加上

PostUp = ip rule add from 本机v4地址 lookup main
PostDown = ip rule delete from 本机v4地址 lookup main
PostUp = ip -6 rule add from 本机v6地址 lookup main
PostDown = ip -6 rule delete from 本机v6地址 lookup main

本人测试可以不破坏vps原生v4\v6的ssh和建站等功能,并且出站流量走warp

Debian10系统BUG

Debian10系统需要运行2次脚本才生效
第一次运行脚本不会生效 PS:第一次运行没效果 然后第二次运行脚本选择2 然后ipv6才生效
作者能不能帮忙解决

还有就是 能不能加个开机自启 要不然重启VPS ipv6就不生效 要手动加开机运行命令才能

Centos7 单独申请ipv6后有下发IP但是curl是V4地址

Centos7 内核5.12.6
仅增加IPV6下申请Ipv6有以下提示:

“本机IPV6: 2a09:bac0:xxxxxxxxx
恭喜你!配置完成!感谢使用! Have a nice day :)”

之后使用curl -6 ip.sb得到的返回结果却是本机原始ipv4的IP,而且无法ping通ipv6的ip

“ping 2606:4700:4700::1111
ping: 2606:4700:4700::1111: 不支持的主机名地址族”

VPS重装后重新运行脚本,无法成功申请ipv6地址

VPS重装后重新运行脚本,无法成功申请ipv6地址
提示以下信息后返回为空值。

2021/05/20 10:47:18 existing account detected
wgcf/cmd/register.registerAccount
/drone/src/cmd/register/register.go:41
wgcf/cmd/register.glob..func1
/drone/src/cmd/register/register.go:27
github.com/spf13/cobra.(*Command).execute
/go/pkg/mod/github.com/spf13/[email protected]/command.go:846
github.com/spf13/cobra.(*Command).ExecuteC
/go/pkg/mod/github.com/spf13/[email protected]/command.go:950
github.com/spf13/cobra.(*Command).Execute
/go/pkg/mod/github.com/spf13/[email protected]/command.go:887
wgcf/cmd.Execute
/drone/src/cmd/root.go:36
main.main
/drone/src/main.go:10
runtime.main
/usr/local/go/src/runtime/proc.go:204
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1374
2021/05/20 10:47:18 Using config file: wgcf-account.toml

arm64无法添加IPV4

你选择了增加 IPV4 的模式
开始自动修改配置文件
开始加载WireGuard内核模块
cp: cannot create regular file '/etc/wireguard/wgcf.conf': No such file or directory
开启启动WireGuard隧道
warp.sh: line 135: wg-quick: command not found
WireGuard隧道启动完成

ipv6 检测有误

如题,ip.sb的ipv6检测api似乎有问题?
我通过脚本添加了ipv6后,最后检测出的ipv6地址和whatismyipaddress.com上检测的ip不一致?

希望注明原帖作者与脚本无关

近期已经有几位朋友来询问我有关您的脚本存在的问题了……

一脸懵,嘤嘤嘤(ToT)/~~~

希望您在注明原帖的时候,注明原帖与脚本无关,或者注明原作者,谢谢啦~

安装失败

绿云安装失败,未解锁。还是本地地址

WARP 使用

我可以在我的 VPS 上使用 WARP 加速嗎,因為我只有 Ipv4,而且我正在使用 xray+grpc/tls+CDN。 我不想使用 WireGuard,因為它在我的國家完全被封鎖。

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.