Skip to content

为ipv4 only创建warp双栈网络接口失败 #259

Description

@IntelAMDNVIDIA

脚本版本:3.2.2
功能新增:由于部分地区使用 Warp,仍需保留 Reserved 配置,因此恢复之前的配置文件
系统信息:
当前操作系统:Ubuntu 24.04.4 LTS
内核:6.8.0-106-generic
处理器架构:amd64
虚拟化:kvm
IPv4: xxxxxxxxxx美国 ReliableSite.Net LLC
IPv6:
WARP 网络接口未开启
Client 未安装
WireProxy 未安装

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

  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 a)
  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 方式:

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

请选择: 1

工作模式:

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

请选择: 1

请选择优先级别:

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

请选择: 3

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

Get:1 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
Hit:2 http://de.archive.ubuntu.com/ubuntu noble InRelease
Get:3 http://de.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Get:4 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [1579 kB]
0% [3 InRelease 101 kB/126 kB 80%] [4 Packages 2655 B/1579 kB 0%]
进度 2/3: 已处理好 WARP 配置文件

Get:5 http://de.archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
Get:6 http://de.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [1881 kB]
Get:7 http://security.ubuntu.com/ubuntu noble-security/main Translation-en [253 kB]
Get:8 http://security.ubuntu.com/ubuntu noble-security/main amd64 Components [21.5 kB]
Get:9 http://security.ubuntu.com/ubuntu noble-security/main amd64 c-n-f Metadata [10.7 kB]
Get:10 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [2763 kB]
Get:11 http://security.ubuntu.com/ubuntu noble-security/restricted Translation-en [644 kB]
Get:12 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Components [212 B]
Get:13 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Packages [1170 kB]
Get:14 http://security.ubuntu.com/ubuntu noble-security/universe Translation-en [225 kB]
Get:15 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Components [74.3 kB]
Get:16 http://security.ubuntu.com/ubuntu noble-security/universe amd64 c-n-f Metadata [22.9 kB]
Get:17 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Components [212 B]
Get:18 http://de.archive.ubuntu.com/ubuntu noble-updates/main Translation-en [343 kB]
Get:19 http://de.archive.ubuntu.com/ubuntu noble-updates/main amd64 Components [177 kB]
Get:20 http://de.archive.ubuntu.com/ubuntu noble-updates/main amd64 c-n-f Metadata [16.9 kB]
Get:21 http://de.archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [2911 kB]
Get:22 http://de.archive.ubuntu.com/ubuntu noble-updates/restricted Translation-en [674 kB]
Get:23 http://de.archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Components [212 B]
Get:24 http://de.archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [1665 kB]
Get:25 http://de.archive.ubuntu.com/ubuntu noble-updates/universe Translation-en [323 kB]
Get:26 http://de.archive.ubuntu.com/ubuntu noble-updates/universe amd64 Components [386 kB]
Get:27 http://de.archive.ubuntu.com/ubuntu noble-updates/universe amd64 c-n-f Metadata [34.3 kB]
Get:28 http://de.archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Components [940 B]
Get:29 http://de.archive.ubuntu.com/ubuntu noble-backports/main amd64 Components [7348 B]
Get:30 http://de.archive.ubuntu.com/ubuntu noble-backports/restricted amd64 Components [216 B]
Get:31 http://de.archive.ubuntu.com/ubuntu noble-backports/universe amd64 Components [13.2 kB]
Get:32 http://de.archive.ubuntu.com/ubuntu noble-backports/multiverse amd64 Components [212 B]
Fetched 15.6 MB in 3s (5243 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
35 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'systemd-resolved' instead of 'resolvconf'
net-tools is already the newest version (2.10-0.1ubuntu4.4).
dnsutils is already the newest version (1:9.18.39-0ubuntu0.24.04.3).
iptables is already the newest version (1.8.10-3ubuntu2).
iptables set to manually installed.
The following additional packages will be installed:
libnss-systemd libpam-systemd libsystemd-shared libsystemd0 libudev1 systemd systemd-dev systemd-sysv udev
Suggested packages:
systemd-container systemd-homed systemd-userdbd systemd-boot libqrencode4 libtss2-rc0
The following packages will be upgraded:
libnss-systemd libpam-systemd libsystemd-shared libsystemd0 libudev1 systemd systemd-dev systemd-resolved systemd-sysv udev
10 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
Need to get 8846 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://de.archive.ubuntu.com/ubuntu noble-updates/main amd64 libnss-systemd amd64 255.4-1ubuntu8.15 [159 kB]
Get:2 http://de.archive.ubuntu.com/ubuntu noble-updates/main amd64 systemd-dev all 255.4-1ubuntu8.15 [106 kB]
Get:3 http://de.archive.ubuntu.com/ubuntu noble-updates/main amd64 systemd-resolved amd64 255.4-1ubuntu8.15 [296 kB]
Get:4 http://de.archive.ubuntu.com/ubuntu noble-updates/main amd64 libsystemd-shared amd64 255.4-1ubuntu8.15 [2076 kB]
Get:5 http://de.archive.ubuntu.com/ubuntu noble-updates/main amd64 libsystemd0 amd64 255.4-1ubuntu8.15 [435 kB]
Get:6 http://de.archive.ubuntu.com/ubuntu noble-updates/main amd64 systemd-sysv amd64 255.4-1ubuntu8.15 [11.9 kB]
Get:7 http://de.archive.ubuntu.com/ubuntu noble-updates/main amd64 libpam-systemd amd64 255.4-1ubuntu8.15 [235 kB]
Get:8 http://de.archive.ubuntu.com/ubuntu noble-updates/main amd64 systemd amd64 255.4-1ubuntu8.15 [3475 kB]
Get:9 http://de.archive.ubuntu.com/ubuntu noble-updates/main amd64 udev amd64 255.4-1ubuntu8.15 [1875 kB]
Get:10 http://de.archive.ubuntu.com/ubuntu noble-updates/main amd64 libudev1 amd64 255.4-1ubuntu8.15 [177 kB]
Fetched 8846 kB in 2s (4007 kB/s)
(Reading database ... 126849 files and directories currently installed.)
Preparing to unpack .../libnss-systemd_255.4-1ubuntu8.15_amd64.deb ...
Unpacking libnss-systemd:amd64 (255.4-1ubuntu8.15) over (255.4-1ubuntu8.14) ...
Preparing to unpack .../systemd-dev_255.4-1ubuntu8.15_all.deb ...
Unpacking systemd-dev (255.4-1ubuntu8.15) over (255.4-1ubuntu8.14) ...
Preparing to unpack .../systemd-resolved_255.4-1ubuntu8.15_amd64.deb ...
Unpacking systemd-resolved (255.4-1ubuntu8.15) over (255.4-1ubuntu8.14) ...
Preparing to unpack .../libsystemd-shared_255.4-1ubuntu8.15_amd64.deb ...
Unpacking libsystemd-shared:amd64 (255.4-1ubuntu8.15) over (255.4-1ubuntu8.14) ...
Preparing to unpack .../libsystemd0_255.4-1ubuntu8.15_amd64.deb ...
Unpacking libsystemd0:amd64 (255.4-1ubuntu8.15) over (255.4-1ubuntu8.14) ...
Setting up libsystemd0:amd64 (255.4-1ubuntu8.15) ...
(Reading database ... 126849 files and directories currently installed.)
Preparing to unpack .../systemd-sysv_255.4-1ubuntu8.15_amd64.deb ...
Unpacking systemd-sysv (255.4-1ubuntu8.15) over (255.4-1ubuntu8.14) ...
Preparing to unpack .../libpam-systemd_255.4-1ubuntu8.15_amd64.deb ...
Unpacking libpam-systemd:amd64 (255.4-1ubuntu8.15) over (255.4-1ubuntu8.14) ...
Preparing to unpack .../systemd_255.4-1ubuntu8.15_amd64.deb ...
Unpacking systemd (255.4-1ubuntu8.15) over (255.4-1ubuntu8.14) ...
Preparing to unpack .../udev_255.4-1ubuntu8.15_amd64.deb ...
Unpacking udev (255.4-1ubuntu8.15) over (255.4-1ubuntu8.14) ...
Preparing to unpack .../libudev1_255.4-1ubuntu8.15_amd64.deb ...
Unpacking libudev1:amd64 (255.4-1ubuntu8.15) over (255.4-1ubuntu8.14) ...
Setting up libudev1:amd64 (255.4-1ubuntu8.15) ...
Setting up systemd-dev (255.4-1ubuntu8.15) ...
Setting up libsystemd-shared:amd64 (255.4-1ubuntu8.15) ...############################################################################....................................................................]
Setting up systemd (255.4-1ubuntu8.15) ...#####################################################################################################...........................................................]
Setting up udev (255.4-1ubuntu8.15) ...#############################################################################################################......................................................]
Setting up systemd-resolved (255.4-1ubuntu8.15) ...
systemd-resolved.service is a disabled or a static unit not running, not starting it.
Setting up systemd-sysv (255.4-1ubuntu8.15) ...
Setting up libnss-systemd:amd64 (255.4-1ubuntu8.15) ...
Setting up libpam-systemd:amd64 (255.4-1ubuntu8.15) ...
Processing triggers for libc-bin (2.39-0ubuntu8.7) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for dbus (1.14.10-4ubuntu4.1) ...
Processing triggers for initramfs-tools (0.142ubuntu25.8) ...
update-initramfs: Generating /boot/initrd.img-6.8.0-106-generic
Scanning processes...
Scanning candidates...
Scanning linux images...

Running kernel seems to be up-to-date.

Restarting services...
systemctl restart fwupd.service multipathd.service packagekit.service polkit.service qemu-guest-agent.service rsyslog.service ssh.service udisks2.service upower.service

Service restarts being deferred:
systemctl restart ModemManager.service
/etc/needrestart/restart.d/dbus.service
systemctl restart systemd-logind.service
systemctl restart unattended-upgrades.service

No containers need to be restarted.

User sessions running outdated binaries:
root @ session #1850: apt[152389], bash[151873]
root @ user manager service: systemd[151715]

No VM guests are running outdated hypervisor (qemu) binaries on this host.
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 25 not upgraded.
Need to get 89.1 kB of archives.
After this operation, 330 kB of additional disk space will be used.
Get:1 http://de.archive.ubuntu.com/ubuntu noble/main amd64 wireguard-tools amd64 1.0.20210914-1ubuntu4 [89.1 kB]
Fetched 89.1 kB in 1s (132 kB/s)
Selecting previously unselected package wireguard-tools.
(Reading database ... 126849 files and directories currently installed.)
Preparing to unpack .../wireguard-tools_1.0.20210914-1ubuntu4_amd64.deb ...
Unpacking wireguard-tools (1.0.20210914-1ubuntu4) ...
Setting up wireguard-tools (1.0.20210914-1ubuntu4) ...
wg-quick.target is a disabled or a static unit, not starting it.
Processing triggers for man-db (2.12.0-4build2) ...
Scanning processes...
Scanning candidates...
Scanning linux images...

Running kernel seems to be up-to-date.

Restarting services...

Service restarts being deferred:
/etc/needrestart/restart.d/dbus.service
systemctl restart systemd-logind.service
systemctl restart unattended-upgrades.service

No containers need to be restarted.

User sessions running outdated binaries:
root @ session #1850: sshd[151710]
root @ session #1852: sshd[151746]
root @ user manager service: systemd[151715]

No VM guests are running outdated hypervisor (qemu) binaries on this host.

进度 3/3: 寻找 MTU 最优值已完成

创建快捷 warp 指令成功
运行 WARP
后台获取 WARP IP 中,最大尝试5次……
第1次尝试
第2次尝试
第3次尝试
第4次尝试
第5次尝试
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
当前操作系统: Ubuntu 24.04.4 LTS

内核:6.8.0-106-generic

菜单选项: 3. 为 IPv4 only 添加 WARP 双栈网络接口 (bash menu.sh d)

[#] 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:8e82:20fd:198a:c15a:e1f6/128 dev warp
[#] ip link set mtu 1420 up dev warp
[#] resolvconf -a warp -m 0 -x
Failed to set DNS configuration: Unit dbus-org.freedesktop.resolve1.service not found.
[#] ip link delete dev warp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions