From owner-svn-ports-all@freebsd.org Mon Mar 22 13:54:22 2021 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7423D5AF980; Mon, 22 Mar 2021 13:54:22 +0000 (UTC) (envelope-from decke@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F3wwG2sDlz3hKS; Mon, 22 Mar 2021 13:54:22 +0000 (UTC) (envelope-from decke@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 548BA6D3F; Mon, 22 Mar 2021 13:54:22 +0000 (UTC) (envelope-from decke@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 12MDsMmw064068; Mon, 22 Mar 2021 13:54:22 GMT (envelope-from decke@FreeBSD.org) Received: (from decke@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 12MDsL9f064065; Mon, 22 Mar 2021 13:54:21 GMT (envelope-from decke@FreeBSD.org) Message-Id: <202103221354.12MDsL9f064065@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: decke set sender to decke@FreeBSD.org using -f From: Bernhard Froehlich Date: Mon, 22 Mar 2021 13:54:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r568962 - in head: . net/wireguard X-SVN-Group: ports-head X-SVN-Commit-Author: decke X-SVN-Commit-Paths: in head: . net/wireguard X-SVN-Commit-Revision: 568962 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2021 13:54:22 -0000 Author: decke Date: Mon Mar 22 13:54:21 2021 New Revision: 568962 URL: https://svnweb.freebsd.org/changeset/ports/568962 Log: net/wireguard: Fix instructions, kernel module is loaded by ifconfig automatically (magic?!) Modified: head/UPDATING head/net/wireguard/Makefile head/net/wireguard/pkg-message Modified: head/UPDATING ============================================================================== --- head/UPDATING Mon Mar 22 13:49:02 2021 (r568961) +++ head/UPDATING Mon Mar 22 13:54:21 2021 (r568962) @@ -12,16 +12,14 @@ you update your ports collection, before attempting an A wireguard kernel implementation supporting FreeBSD 12.1 and newer was added as net/wireguard-kmod recently. - The new default for users of net/wireguard is the kernel module where it - is supported and needs to be loaded at boot time from your /etc/rc.conf - or /etc/rc.conf.d/wireguard file: + The new default for users of net/wireguard is the kernel module. - kld_list="/boot/modules/if_wg.ko" - If you experience problems with it you can switch back to wireguard-go - easily by unloading (or not loading) the kernel module. The userland - tools wg-quick(8) and wg(8) try to use kernel support and otherwise fall - back to wireguard-go automatically. Config files are fully compatible. + 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. 20210317: AFFECTS: users of security/strongswan Modified: head/net/wireguard/Makefile ============================================================================== --- head/net/wireguard/Makefile Mon Mar 22 13:49:02 2021 (r568961) +++ head/net/wireguard/Makefile Mon Mar 22 13:54:21 2021 (r568962) @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= wireguard -PORTVERSION= 1 +PORTVERSION= 2 PORTEPOCH= 1 CATEGORIES= net net-vpn Modified: head/net/wireguard/pkg-message ============================================================================== --- head/net/wireguard/pkg-message Mon Mar 22 13:49:02 2021 (r568961) +++ head/net/wireguard/pkg-message Mon Mar 22 13:54:21 2021 (r568962) @@ -4,16 +4,14 @@ For FreeBSD < 12.1 only the userland implementation wireguard-go is available. -For FreeBSD >= 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 -easily by unloading the kernel module. The userland tools wg-quick(8) -and wg(8) try to use if_wg(4) if available and otherwise fallback to -wireguard-go. Config files are fully compatible. +For FreeBSD >= 12.1 we default to use the kernel module if_wg(4). -To load the kernel module at boot add this to your /etc/rc.conf or -/etc/rc.conf.d/wireguard file: - -kld_list="/boot/modules/if_wg.ko" +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. EOM } ]