root@Debian:~# wget -N https://raw.githubusercontent.com/fscarmen/warp/main/menu.sh && bash menu.sh
Language:
1. English (default)
2. 简体中文
Choose: 2
所有依赖已存在,不需要额外安装
检查环境中……
本项目专为 VPS 添加 wgcf 网络接口,详细说明: [https://github.com/fscarmen/warp]
脚本特点:
• 支持 WARP+ 账户,附带第三方刷 WARP+ 流量和升级内核 BBR 脚本
• 普通用户友好的菜单,进阶者通过后缀选项快速搭建
• 智能判断操作系统: Ubuntu 、Debian 、CentOS、 Alpine 和 Arch Linux,请务必选择 LTS 系统
• 支持硬件结构类型: AMD、 ARM 和 s390x
• 结合 Linux 版本和虚拟化方式,自动优选 4 个 WireGuard 方案。网络性能方面: 内核集成 WireGuard > 安装内核模块 > wireguard-go
• 智能判断 WGCF 作者 github 库的最新版本 (Latest release)
• 支持 WARP Linux Socks5 Client
• 输出执行结果,提示是否使用 WARP IP ,IP 归属地和线路提供商
======================================================================================================================
脚本版本:2.46 功能新增:通过 [warp s 4/6/d] 来切换 IPv4 / IPv6 的优先级别
系统信息:
当前操作系统:Debian GNU/Linux 11 (bullseye)
内核:5.10.0-20-cloud-amd64
处理器架构:amd64
虚拟化:kvm
IPv4:
IPv6: 2001:bc8:1830:224::1 Scaleway
WARP 网络接口未开启
Client 未安装
WireProxy 未安装
======================================================================================================================
1. 为 NAT IPv4 添加 WARP IPv4 网络接口 (bash menu.sh 4)
2. 为 NAT IPv4 添加 WARP IPv6 网络接口 (bash menu.sh 6)
3. 为 NAT IPv4 添加 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. 退出脚本
请选择: 3
如有 WARP+ 或 Teams 账户请选择
1. 使用免费账户 (默认)
2. WARP+
3. Teams
请选择: 1
请选择优先级别:
1. IPv4
2. IPv6
3. 使用 VPS 初始设置 (默认)
请选择: 3
进度 1/3: 安装系统依赖……
--2023-02-03 07:45:30-- https://github.com/ViRb3/wgcf/releases/download/v2.2.15/wgcf_2.2.15_linux_amd64
Resolving github.com (github.com)... failed: No address associated with hostname.
wget: unable to resolve host address ‘github.com’
--2023-02-03 07:45:30-- https://raw.githubusercontent.com/fscarmen/warp/main/wgcf/wgcf_2.2.15_linux_amd64
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8000::154, 2606:50c0:8001::154, 2606:50c0:8002::154, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8000::154|:443... connected.
Hit:1 http://ppa.launchpad.net/scaleway/stable/ubuntu focal InRelease
Get:2 https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version InRelease [7,505 B]
Hit:3 http://security.debian.org/debian-security bullseye-security InRelease
Hit:4 http://deb.debian.org/debian bullseye InRelease
Hit:5 http://deb.debian.org/debian bullseye-updates InRelease
0% [Waiting for headers]200 OK
Length: 8687616 (8.3M) [application/octet-stream]
Saving to: ‘/usr/bin/wgcf’
/usr/bin/wgcf 100%[======================================>] 8.29M --.-KB/s in 0.04s
2023-02-03 07:45:31 (196 MB/s) - ‘/usr/bin/wgcf’ saved [8687616/8687616]
Hit:6 http://deb.debian.org/debian bullseye-backports InRelease
Fetched 7,505 B in 1s (9,123 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
7 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/backports.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/backports.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/backports.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/backports.list:1
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/backports.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/backports.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/backports.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/backports.list:1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
iptables is already the newest version (1.8.7-1).
net-tools is already the newest version (1.60+git20181103.0eebece-1).
net-tools set to manually installed.
The following packages will be REMOVED:
resolvconf
The following NEW packages will be installed:
bind9-dnsutils dnsutils openresolv
The following packages will be upgraded:
bind9-libs
1 upgraded, 3 newly installed, 1 to remove and 6 not upgraded.
Need to get 2,120 kB of archives.
After this operation, 975 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 openresolv all 3.12.0-1 [25.4 kB]
Get:2 http://security.debian.org/debian-security bullseye-security/main amd64 bind9-libs amd64 1:9.16.37-1~deb11u1 [1,424 kB]
Get:3 http://security.debian.org/debian-security bullseye-security/main amd64 bind9-dnsutils amd64 1:9.16.37-1~deb11u1 [404 kB]
Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 dnsutils all 1:9.16.37-1~deb11u1 [267 kB]
Fetched 2,120 kB in 1s (1,920 kB/s)
apt-listchanges: Reading changelogs...
(Reading database ... 34802 files and directories currently installed.)
Removing resolvconf (1.87) ...
进度 2/3: 已安装 WGCF
resolvconf.postrm: Reboot recommended
(Reading database ... 34785 files and directories currently installed.)
Preparing to unpack .../bind9-libs_1%3a9.16.37-1~deb11u1_amd64.deb ...
Unpacking bind9-libs:amd64 (1:9.16.37-1~deb11u1) over (1:9.16.33-1~deb11u1) ...
Selecting previously unselected package bind9-dnsutils.
Preparing to unpack .../bind9-dnsutils_1%3a9.16.37-1~deb11u1_amd64.deb ...
Unpacking bind9-dnsutils (1:9.16.37-1~deb11u1) ...
Selecting previously unselected package dnsutils.
Preparing to unpack .../dnsutils_1%3a9.16.37-1~deb11u1_all.deb ...
Unpacking dnsutils (1:9.16.37-1~deb11u1) ...
Selecting previously unselected package openresolv.
Preparing to unpack .../openresolv_3.12.0-1_all.deb ...
Unpacking openresolv (3.12.0-1) ...
Setting up bind9-libs:amd64 (1:9.16.37-1~deb11u1) ...
Setting up openresolv (3.12.0-1) ...
Installing new version of config file /etc/dhcp/dhclient-enter-hooks.d/resolvconf ...
Installing new version of config file /etc/network/if-down.d/resolvconf ...
Installing new version of config file /etc/network/if-up.d/000resolvconf ...
Installing new version of config file /etc/ppp/ip-down.d/000resolvconf ...
Installing new version of config file /etc/ppp/ip-up.d/000resolvconf ...
Setting up bind9-dnsutils (1:9.16.37-1~deb11u1) ...
Setting up dnsutils (1:9.16.37-1~deb11u1) ...
Processing triggers for libc-bin (2.31-13+deb11u5) ...
Processing triggers for man-db (2.9.4-2) ...
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 6 not upgraded.
Need to get 86.2 kB of archives.
After this operation, 327 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 wireguard-tools amd64 1.0.20210223-1 [86.2 kB]
Fetched 86.2 kB in 0s (196 kB/s)
Selecting previously unselected package wireguard-tools.
(Reading database ... 34824 files and directories currently installed.)
Preparing to unpack .../wireguard-tools_1.0.20210223-1_amd64.deb ...
Unpacking wireguard-tools (1.0.20210223-1) ...
Setting up wireguard-tools (1.0.20210223-1) ...
wg-quick.target is a disabled or a static unit, not starting it.
Processing triggers for man-db (2.9.4-2) ...
创建快捷 warp 指令成功
运行 WARP
后台获取 WARP IP 中,最大尝试 5 次……
第 1 次尝试
已成功获取 WARP 网络
==============================================================
IPv4: 104.28.219.140 ( WARP IPv4 ) 荷兰 Cloudflare
IPv6: 2a09:bac1:5540::14:2a2 ( WARP IPv6 ) 荷兰 Cloudflare
恭喜!WARP 已开启,总耗时:33 秒, 脚本当天运行次数:1100,累计运行次数:2032952
IPv6 优先
==============================================================
再次运行用 warp [option] [lisence],如
warp h (帮助菜单)
warp n (获取 WARP IP)
warp o (临时 warp 开关)
warp u (卸载 WARP 网络接口和 Socks5 Client)
warp b (升级内核、开启 BBR 及 DD)
warp a (更换账户为 Free,WARP+ 或 Teams)
warp p (刷 WARP+流量)
warp v (同步脚本至最新版本)
warp r (WARP Linux Client 开关)
warp 4/6 (WARP IPv4/IPv6 单栈)
warp d (WARP 双栈)
warp c (安装 WARP Linux Client,开启 Socks5 代理模式)
warp l (安装 WARP Linux Client,开启 WARP 模式)
warp i (更换支持 Netflix 的 IP)
warp e (安装 Iptables + dnsmasq + ipset 解决方案)
warp w (安装 WireProxy 解决方案)
warp y (WireProxy socks5 开关)
warp s 4/6/d (优先级: IPv4 / IPv6 / VPS default)
root@Debian:~# wget -N https://raw.githubusercontent.com/fscarmen/warp/main/menu.sh && bash menu.sh
Language:
1. English (default)
2. 简体中文
Choose: 2
所有依赖已存在,不需要额外安装
检查环境中……
本项目专为 VPS 添加 wgcf 网络接口,详细说明: [https://github.com/fscarmen/warp]
脚本特点:
• 支持 WARP+ 账户,附带第三方刷 WARP+ 流量和升级内核 BBR 脚本
• 普通用户友好的菜单,进阶者通过后缀选项快速搭建
• 智能判断操作系统: Ubuntu 、Debian 、CentOS、 Alpine 和 Arch Linux,请务必选择 LTS 系统
• 支持硬件结构类型: AMD、 ARM 和 s390x
• 结合 Linux 版本和虚拟化方式,自动优选 4 个 WireGuard 方案。网络性能方面: 内核集成 WireGuard > 安装内核模块 > wireguard-go
• 智能判断 WGCF 作者 github 库的最新版本 (Latest release)
• 支持 WARP Linux Socks5 Client
• 输出执行结果,提示是否使用 WARP IP ,IP 归属地和线路提供商
======================================================================================================================
脚本版本:2.46 功能新增:通过 [warp s 4/6/d] 来切换 IPv4 / IPv6 的优先级别
系统信息:
当前操作系统:Debian GNU/Linux 11 (bullseye)
内核:5.10.0-20-cloud-amd64
处理器架构:amd64
虚拟化:kvm
IPv4:
IPv6: 2001:bc8:1830:224::1 Scaleway
WARP 网络接口未开启
Client 未安装
WireProxy 未安装
======================================================================================================================
1. 为 NAT IPv4 添加 WARP IPv4 网络接口 (bash menu.sh 4)
2. 为 NAT IPv4 添加 WARP IPv6 网络接口 (bash menu.sh 6)
3. 为 NAT IPv4 添加 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. 退出脚本
请选择: 3
如有 WARP+ 或 Teams 账户请选择
1. 使用免费账户 (默认)
2. WARP+
3. Teams
请选择: 1
请选择优先级别:
1. IPv4
2. IPv6
3. 使用 VPS 初始设置 (默认)
请选择: 3
进度 1/3: 安装系统依赖……
--2023-02-03 07:45:30-- https://github.com/ViRb3/wgcf/releases/download/v2.2.15/wgcf_2.2.15_linux_amd64
Resolving github.com (github.com)... failed: No address associated with hostname.
wget: unable to resolve host address ‘github.com’
--2023-02-03 07:45:30-- https://raw.githubusercontent.com/fscarmen/warp/main/wgcf/wgcf_2.2.15_linux_amd64
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8000::154, 2606:50c0:8001::154, 2606:50c0:8002::154, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8000::154|:443... connected.
Hit:1 http://ppa.launchpad.net/scaleway/stable/ubuntu focal InRelease
Get:2 https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version InRelease [7,505 B]
Hit:3 http://security.debian.org/debian-security bullseye-security InRelease
Hit:4 http://deb.debian.org/debian bullseye InRelease
Hit:5 http://deb.debian.org/debian bullseye-updates InRelease
0% [Waiting for headers]200 OK
Length: 8687616 (8.3M) [application/octet-stream]
Saving to: ‘/usr/bin/wgcf’
/usr/bin/wgcf 100%[======================================>] 8.29M --.-KB/s in 0.04s
2023-02-03 07:45:31 (196 MB/s) - ‘/usr/bin/wgcf’ saved [8687616/8687616]
Hit:6 http://deb.debian.org/debian bullseye-backports InRelease
Fetched 7,505 B in 1s (9,123 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
7 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/backports.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/backports.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/backports.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/backports.list:1
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/backports.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/backports.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/backports.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:7 and /etc/apt/sources.list.d/backports.list:1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
iptables is already the newest version (1.8.7-1).
net-tools is already the newest version (1.60+git20181103.0eebece-1).
net-tools set to manually installed.
The following packages will be REMOVED:
resolvconf
The following NEW packages will be installed:
bind9-dnsutils dnsutils openresolv
The following packages will be upgraded:
bind9-libs
1 upgraded, 3 newly installed, 1 to remove and 6 not upgraded.
Need to get 2,120 kB of archives.
After this operation, 975 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 openresolv all 3.12.0-1 [25.4 kB]
Get:2 http://security.debian.org/debian-security bullseye-security/main amd64 bind9-libs amd64 1:9.16.37-1~deb11u1 [1,424 kB]
Get:3 http://security.debian.org/debian-security bullseye-security/main amd64 bind9-dnsutils amd64 1:9.16.37-1~deb11u1 [404 kB]
Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 dnsutils all 1:9.16.37-1~deb11u1 [267 kB]
Fetched 2,120 kB in 1s (1,920 kB/s)
apt-listchanges: Reading changelogs...
(Reading database ... 34802 files and directories currently installed.)
Removing resolvconf (1.87) ...
进度 2/3: 已安装 WGCF
resolvconf.postrm: Reboot recommended
(Reading database ... 34785 files and directories currently installed.)
Preparing to unpack .../bind9-libs_1%3a9.16.37-1~deb11u1_amd64.deb ...
Unpacking bind9-libs:amd64 (1:9.16.37-1~deb11u1) over (1:9.16.33-1~deb11u1) ...
Selecting previously unselected package bind9-dnsutils.
Preparing to unpack .../bind9-dnsutils_1%3a9.16.37-1~deb11u1_amd64.deb ...
Unpacking bind9-dnsutils (1:9.16.37-1~deb11u1) ...
Selecting previously unselected package dnsutils.
Preparing to unpack .../dnsutils_1%3a9.16.37-1~deb11u1_all.deb ...
Unpacking dnsutils (1:9.16.37-1~deb11u1) ...
Selecting previously unselected package openresolv.
Preparing to unpack .../openresolv_3.12.0-1_all.deb ...
Unpacking openresolv (3.12.0-1) ...
Setting up bind9-libs:amd64 (1:9.16.37-1~deb11u1) ...
Setting up openresolv (3.12.0-1) ...
Installing new version of config file /etc/dhcp/dhclient-enter-hooks.d/resolvconf ...
Installing new version of config file /etc/network/if-down.d/resolvconf ...
Installing new version of config file /etc/network/if-up.d/000resolvconf ...
Installing new version of config file /etc/ppp/ip-down.d/000resolvconf ...
Installing new version of config file /etc/ppp/ip-up.d/000resolvconf ...
Setting up bind9-dnsutils (1:9.16.37-1~deb11u1) ...
Setting up dnsutils (1:9.16.37-1~deb11u1) ...
Processing triggers for libc-bin (2.31-13+deb11u5) ...
Processing triggers for man-db (2.9.4-2) ...
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 6 not upgraded.
Need to get 86.2 kB of archives.
After this operation, 327 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 wireguard-tools amd64 1.0.20210223-1 [86.2 kB]
Fetched 86.2 kB in 0s (196 kB/s)
Selecting previously unselected package wireguard-tools.
(Reading database ... 34824 files and directories currently installed.)
Preparing to unpack .../wireguard-tools_1.0.20210223-1_amd64.deb ...
Unpacking wireguard-tools (1.0.20210223-1) ...
Setting up wireguard-tools (1.0.20210223-1) ...
wg-quick.target is a disabled or a static unit, not starting it.
Processing triggers for man-db (2.9.4-2) ...
创建快捷 warp 指令成功
运行 WARP
后台获取 WARP IP 中,最大尝试 5 次……
第 1 次尝试
已成功获取 WARP 网络
==============================================================
IPv4: 104.28.219.140 ( WARP IPv4 ) 荷兰 Cloudflare
IPv6: 2a09:bac1:5540::14:2a2 ( WARP IPv6 ) 荷兰 Cloudflare
恭喜!WARP 已开启,总耗时:33 秒, 脚本当天运行次数:1100,累计运行次数:2032952
IPv6 优先
==============================================================
再次运行用 warp [option] [lisence],如
warp h (帮助菜单)
warp n (获取 WARP IP)
warp o (临时 warp 开关)
warp u (卸载 WARP 网络接口和 Socks5 Client)
warp b (升级内核、开启 BBR 及 DD)
warp a (更换账户为 Free,WARP+ 或 Teams)
warp p (刷 WARP+流量)
warp v (同步脚本至最新版本)
warp r (WARP Linux Client 开关)
warp 4/6 (WARP IPv4/IPv6 单栈)
warp d (WARP 双栈)
warp c (安装 WARP Linux Client,开启 Socks5 代理模式)
warp l (安装 WARP Linux Client,开启 WARP 模式)
warp i (更换支持 Netflix 的 IP)
warp e (安装 Iptables + dnsmasq + ipset 解决方案)
warp w (安装 WireProxy 解决方案)
warp y (WireProxy socks5 开关)
warp s 4/6/d (优先级: IPv4 / IPv6 / VPS default)