[Bug 292769] net/rosenpass: do not try to load if_wg
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 27 Jan 2026 22:54:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292769
Bug ID: 292769
Summary: net/rosenpass: do not try to load if_wg
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: fuz@FreeBSD.org
Reporter: rob2g2-freebsd@bitbert.com
Assignee: fuz@FreeBSD.org
Flags: maintainer-feedback?(fuz@FreeBSD.org)
/usr/local/bin/rp tries to load if_wg if it detects FreeBSD as operating
system. This prevents it from being used inside a VNET jail.
The following diff removes the first "frag" section and prints an error if the
wireguard interface cannot be created (which is also the case if the if_wg
module is not loaded):
227,230d226
< frag "
< # load the WireGuard kernel module
< kldload -n if_wg || fatal 'Cannot load if_wg kernel module'"
<
233c229
< ifconfig wg create name $(enquote "${dev}") || true"
---
> ifconfig wg create name $(enquote "${dev}") || fatal 'Cannot create wg interface'"
After applying the patch in case if_wg is not loaded, we get an error:
ifconfig: SIOCIFCREATE2 (wg): Invalid argument
FATAL: Cannot create wg interface
Usage: /usr/local/bin/rp
ifconfig: interface rosenpass0 does not exist
--
You are receiving this mail because:
You are the assignee for the bug.