在 Raspberry Pi 上尝试 Wireguard 失败 "RTNETLINK answers: Operation not supported"
Trying Wireguard on Raspberry Pi failed with "RTNETLINK answers: Operation not supported"
我试过的步骤
- 我正在尝试在 Raspberry pi
上设置 Wireguard 客户端
这是二手配置
# /etc/wireguard/wg0-client.conf
[Interface]
Address = 10.10.0.4/32
Address = fd86:ea04:1111::4/128
SaveConfig = true
PrivateKey = CLIENT-PRIVATE-KEY
DNS = 8.8.8.8
[Peer]
PublicKey = SERVER-PUBLIC-KEY
Endpoint = SERVER-PUBLIC-IP:PORT
AllowedIPs = 0.0.0.0/0, ::/0
- 设置 Wireguard 配置后,我 运行
sudo wg-quick up wg0-client
,它像这样失败
pi@raspberrypi:~ $ sudo wg-quick up wg0-client
[#] ip link add wg0-client type wireguard
RTNETLINK answers: Operation not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev wg0-client
Cannot find device "wg0-client"
the Wireguard server side has been working for a while with other devices, so I do not paste the info here
OS 和硬件上下文
/etc/os-release 信息
pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
/sys/firmware/devicetree/base/model 硬件信息
Raspberry Pi 3 Model B Rev 1.2
前几天我通过删除 Wireguard updating/upgrading 内核到最新版本,安装内核头文件,然后重新安装 Wireguard 为我的 Pi-2 解决了这个问题。在那之后工作得很好。
但是,您可能只需要内核头文件。
您可以先尝试执行“sudo apt-get install raspberrypi-kernel-headers”。
我在:
Linux raspberrypi 4.19.118-v7+ #1311 SMP 4 月 27 日星期一 14:21:24 BST 2020 armv7l GNU/Linux
我试过的步骤
- 我正在尝试在 Raspberry pi 上设置 Wireguard 客户端
这是二手配置
# /etc/wireguard/wg0-client.conf
[Interface]
Address = 10.10.0.4/32
Address = fd86:ea04:1111::4/128
SaveConfig = true
PrivateKey = CLIENT-PRIVATE-KEY
DNS = 8.8.8.8
[Peer]
PublicKey = SERVER-PUBLIC-KEY
Endpoint = SERVER-PUBLIC-IP:PORT
AllowedIPs = 0.0.0.0/0, ::/0
- 设置 Wireguard 配置后,我 运行
sudo wg-quick up wg0-client
,它像这样失败
pi@raspberrypi:~ $ sudo wg-quick up wg0-client
[#] ip link add wg0-client type wireguard
RTNETLINK answers: Operation not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev wg0-client
Cannot find device "wg0-client"
the Wireguard server side has been working for a while with other devices, so I do not paste the info here
OS 和硬件上下文
/etc/os-release 信息
pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
/sys/firmware/devicetree/base/model 硬件信息
Raspberry Pi 3 Model B Rev 1.2
前几天我通过删除 Wireguard updating/upgrading 内核到最新版本,安装内核头文件,然后重新安装 Wireguard 为我的 Pi-2 解决了这个问题。在那之后工作得很好。
但是,您可能只需要内核头文件。 您可以先尝试执行“sudo apt-get install raspberrypi-kernel-headers”。
我在:
Linux raspberrypi 4.19.118-v7+ #1311 SMP 4 月 27 日星期一 14:21:24 BST 2020 armv7l GNU/Linux