簡體   English   中英

Wireguard 拒絕在 Fedora 31 上運行:協議不受支持

[英]Wireguard refuses to run on Fedora 31: protocol not supported

我最近安裝了wireguard-tools 並多次重啟了我的機器。 但是,它根本不會運行。 我每次都會收到此錯誤:

Warning: `/etc/wireguard/myprovider.conf' is world accessible
[#] ip link add myprovider type wireguard
Error: Unknown device type.
Unable to access interface: Protocol not supported
[#] ip link delete dev myprovider
Cannot find device "provider"

然后我運行 dkms status 並且它完全空白,即使在重新啟動后也是如此。 在網上看,似乎沒有其他人的 dkms 空白。 我的 kernel 版本是 5.5.13-200.fc31.x86_64,這是我可以 go 到的最新版本。 我已經嘗試過清理軟件包、更新然后重新安裝wireguard 的一般建議,但它沒有奏效。 我應該從這里做什么? 這是否需要重新安裝整個操作系統?

modinfo wireguard顯示什么?

Wireguard 包含在 Linux 5.6 及更高版本中。 在您的 5.5 kernel 上,您需要安裝 kernel 模塊。

我是 Debian 用戶,但在 Fedora 上應該可以:

$ sudo dnf copr enable jdoss/wireguard
$ sudo dnf install wireguard-dkms wireguard-tools

wireguard-tools 只安裝工具,wireguard-dkms kernel 模塊,這將完成實際工作。

參考

我通過升級wireguard解決了它:

sudo apt-get upgrade wireguard

這是終端結果:

(...)
Preparing to unpack .../92-wireguard-dkms_1.0.20200520-0ppa1~18.04_all.deb ...

-------- Uninstall Beginning --------
Module:  wireguard
Version: 1.0.20200401
Kernel:  5.3.0-46-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

wireguard.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.3.0-46-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.

-------- Uninstall Beginning --------
Module:  wireguard
Version: 1.0.20200401
Kernel:  5.3.0-51-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

wireguard.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.3.0-51-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.

------------------------------
Deleting module version: 1.0.20200401
completely from the DKMS tree.
------------------------------
Done.
(...)

然后 sudo wg-quick up {conf_name} 再次工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM