OPNsense Forum

English Forums => Virtual private networks => Topic started by: scream on July 31, 2022, 12:32:26 pm

Title: wireguard-kmod not working in 22.7
Post by: scream on July 31, 2022, 12:32:26 pm
Hi

Just updated to 22.7 and noticed that wireguard-kmod is not working anymore.
As I found on google it needs a rebuild/recompile on 13.1 as the kernel module is not compatible anymore.

Anyone alreday did that? Any how to do this?

BR
Title: Re: wireguard-kmod not working in 22.7
Post by: franco on July 31, 2022, 12:45:02 pm
Hi,

This is misleading information. The kernel module package for 22.7 is built on 13.1 and it is being (re)installed on 22.7 to fix the kernel.

If you just try to reinstall you can confirm that is (not) the problem:

# opnsense-revert wireguard-kmod

Question then rather is what is your issue really?


Cheers,
Franco
Title: Re: wireguard-kmod not working in 22.7
Post by: scream on July 31, 2022, 01:48:17 pm
Okay, thanks for the info. Didn't found anything on the internet about that.

Code: [Select]
root@fw:~ # pkg info | grep wire
os-wireguard-1.11              WireGuard VPN service
wireguard-go-0.0.20220316_3,1  WireGuard implementation in Go
wireguard-kmod-0.0.20220615    WireGuard implementation for the FreeBSD kernel
wireguard-tools-1.0.20210914_1 Fast, modern and secure VPN Tunnel

Code: [Select]
root@fw:~ # opnsense-revert wireguard-kmod
Updating OPNsense repository catalogue...
OPNsense repository is up to date.
All repositories are up to date.
The following packages will be fetched:

New packages to be FETCHED:
        wireguard-kmod: 0.0.20220615 (40 KiB: 100.00% of the 40 KiB to download)

Number of packages to be fetched: 1

40 KiB to be downloaded.
Fetching wireguard-kmod-0.0.20220615.pkg: 100%   40 KiB  40.6kB/s    00:01   
wireguard-kmod-0.0.20220615: already unlocked
Updating OPNsense repository catalogue...
OPNsense repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be REINSTALLED:
        wireguard-kmod-0.0.20220615

Number of packages to be reinstalled: 1
[1/1] Reinstalling wireguard-kmod-0.0.20220615...
[1/1] Extracting wireguard-kmod-0.0.20220615: 100%

Code: [Select]
root@fw:~ # kldstat
Id Refs Address                Size Name
 1   51 0xffffffff80200000  215db98 kernel
 2    1 0xffffffff8235e000     4b58 if_enc.ko
 3    1 0xffffffff82363000    181d0 if_lagg.ko
 4    2 0xffffffff8237c000     3538 if_infiniband.ko
 5    1 0xffffffff82380000     e318 pfsync.ko
 6    3 0xffffffff8238f000    741a8 pf.ko
 7    1 0xffffffff82404000     3b18 pflog.ko
 8    1 0xffffffff82408000     ba48 if_gre.ko
 9    1 0xffffffff82414000     e4d0 if_bridge.ko
10    2 0xffffffff82423000     7870 bridgestp.ko
11    1 0xffffffff8242c000     f460 carp.ko
12    1 0xffffffff82a11000     3530 fdescfs.ko
13    1 0xffffffff82a15000     4480 vmmemctl.ko
14    1 0xffffffff82a1a000     4b58 vmblock.ko
15    1 0xffffffff82a1f000     3218 intpm.ko
16    1 0xffffffff82a23000     2180 smbus.ko
17    1 0xffffffff82a26000     7490 vmci.ko
18    1 0xffffffff82a2e000    34568 if_wg.ko
19    2 0xffffffff82a63000    27048 ipfw.ko
20    1 0xffffffff82a8b000    12520 dummynet.ko

Interesting is...

- uninstall wireguard-kmod
- opnsense-revert os-wireguard
- reboot
- reinstall wireguard-kmod
- reboot

now it works again as expected. Strange :(
Sorry for disturbing.
Title: Re: wireguard-kmod not working in 22.7
Post by: cynicalApples7 on December 12, 2022, 10:32:44 pm
Is this version old wireguard-kmod: 0.0.20220615? I believe it should at 1.0 release.
Title: Re: wireguard-kmod not working in 22.7
Post by: Greelan on December 13, 2022, 07:50:30 am
No: https://git.zx2c4.com/wireguard-freebsd/