Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Apr 2021 15:22:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 254795] Removing 'net/wireguard-kmod' also removes 'wireguard' even when 'net/wireguard-go' is desired
Message-ID:  <bug-254795-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254795

            Bug ID: 254795
           Summary: Removing 'net/wireguard-kmod' also removes 'wireguard'
                    even when 'net/wireguard-go' is desired
           Product: Base System
           Version: 12.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: jon@xyinn.org

Hello all,

I'm currently running FreeBSD 12.2-RELEASE-p4 and have been keeping tabs on=
 the
whole wireguard situation in FreeBSD. Today I ran an update and received the
following message:

Message from wireguard-2,1:

--
For FreeBSD < 12.1 only the userland implementation wireguard-go is
available.

For FreeBSD >=3D 12.1 we default to use the kernel module if_wg(4).

If you experience problems with it you can switch back to wireguard-go
by removing net/wireguard-kmod and making sure net/wireguard-go is
installed.
The userland tools wg-quick(8) and wg(8) try to use kernel support if
the kernel module is available and otherwise fall back to wireguard-go
automatically. Config files are fully compatible.


This makes sense, at the moment I don't feel comfortable running the kmod
implementation until it has become more stable (Maybe I'll try it again in 6
months to 12 months). However, following the instructions above of removing=
 the
'net/wireguard-kmod' and making sure 'net/wireguard-go' is installed still
attempts to remove the main 'wireguard' package, thus I won't be able to
start/stop my existing wireguard services because of it (Unless I'm
misunderstanding something).

The example output from a clean slate is below:

[root@octopus ~]# pkg install wireguard
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 3 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        wireguard: 2,1
        wireguard-kmod: 0.0.20210323
        wireguard-tools: 1.0.20210315_3

Number of packages to be installed: 3

Proceed with this action? [y/N]: y
[1/3] Installing wireguard-tools-1.0.20210315_3...
[1/3] Extracting wireguard-tools-1.0.20210315_3: 100%
[2/3] Installing wireguard-kmod-0.0.20210323...
[2/3] Extracting wireguard-kmod-0.0.20210323: 100%
[3/3] Installing wireguard-2,1...
=3D=3D=3D=3D=3D
Message from wireguard-kmod-0.0.20210323:

--
At this time this code is new, unvetted, possibly buggy, and should be
considered "experimental". It might contain security issues. We gladly
welcome your testing and bug reports, but do keep in mind that this code
is new, so some caution should be exercised at the moment for using it
in mission critical environments.
=3D=3D=3D=3D=3D
Message from wireguard-2,1:

--
For FreeBSD < 12.1 only the userland implementation wireguard-go is
available.

For FreeBSD >=3D 12.1 we default to use the kernel module if_wg(4).

If you experience problems with it you can switch back to wireguard-go
by removing net/wireguard-kmod and making sure net/wireguard-go is
installed.
The userland tools wg-quick(8) and wg(8) try to use kernel support if
the kernel module is available and otherwise fall back to wireguard-go
automatically. Config files are fully compatible.


[root@octopus ~]# pkg install net/wireguard-go
Updating FreeBSD repository catalogue...
FreeBSD 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):

New packages to be INSTALLED:
        wireguard-go: 0.0.20210323,1

Number of packages to be installed: 1

The process will require 3 MiB more space.

Proceed with this action? [y/N]: y
[1/1] Installing wireguard-go-0.0.20210323,1...
[1/1] Extracting wireguard-go-0.0.20210323,1: 100%
[root@octopus ~]# pkg remove net/wireguard-kmod
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 2 packages (of 0 packag=
es
in the universe):

Installed packages to be REMOVED:
        wireguard: 2,1
        wireguard-kmod: 0.0.20210323

Number of packages to be removed: 2

Proceed with deinstalling packages? [y/N]: y
[1/2] Deinstalling wireguard-2,1...
[2/2] Deinstalling wireguard-kmod-0.0.20210323...
[2/2] Deleting files for wireguard-kmod-0.0.20210323: 100%
[root@octopus ~]# service wireguard stop
wg-quick: `wg0' is not a WireGuard interface
[root@octopus ~]#

Thank you!

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254795-227>