Comments (19)
Though:
[root@fedora-2gb-nbg1-1 ~]# dkms status
wireguard, 0.0.20190702: added
from wireguard-install.
SOLUTION: Running dnf update
or yum update
to get an up-to-date kernel and matching headers solves the issue.
from wireguard-install.
OK, the kernel and headers were not the same version:
[root@centos-2gb-nbg1-1 ~]# yum list | grep kernel-headers
kernel-headers.x86_64 3.10.0-957.27.2.el7 @updates
[root@centos-2gb-nbg1-1 ~]# uname -a
Linux centos-2gb-nbg1-1 3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@fedora-2gb-nbg1-1 ~]# dnf list | grep kernel-headers
kernel-headers.x86_64 5.2.5-200.fc30 @updates
[root@fedora-2gb-nbg1-1 ~]#
[root@fedora-2gb-nbg1-1 ~]# uname -a
Linux fedora-2gb-nbg1-1 5.1.16-300.fc30.x86_64 #1 SMP Wed Jul 3 15:06:51 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
from wireguard-install.
Having the same problem on Fedora 29, but my kernel headers and active kernel are the same. It seems to be failing because DKMS can't find the file:
[#] ip link add wg0-client-test type wireguard
Error: Unknown device type.
Unable to access interface: Protocol not supported
[#] ip link delete dev wg0-client-test
Cannot find device "wg0-client-test"
[ben@localhost ~]$
[ben@localhost ~]$ dkms status
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/wireguard/0.0.20190702/source/dkms.conf does not exist.
Looks like it's trying to follow a broken symlink:
[ben@localhost ~]$ ll /var/lib/dkms/wireguard/0.0.20190702/source
lrwxrwxrwx. 1 root root 31 Jul 8 12:18 /var/lib/dkms/wireguard/0.0.20190702/source -> /usr/src/wireguard-0.0.20190702```
the symlink shouldn't be broken tho as the target exists:
```[ben@localhost ~]$ ll /usr/src/wireguard-0.0.20190905/
total 268K
drwxr-xr-x. 6 root root 4.0K Sep 10 09:28 .
drwxr-xr-x. 5 root root 4.0K Sep 10 09:28 ..
-rw-r--r--. 1 root root 11K Sep 9 14:44 allowedips.c
-rw-r--r--. 1 root root 1.8K Sep 9 14:44 allowedips.h
...
I manually removed the broken link and recreated it:
sudo ln -s /usr/src/wireguard-0.0.20190905/ /var/lib/dkms/wireguard/0.0.20190702/source
Now DKMS is happy. I rebuilt the modules:
sudo dkms autoinstall
Checked status:
wireguard, 0.0.20190702, 5.2.11-100.fc29.x86_64, x86_64: built
wireguard, 0.0.20190905, 5.2.11-100.fc29.x86_64, x86_64: installed
And it still doesn't work.
lsmod
shows it isn't actually loaded. Loading it fails:
modprobe: ERROR: could not insert 'wireguard': Operation not permitted
No idea why it's failing.
from wireguard-install.
I have similar problem, but get different verbose output from modprobe:
# modprobe -vvv wireguard
modprobe: INFO: custom logging function 0x55cf4e172a20 registered
insmod /lib/modules/5.3.11-300.fc31.x86_64/kernel/net/wireguard.ko.xz
modprobe: INFO: Failed to insert module '/lib/modules/5.3.11-300.fc31.x86_64/kernel/net/wireguard.ko.xz': Operation not permitted
modprobe: ERROR: could not insert 'wireguard': Operation not permitted
modprobe: INFO: context 0x55cf4eb9b4c0 released
Any ideas how to get wireguard module loaded? I removed it and rebuild it without success:
dkms remove -m wireguard -v 0.0.20191012 -k 5.3.11-300.fc31.x86_64
dkms install -m wireguard -v 0.0.20191012
Any help us much appreciated.
from wireguard-install.
i have also big problem with CentOS 7, it dont work. i have some wireguards working fine with kernel wireguard, 0.0.20200215, 3.10.0-1062.12.1.el7.x86_64, x86_64: installed
but now i try on an another VPS, but it dont work...
Your kernel headers for kernel 3.10.0-1062.12.1.el7.x86_64 cannot be found at
/lib/modules/3.10.0-1062.12.1.el7.x86_64/build or /lib/modules/3.10.0-1062.12.1.el7.x86_64/source.
from wireguard-install.
I'm following https://www.wireguard.com/install/ so I wonder what could be missing.
from wireguard-install.
[root@centos-2gb-nbg1-1 ~]# dkms build wireguard/0.0.20190702
Error! echo
Your kernel headers for kernel 3.10.0-957.21.3.el7.x86_64 cannot be found at
/lib/modules/3.10.0-957.21.3.el7.x86_64/build or /lib/modules/3.10.0-957.21.3.el7.x86_64/source.
But the headers are here.
[root@centos-2gb-nbg1-1 ~]# yum install kernel-headers
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.wiuwiu.de
* epel: mirror.wiuwiu.de
* extras: mirror.eu.oneandone.net
* updates: mirror.ratiokontakt.de
Package kernel-headers-3.10.0-957.27.2.el7.x86_64 already installed and latest version
Nothing to do
from wireguard-install.
It broke for me on a dnf upgrade a couple days ago on Fedora 30
uname --kernel-release
5.2.13-200.fc30.x86_64
rpm -q kernel-headers
kernel-headers-5.2.13-200.fc30.x86_64
Did a:
sudo rm -r /var/lib/dkms/wireguard/0.0.20190702
sudo ln -s /usr/src/wireguard-0.0.20190905/ /var/lib/dkms/wireguard/0.0.20190905/source
sudo dkms autoinstall
and it works again.
...though this seems odd:
dkms status
wireguard, 0.0.20190905, 5.2.13-200.fc30.x86_64, x86_64: installed
wireguard, 0.0.20190905, 5.2.7-200.fc30.x86_64, x86_64: installed
from wireguard-install.
Thanks for the feedback guys, although this seems related to Wireguard packaging on Fedora
from wireguard-install.
dnf reinstall wireguard-dkms
might help
from wireguard-install.
I added a warning in the script that detects if the machine is running on Fedora or CentOS && wireguard not running and tells the user the command to update its machine. Should be better!
from wireguard-install.
It also doesn't work. CentOS Linux release 7.8.2003 (Core)
[root@gw ~]# uname -a
Linux 3.10.0-1127.13.1.el7.x86_64
[root@gw ~]# yum list | grep kernel-headers
kernel-headers.x86_64 3.10.0-1127.13.1.el7 @updates
[root@gw ~]# dkms status
wireguard, 1.0.20200623, 3.10.0-1127.13.1.el7.x86_64, x86_64: installed
from wireguard-install.
@Yakashimoto I was on that kernel version too and I had the same problem. Here is what I did #95 (comment)
@chanyshev thanks for the detailed information. Your output looks good, try to reboot. If it doesn't work paste the output of systemctl status [email protected]
from wireguard-install.
journalctl -xe
-- Unit [email protected] has begun starting up.
Jul 08 03:32:34 gw.company.internal wg-quick[20217]: [#] ip link add wg0 type wireguard
Jul 08 03:32:34 gw.company.internal NetworkManager[740]: <info> [1594193554.2405] manager: (wg0): new WireGuard device (/org/freedesktop/NetworkManager/Devices/10)
Jul 08 03:32:34 gw.company.internal wg-quick[20217]: [#] wg setconf wg0 /dev/fd/63
Jul 08 03:32:34 gw.company.internal wg-quick[20217]: Unable to parse IP address: `'
Jul 08 03:32:34 gw.company.internal wg-quick[20217]: Configuration parsing error
Jul 08 03:32:34 gw.company.internal wg-quick[20217]: [#] ip link delete dev wg0
Jul 08 03:32:34 gw.company.internal systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE
Jul 08 03:32:34 gw.company.internal systemd[1]: Failed to start WireGuard via wg-quick(8) for wg0.
-- Subject: Unit [email protected] has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit [email protected] has failed.
--
-- The result is failed.
Jul 08 03:32:34 gw.company.internal systemd[1]: Unit [email protected] entered failed state.
Jul 08 03:32:34 gw.company.internal systemd[1]: [email protected] failed.
Jul 08 03:32:34 gw.company.internal polkitd[641]: Unregistered Authentication Agent for unix-process:20211:6658902 (system bus name :1.99, object path /org/freedesktop/PolicyKit1/AuthenticationA
Jul 08 03:32:36 gw.company.internal unix_chkpwd[20250]: password check failed for user (root)
from wireguard-install.
Jul 08 03:32:34 gw.company.internal wg-quick[20217]: Unable to parse IP address: `'
Jul 08 03:32:34 gw.company.internal wg-quick[20217]: Configuration parsing error
@chanyshev Open /etc/wireguard/wg0.conf
and /etc/wireguard/params
and check the IP addresses. If you aren't sure, I think you can delete the folder /etc/wireguard
and run the script again.
from wireguard-install.
some issue. not found wireguard module
from wireguard-install.
@aliasmee You can see the other comments for a solution. If it doesn't work for you provide the necessary info to debug please.
from wireguard-install.
Just wanted to chime in here and say that I resolved this on Amazon Linux 2 by running yum reinstall kernel
and then restarted wireguard
from wireguard-install.
Related Issues (20)
- Support different public interface for ipv6 traffic
- No time and traffic restrictions
- Vpn
- Add option not to use IPv6
- [feature request] check if systemd-resolved in installed
- failed to installed systemd service
- Wrong IP when installing, better to use "dig" than "ip"
- script generates invalid key? HOT 4
- Error Happens in Oracle Linux 9 HOT 1
- Command deprecated HOT 1
- Vpn
- script blindly assumes packages will be installed HOT 1
- multiple ipv4 missing in .sh
- iptables rules based on port - multiple LAN interfaces on server
- wg-quick: `/etc/wireguard/wg0.conf' does not exist HOT 2
- Allow /16 nets
- Detect public interface bug
- Connected But whith little traffic HOT 1
- how to add another peer? HOT 2
- How to make VPN use both ipv4 and ipv6 at the same time.. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wireguard-install.