简体   繁体   English

Wireguard 拒绝在 Fedora 31 上运行:协议不受支持

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

I recently install wireguard-tools and restarted my machine several times.我最近安装了wireguard-tools 并多次重启了我的机器。 However, it will simply not run.但是,它根本不会运行。 I get this error every time:我每次都会收到此错误:

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"

I then ran dkms status and it came up entirely blank, even after a restart.然后我运行 dkms status 并且它完全空白,即使在重新启动后也是如此。 Looking online, it doesn't seem like anyone else's dkms went blank.在网上看,似乎没有其他人的 dkms 空白。 My kernel version is 5.5.13-200.fc31.x86_64, which is the latest I can go to.我的 kernel 版本是 5.5.13-200.fc31.x86_64,这是我可以 go 到的最新版本。 I've tried the general advice of cleaning packages, updating and then reinstalling wireguard but it has not worked.我已经尝试过清理软件包、更新然后重新安装wireguard 的一般建议,但它没有奏效。 What should I do from here?我应该从这里做什么? Does this require a reinstall of the whole OS?这是否需要重新安装整个操作系统?

What does modinfo wireguard show? modinfo wireguard显示什么?

Wireguard is included Linux 5.6 and higher. Wireguard 包含在 Linux 5.6 及更高版本中。 On your 5.5 kernel you'll need to install the a kernel module.在您的 5.5 kernel 上,您需要安装 kernel 模块。

I'm a Debian user, but on fedora this should work:我是 Debian 用户,但在 Fedora 上应该可以:

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

wireguard-tools only install's the tools, wireguard-dkms the kernel module, this will do the actual work. wireguard-tools 只安装工具,wireguard-dkms kernel 模块,这将完成实际工作。

reference参考

I solved it by upgrading wireguard:我通过升级wireguard解决了它:

sudo apt-get upgrade wireguard

Here is the terminal results:这是终端结果:

(...)
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.
(...)

Then sudo wg-quick up {conf_name} worked again.然后 sudo wg-quick up {conf_name} 再次工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM