From nobody Wed Apr 12 19:29:36 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PxXpk4MvPz44bN7 for ; Wed, 12 Apr 2023 19:29:50 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PxXpk26bQz3DcY for ; Wed, 12 Apr 2023 19:29:50 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-f178.google.com with SMTP id q15so9469859ljp.5 for ; Wed, 12 Apr 2023 12:29:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681327788; x=1683919788; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1YFIUjJxvNnLFnNem7JFYa7NjkwSSYm+ZJgSHQuHSAM=; b=Jt/CsO26khtMz9NDpfYTi6OTSes0ni4FK3BeGn3ZL2ZpZAWekyG/B5F7o62s7SDpsx D8KTrx3DqNzjeQSvcFUnc61hrqpR3xC2+Z98g0XN27mZ4SIFW7HAd0iz064V+gICgS28 po+0JIRFGKyk2f5xRUqF2C26u8cwLch0YFXvlVnIU/3Qf5SbZJlO8OuxYbihMA5RYLcc 5M+DpCC7F6hisLjWAzaDhDeHkLlPxjH1mphqgtGUypYJ2VzadQBkonKS3XDSZW737y0B ePT0KpbZH38hAbcJPWvSI/lgFMCC3S6EC9o+tcxQvOqXvHcygzK1PWIWeSLuc4EfX1qk S1Kw== X-Gm-Message-State: AAQBX9fplmOqxyDNf69LvF4ttZ9mt7wpo2ObCJ5/qL0IhPBHWw4PWMmE hFvvhjLOAkfygG72EK8QM/2KYWIVh9ShID5GLez4zJiwzCU= X-Google-Smtp-Source: AKy350YD1/Faw4EWtxP6Bd9F2PlwEccEJ2dUs20X4r7fYDQtXto6CAOGbzHpv9qkcIja1PjJcul7a6/6xsO6L0v8KR4= X-Received: by 2002:a2e:7404:0:b0:2a7:75ef:597a with SMTP id p4-20020a2e7404000000b002a775ef597amr3740087ljc.8.1681327788299; Wed, 12 Apr 2023 12:29:48 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <05ba770b-cd03-2ee9-3b3c-8dfcd1ea4fdc@pp.dyndns.biz> In-Reply-To: <05ba770b-cd03-2ee9-3b3c-8dfcd1ea4fdc@pp.dyndns.biz> From: Ed Maste Date: Wed, 12 Apr 2023 15:29:36 -0400 Message-ID: Subject: Re: What is the proper way to handle the wireguard module now that it's part of the base system? To: =?UTF-8?Q?Morgan_Wesstr=C3=B6m?= Cc: FreeBSD Questions Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4PxXpk26bQz3DcY X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Wed, 12 Apr 2023 at 11:28, Morgan Wesstr=C3=B6m wrote: > > I just upgraded to FreeBSD 13.2-RELEASE and made sure to deinstall the > net/wireguard-kmod package before I rebooted. I had to force deinstall it= since > it's still a dependency to net/wireguard. No problems though - VPN-tunnel= is up > with the base kernel module and seems to be working just fine. A few ques= tions > though: > > 1) What happens if there are two identically named modules on the system = - one > in /boot/kernel and the other in /boot/modules? Which one gets priority a= nd can > this be controlled? You can check the kern.module_path sysctl. By default it looks like /boot/kernel (or whatever kernel you boot) comes before /boot/modules. I think (but haven't checked) that everything would have been fine if wireguard-kmod was still installed. > 2) Depending on the answer to question 1, should I perhaps have left > net/wireguard-kmod in place? If not, shouldn't there be a check in the Ma= kefile > for net/wireguard so it doesn't pull in net/wireguard-kmod as a dependenc= y on > FreeBSD 13.2? net/wireguard/Makefile has: RUN_DEPENDS+=3D ${KMODDIR}/if_wg.ko:net/wireguard-kmod so the package should have a dependency on net/wireguard-kmod iff if_wg.ko is not present in the target FreeBSD version.