fscarmen / warp-sh

WARP script is move to: https://gitlab.com/fscarmen/warp
626 stars 139 forks source link

Alpine Linux v3.18 不能使用wireproxy代理 #79

Closed kathy883 closed 1 week ago

kathy883 commented 1 week ago

脚本版本:3.0.7 功能新增:支持 CentOS 9 / Alma Linux 9 / Rocky Linux 9 系统 系统信息: 当前操作系统:Alpine Linux v3.18 内核:6.5.11-7-pve 处理器架构:amd64 虚拟化:lxc kvm
IPv4: XXX IPv6: XXXX WARP 网络接口未开启 Client 未安装 WireProxy 已安装,状态为断开连接

进度 2/3: 已安装 WARP 进度 3/3: 寻找 MTU 最优值和优选 endpoint 地址已完成 创建快捷 warp 指令成功 后台获取 WARP IP 中,最大尝试3次…… 第1次尝试 menu.sh: line 1304: systemctl: command not found 第2次尝试 menu.sh: line 1310: systemctl: command not found 第3次尝试 menu.sh: line 1310: systemctl: command not found menu.sh: line 1313: systemctl: command not found 失败已超过3次,脚本中止,附上以上错误提示,问题反馈:[https://github.com/fscarmen/warp-sh/issues]

请问,可以用哪个选项实现代理?

fscarmen commented 1 week ago

两年多来还是你第一个发现没支持,稍后我适配下alpine下的wireproxy

kathy883 commented 1 week ago

那顺便把warp-cli 代理也修复了吧 wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh c

menu.sh: line 2436: systemctl: command not found menu.sh: line 2436: systemctl: command not found 进度 2/2: 设置 Client 模式 menu.sh: line 2357: warp-cli: command not found 创建 Socks5 代理失败,问题反馈:[https://github.com/fscarmen/warp-sh/issues]

错误基本一样,多谢了。

fscarmen commented 1 week ago

alpine安装不了client

image
fscarmen commented 1 week ago

alpine 安装 client 已经提示不能安装了 image

alpine 安装 wireproxy 已经处理

hax:~# bash menu.sh

 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.0.7
 功能新增:支持 CentOS 9 / Alma Linux 9 / Rocky Linux 9 系统
 系统信息:
         当前操作系统:Alpine Linux v3.20
         内核:4.19.0
         处理器架构:amd64
         虚拟化:openvz  
         IPv4:     
         IPv6: 2a01:4f8:211:2312:1234:4321:aa7c:1 德国  Hetzner Online 
         WARP 网络接口未开启 
         Client 未安装 
         WireProxy 未安装 

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

 1.  为 IPv6 only 添加 WARP IPv4 网络接口 (bash menu.sh 4) 
 2.  为 IPv6 only 添加 WARP IPv6 网络接口 (bash menu.sh 6) 
 3.  为 IPv6 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.  退出脚本 

 请选择: 13
 请自定义 Client 端口号 (1000-65535,如果不输入,会默认40000): 

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

 请选择: 

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

--2024-06-18 14:29:22--  https://github.com/pufferffish/wireproxy/releases/download/v1.0.9/wireproxy_linux_amd64.tar.gz
Resolving github.com (github.com)... 2a01:4f8:c2c:123f:64:5:8c52:7904, 2a00:1098:2b::1:8c52:7904, 2a00:1098:2c::5:8c52:7904
Connecting to github.com (github.com)|2a01:4f8:c2c:123f:64:5:8c52:7904|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/468743437/b2140917-9f13-4d2c-a28b-ee884e8af346?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240618%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240618T142923Z&X-Amz-Expires=300&X-Amz-Signature=047817aceae9a8b5b8a37733497124387798c80d19f6a0c1f0dddf2793121a5b&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=468743437&response-content-disposition=attachment%3B%20filename%3Dwireproxy_linux_amd64.tar.gz&response-content-type=application%2Foctet-stream [following]
--2024-06-18 14:29:23--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/468743437/b2140917-9f13-4d2c-a28b-ee884e8af346?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240618%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240618T142923Z&X-Amz-Expires=300&X-Amz-Signature=047817aceae9a8b5b8a37733497124387798c80d19f6a0c1f0dddf2793121a5b&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=468743437&response-content-disposition=attachment%3B%20filename%3Dwireproxy_linux_amd64.tar.gz&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 2a01:4f8:c2c:123f:64:5:b9c7:6e85, 2a01:4f8:c2c:123f:64:5:b9c7:6c85, 2a01:4f8:c2c:123f:64:5:b9c7:6d85, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|2a01:4f8:c2c:123f:64:5:b9c7:6e85|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3452404 (3.3M) [application/octet-stream]
Saving to: 'wireproxy.tar.gz'

wireproxy.tar.gz                     100%[=====================================================================>]   3.29M  9.56MB/s    in 0.3s    

2024-06-18 14:29:24 (9.56 MB/s) - 'wireproxy.tar.gz' saved [3452404/3452404]

(1/1) Installing openresolv (3.13.2-r0)
Executing busybox-1.36.1-r28.trigger
OK: 77 MiB in 87 packages

 进度 2/3: 已安装 WARP 

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

 创建快捷 warp 指令成功 
 后台获取 WARP IP 中,最大尝试3次……
 第1次尝试 
 * service wireproxy added to runlevel default
 恭喜!Wireproxy 工作中, 总耗时:84秒, 脚本当天运行次数:17180,累计运行次数:28729518
 本地 Socks5: 127.0.0.1:40000
 WARP Free
 IPv4: 104.28.221.41 德国 Cloudflare, Inc.
 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 k (切换 wireguard 内核 / wireguard-go-reserved)
 warp g (切换 warp 全局 / 非全局)
 warp s 4/6/d (优先级: IPv4 / IPv6 / VPS default)

hax:~# warp y
 已断开 Wireproxy,再次连接可以用 warp y 
hax:~# warp y
 后台获取 WARP IP 中,最大尝试3次……
 第1次尝试 
 WireProxy 已连接
 本地 Socks5: 127.0.0.1:40000
 WARP Free
 IPv4: 104.28.221.41 德国 Cloudflare, Inc.
 IPv6:   
kathy883 commented 1 week ago

非常感谢

kathy883 commented 1 week ago

完结

fscarmen commented 1 week ago

wireproxy 有 ipv6 的,因为上游的原因导致没有显示出来,正在看看如何处理,稍后更新。

kathy883 commented 1 week ago

好的,辛苦大佬

fscarmen commented 1 week ago

搞掂

hax:~# bash menu.sh

 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.0.7
 功能新增:支持 CentOS 9 / Alma Linux 9 / Rocky Linux 9 系统
 系统信息:
         当前操作系统:Ubuntu 20.04.6 LTS
         内核:5.4.0
         处理器架构:amd64
         虚拟化:openvz 
         IPv4:     
         IPv6: 2602:294:0:b7:1234:1234:1c8f:1 美国  FiberState 
         WARP 网络接口未开启 
         Client 未安装 
         WireProxy 未安装 

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

 1.  为 IPv6 only 添加 WARP IPv4 网络接口 (bash menu.sh 4) 
 2.  为 IPv6 only 添加 WARP IPv6 网络接口 (bash menu.sh 6) 
 3.  为 IPv6 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.  退出脚本 

 请选择: 5
 如有 WARP+ License 请输入,没有可回车继续: 

 请自定义 Client 端口号 (1000-65535,如果不输入,会默认40000):  进度 1/2: 安装 Client…… 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1688  100  1688    0     0   5209      0 --:--:-- --:--:-- --:--:--  5445
deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ focal main
Get:1 http://nginx.org/packages/mainline/ubuntu focal InRelease [3602 B]                                                                          
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease                                                                                            
Hit:3 http://security.ubuntu.com/ubuntu focal-security InRelease                                                                                  
Hit:4 http://archive.canonical.com/ubuntu focal InRelease                                                                                         
Hit:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease                                                                                    
Hit:6 https://pkg.cloudflareclient.com focal InRelease                                                                                            
Ign:7 https://repo.virtuozzo.com/ctpreset/deb  InRelease                                                                                          
Hit:8 https://download.docker.com/linux/ubuntu focal InRelease                                                                            
Hit:9 https://repo.virtuozzo.com/ctpreset/deb  Release
Ign:10 https://repo.virtuozzo.com/ctpreset/deb  Release.gpg
Err:1 http://nginx.org/packages/mainline/ubuntu focal InRelease
  The following signatures were invalid: EXPKEYSIG ABF5BD827BD9BF62 nginx signing key <signing-key@nginx.com>
Ign:11 https://repo.virtuozzo.com/ctpreset/deb  Translation-en
Ign:11 https://repo.virtuozzo.com/ctpreset/deb  Translation-en
Ign:11 https://repo.virtuozzo.com/ctpreset/deb  Translation-en
Ign:11 https://repo.virtuozzo.com/ctpreset/deb  Translation-en
Ign:11 https://repo.virtuozzo.com/ctpreset/deb  Translation-en
Ign:11 https://repo.virtuozzo.com/ctpreset/deb  Translation-en
Ign:11 https://repo.virtuozzo.com/ctpreset/deb  Translation-en
Fetched 3602 B in 7s (546 B/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
94 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://nginx.org/packages/mainline/ubuntu focal InRelease: The following signatures were invalid: EXPKEYSIG ABF5BD827BD9BF62 nginx signing key <signing-key@nginx.com>
W: Failed to fetch http://nginx.org/packages/mainline/ubuntu/dists/focal/InRelease  The following signatures were invalid: EXPKEYSIG ABF5BD827BD9BF62 nginx signing key <signing-key@nginx.com>
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  desktop-file-utils libnspr4 libnss3 libnss3-tools
The following NEW packages will be installed:
  cloudflare-warp desktop-file-utils libnspr4 libnss3 libnss3-tools
0 upgraded, 5 newly installed, 0 to remove and 94 not upgraded.
Need to get 89.8 MB of archives.
After this operation, 378 MB of additional disk space will be used.
Get:1 https://pkg.cloudflareclient.com focal/main amd64 cloudflare-warp amd64 2024.4.133-1 [87.2 MB]
Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 desktop-file-utils amd64 0.24-1ubuntu3 [50.6 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libnspr4 amd64 2:4.35-0ubuntu0.20.04.1 [108 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libnss3 amd64 2:3.98-0ubuntu0.20.04.2 [1391 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 libnss3-tools amd64 2:3.98-0ubuntu0.20.04.2 [1055 kB]
Fetched 89.8 MB in 8s (11.1 MB/s)                                                                                                                 
Selecting previously unselected package desktop-file-utils.
(Reading database ... 32344 files and directories currently installed.)
Preparing to unpack .../desktop-file-utils_0.24-1ubuntu3_amd64.deb ...
Unpacking desktop-file-utils (0.24-1ubuntu3) ...
Selecting previously unselected package libnspr4:amd64.
Preparing to unpack .../libnspr4_2%3a4.35-0ubuntu0.20.04.1_amd64.deb ...
Unpacking libnspr4:amd64 (2:4.35-0ubuntu0.20.04.1) ...
Selecting previously unselected package libnss3:amd64.
Preparing to unpack .../libnss3_2%3a3.98-0ubuntu0.20.04.2_amd64.deb ...
Unpacking libnss3:amd64 (2:3.98-0ubuntu0.20.04.2) ...
Selecting previously unselected package libnss3-tools.
Preparing to unpack .../libnss3-tools_2%3a3.98-0ubuntu0.20.04.2_amd64.deb ...
Unpacking libnss3-tools (2:3.98-0ubuntu0.20.04.2) ...
Selecting previously unselected package cloudflare-warp.
Preparing to unpack .../cloudflare-warp_2024.4.133-1_amd64.deb ...
Unpacking cloudflare-warp (2024.4.133-1) ...
Setting up desktop-file-utils (0.24-1ubuntu3) ...
Setting up libnspr4:amd64 (2:4.35-0ubuntu0.20.04.1) ...
Setting up libnss3:amd64 (2:3.98-0ubuntu0.20.04.2) ...
Setting up libnss3-tools (2:3.98-0ubuntu0.20.04.2) ...
Setting up cloudflare-warp (2024.4.133-1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/warp-svc.service → /lib/systemd/system/warp-svc.service.
Processing triggers for libc-bin (2.31-0ubuntu9.12) ...
Processing triggers for mime-support (3.64ubuntu1) ...
 进度 2/2: 设置 Client 模式 
 Linux Client 正常运行中。 Socks5 代理监听:127.0.0.1:40000 
 创建快捷 warp 指令成功 

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

 恭喜!WARP Free Linux Client 工作中, 总耗时:102秒, 脚本当天运行次数:2527,累计运行次数:28737349
 本地 Socks5: 127.0.0.1:40000
 WARP Free IPv4: 104.28.217.42 美国 Cloudflare Warp
 WARP Free IPv6: 2a09:bac1:76a0:99d8::8f:40 美国 Cloudflare Warp 

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

 再次运行用 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 k (切换 wireguard 内核 / wireguard-go-reserved)
 warp g (切换 warp 全局 / 非全局)
 warp s 4/6/d (优先级: IPv4 / IPv6 / VPS default)

hax:~# warp r
 已断开 Client,再次连接可以用 warp r 

hax:~# warp r
 Client 已连接
 本地 Socks5: 127.0.0.1:40000
 WARP Free IPv4: 104.28.217.42 美国 Cloudflare Warp
 WARP Free IPv6: 2a09:bac1:76a0:99d8::8f:40 美国 Cloudflare Warp