From be05c319a8596328c87d943c20870e668eaa705b Mon Sep 17 00:00:00 2001 From: fscarmen Date: Wed, 10 Sep 2025 08:28:55 +0000 Subject: [PATCH] menu.sh v3.1.8 Enhance the compatibility with Arch Linux and EndeavourOS. --- README.md | 4 ++++ README_EN.md | 5 +++++ menu.sh | 14 ++++++++++---- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e05f878..808b670 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,8 @@ * * * ## 更新信息 +2025.09.10 menu.sh v3.1.8 增强脚本对 Arch Linux 及 EndeavourOS 系统的兼容性 + 2025.08.24 menu.sh v3.1.7 1. 适配 Ubuntu 24.04 及以上版本安装 Warp,感谢网友 [Michaol] 提供的解决方案; 2. 适配 Debian 13 安装 Client,感谢用户 [ainp] 的反馈 2025.08.11 menu.sh v3.1.6 / warp-go.sh v1.2.4 删除最优 Endpoint 功能以适应官方调整 @@ -576,11 +578,13 @@ WARP是CloudFlare提供的一项基于WireGuard的网络流量安全及加速服 * 为仅IPv6服务器添加IPv4 原理如图,IPv4的流量均被WARP网卡接管,实现了让IPv4的流量通过WARP访问外部网络。 + * 为仅IPv4服务器添加IPv6 原理如图,IPv6的流量均被WARP网卡接管,实现了让IPv6的流量通过WARP访问外部网络。 + * 双栈服务器置换网络 diff --git a/README_EN.md b/README_EN.md index bd2dddd..804b4d9 100644 --- a/README_EN.md +++ b/README_EN.md @@ -22,6 +22,8 @@ English | [中文](README.md) * * * ## Update Information +2025.09.10 menu.sh v3.1.8 Enhance the script's compatibility with Arch Linux and EndeavourOS systems. + 2025.08.24 menu.sh v3.1.7 1. Added support for installing Warp on Ubuntu 24.04 and later versions. Thanks to the solution provided by community member [Michaol]; 2. Added support for Client installation on Debian 13. Thanks to the feedback from user [ainp] 2025.08.11 menu.sh v3.1.6 / warp-go.sh v1.2.4 Remove best endpoint feature to adapt to official adjustments; @@ -607,16 +609,19 @@ Its connection entry is dual-stack (both IPv4/IPv6 are available), and after con * Add IPv4 to IPv6-only servers As shown in the figure, IPv4 traffic is taken over by the WARP network card, realizing that IPv4 traffic accesses the external network through WARP. + * Add IPv6 to IPv4-only servers As shown in the figure, IPv6 traffic is taken over by the WARP network card, realizing that IPv6 traffic accesses the external network through WARP. + * Network replacement for dual-stack servers Sometimes our server itself is dual-stack, but for various reasons we may not want to use one of the networks. In this case, we can also use WARP to take over part of the network connection to hide our IP address. The purpose of doing this, the biggest significance is to reduce the probability of verification codes appearing in some severely abused data centers; at the same time, some content providers treat WARP's landing IP as the native IP of real users, which can lift some IP-based blockades. + * Network performance: Kernel integrated > Kernel module > wireguard-go diff --git a/menu.sh b/menu.sh index 6e91430..86a4dca 100644 --- a/menu.sh +++ b/menu.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # 当前脚本版本号 -VERSION='3.1.7' +VERSION='3.1.8' # 环境变量用于在Debian或Ubuntu操作系统中设置非交互式(noninteractive)安装模式 export DEBIAN_FRONTEND=noninteractive @@ -13,7 +13,7 @@ trap cleanup_resources EXIT INT TERM E[0]="\n Language:\n 1. English (default) \n 2. 简体中文" C[0]="${E[0]}" -E[1]="1. Added support for installing Warp on Ubuntu 24.04 and later versions. Thanks to the solution provided by community member [Michaol]; 2. Added support for Client installation on Debian 13. Thanks to the feedback from user [ainp]." +E[1]="Enhance the script's compatibility with Arch Linux and EndeavourOS systems; 增强脚本对 Arch Linux 及 EndeavourOS 系统的兼容性" C[1]="1. 适配 Ubuntu 24.04 及以上版本安装 Warp,感谢网友 [Michaol] 提供的解决方案; 2. 适配 Debian 13 安装 Client,感谢用户 [ainp] 的反馈" E[2]="The script must be run as root, you can enter sudo -i and then download and run again. Feedback: [https://github.com/fscarmen/warp-sh/issues]" C[2]="必须以root方式运行脚本,可以输入 sudo -i 后重新下载运行,问题反馈:[https://github.com/fscarmen/warp-sh/issues]" @@ -487,7 +487,7 @@ check_operating_system() { alpine_warp_restart() { wg-quick down warp >/dev/null 2>&1; wg-quick up warp >/dev/null 2>&1; } alpine_warp_enable() { echo -e "/usr/bin/tun.sh\nwg-quick up warp" > /etc/local.d/warp.start; chmod +x /etc/local.d/warp.start; rc-update add local; wg-quick up warp >/dev/null 2>&1; } - REGEX=("debian" "ubuntu" "centos|red hat|kernel|alma|rocky" "alpine" "arch linux" "fedora") + REGEX=("debian" "ubuntu" "centos|red hat|kernel|alma|rocky" "alpine" "arch linux|endeavouros" "fedora") RELEASE=("Debian" "Ubuntu" "CentOS" "Alpine" "Arch" "Fedora") EXCLUDE=("---") MAJOR=("9" "16" "7" "" "" "37") @@ -1176,7 +1176,7 @@ uninstall() { # 根据已安装情况执行卸载任务并显示结果 [[ "$SYSTEM" = 'Ubuntu' && "$MAJOR_VERSION" -ge 24 ]] && RESOLVER_PKG=resolvconf || RESOLVER_PKG=openresolv - + UNINSTALL_CHECK=("wg-quick" "warp-cli" "wireproxy") UNINSTALL_DO=("uninstall_warp" "uninstall_client" "uninstall_wireproxy") UNINSTALL_DEPENDENCIES=("wireguard-tools $RESOLVER_PKG " "" " $RESOLVER_PKG ") @@ -2100,6 +2100,7 @@ AllowedIPs = 0.0.0.0/0 AllowedIPs = ::/0 Endpoint = engage.cloudflareclient.com:2408 EOF + chmod 600 /etc/wireguard/warp.conf cat > /etc/wireguard/NonGlobalUp.sh <