git: 9e76dd31165b - main - net/rosenpass: try to continue if we cannot load if_wg
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 06 Sep 2026 16:17:52 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=9e76dd31165b7ab0ca8754821be6c2991a26e5a2
commit 9e76dd31165b7ab0ca8754821be6c2991a26e5a2
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2026-09-05 11:38:58 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-09-06 16:16:58 +0000
net/rosenpass: try to continue if we cannot load if_wg
This makes rosenpass easier to use in VNET jails.
PR: 292769
Reported by: rob2g2 <rob2g2-freebsd@bitbert.com>
Event: Berlin Hackathon 202609
---
net/rosenpass/files/patch-rp | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/net/rosenpass/files/patch-rp b/net/rosenpass/files/patch-rp
index 2236ebe19b4b..89f5a317fe68 100644
--- a/net/rosenpass/files/patch-rp
+++ b/net/rosenpass/files/patch-rp
@@ -1,4 +1,4 @@
---- rp.orig 2023-08-29 21:48:48 UTC
+--- rp.orig 2026-08-03 12:38:47 UTC
+++ rp
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
@@ -15,7 +15,7 @@
set -e"
}
-@@ -223,7 +223,7 @@ exchange() {
+@@ -223,14 +223,14 @@ exchange() {
ip link set dev $(enquote "${dev}") up"
;;
@@ -23,7 +23,16 @@
+ freebsd*|FreeBSD*)
frag "
# load the WireGuard kernel module
- kldload -n if_wg || fatal 'Cannot load if_wg kernel module'"
+- kldload -n if_wg || fatal 'Cannot load if_wg kernel module'"
++ kldload -n if_wg || dbg 'WARNING: Cannot load if_wg kernel module, trying to proceed anyway'"
+
+ frag "
+ # Create the WireGuard interface
+- ifconfig wg create name $(enquote "${dev}") || true"
++ ifconfig wg create name $(enquote "${dev}") || fatal 'Cannot create wg interface'"
+
+ cleanup "
+ ifconfig $(enquote "${dev}") destroy || true"
@@ -351,10 +351,6 @@ main() {
project_name="rosenpass"
verbose=0