Repository navigation
Conversation
Member
Author
|
@claude review |
Add wireguard-go/pfsense with everything needed to run WolfGuard-go on pfSense CE 2.9.0 (FreeBSD 16): - build-freebsd.sh builds wolfguard-go and wg-fips on a FreeBSD host matching the pfSense release, with wolfSSL linked statically. - pfSense-pkg-wolfGuard adds VPN > wolfGuard and Status > wolfGuard pages for tunnels and peers, starts tunnels at boot and sets the system tunables wolfguard-go needs. make-pkg.sh builds the package without the pfSense ports tree. - README.md documents the build, install and configuration, and the pfSense specific issues found (interface naming, boot start, UDP socket buffer limits, MTU). wg-fips needs the fix from wolfSSL/wolfGuard#33 to configure wolfguard-go; build-freebsd.sh takes WOLFGUARD_REPO and WOLFGUARD_REF to build from it until it is merged. Tested on pfSense CE 2.9.0 against the wolfGuard Linux kernel module.
LinuxJedi
force-pushed
the
pfsense-wolfguard
branch
from
November 13, 2026 21:33
d55e147 to
95702cb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds
wireguard-go/pfsense/, which makes it possible to run WolfGuard-go on pfSense and manage it from the pfSense web interface.build-freebsd.shbuildswolfguard-go(wireguard-go0.0.20250522withWireguard-Go-FIPS-wolfCrypt-port.patch) and wolfguard'swg-fipson a FreeBSD host matching the pfSense release. wolfSSL is linked statically, so the binaries only depend on FreeBSD base libraries. The UAPI socket directory is set to/var/run/wolfguardat link time sowg-fipscan find it.pkg/pfSense-pkg-wolfGuardis a pfSense package:kern.ipc.maxsockbufand keeps assigned tunnels at the tunnel MTU.pkg/make-pkg.shbuilds the package withpkg create, without needing the pfSense ports tree.README.mdcovers building, installing and configuring, with an example Linux kernel peer. It also documents the pfSense problems found while bringing this up:tun_*, or pfSense halts at boot.daemon(8), or it gets terminated shortly after boot.kern.ipc.maxsockbuf. That halved throughput from the peer to the LAN.The parent
wireguard-go/README.mdnow links to the new directory.Dependency
wg-fips sethangs against wolfguard-go without wolfSSL/wolfGuard#33, so the package can't apply tunnel settings without it. Until #33 is merged, build withWOLFGUARD_REPO=https://github.com/LinuxJedi/wolfguard.git WOLFGUARD_REF=wg-fips-uapi-set-reply, as described in the README. As a safeguard, the package runswg-fipswith a 10 second timeout so a hang can't block the GUI.Testing
Lab: pfSense CE 2.9.0 (FreeBSD 16.0-CURRENT, 2 vCPU VM on Proxmox), a FreeBSD 16.0-CURRENT build VM, and a Debian 13 peer running the wolfGuard kernel module.
build-freebsd.sh(with the Add test for openssh #33 branch) andmake-pkg.shfrom a clean copy of this directory.wireguard-go/deviceunit tests pass.--enable-intelasm).wg-fipsshow,set,showconf,genkeyandgenpskwork against wolfguard-go on pfSense.Not tested: a wolfSSL FIPS bundle build, and IPv6 tunnel addresses and endpoints.