You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The wireguard usermods directory doesn't exist, although wireguard is referenced in const.h. When re-adding the wireguard usermod directory and platformio_override.ini, Wireguard configuration options aren't in the Usermods config page after building. (It works in the non-MM build.)
To Reproduce Bug
Add the wireguard usermod directory and platformio_override.ini, then build. Wireguard configuration options aren't in the Usermods config page.
Expected Behavior
Wireguard config options should be in the Usermods config page after adding the wireguard usermod.
Install Method
Self-Compiled or other
What version/release of MM WLED?
MoonModules v0.14.1-b30
Which microcontroller/board are you seeing the problem on?
Added it back to the usermods_list.cpp and the configuration returned:
#ifdef USERMOD_WIREGUARD
usermods.add(new WireguardUsermod());
#endif
#ifdef USERMOD_WIREGUARD
#include "../usermods/wireguard/wireguard.h"
#endif
We don't have the changes from upstream that allow accessing UI pages from behind a proxy (wled#3238). Not sure if wireguard relies on this feature (I don't have a setup for testing).
@aiakos-k
Thanks for sharing - you basicially describe how to copy a usermod from upstream into our usermod folder, then add it to usermods_list.cpp and solve some minor incompatibilities. As you noticed, the wireguard usermod already has an ID reserved in const.h, so for this usermod you don't need to add a new ID.
So overall, what you did looks reasonable to me 👍 .
I'm not sure what exactly wireGuard does, but it looks like a tool for remote access behind a firewall with reverse proxy.
Did you test if the backported usermod allows you to access WLED-MM from outside of your home network? Please also test if the different UI pages, especially LEDs setting etc, can be reached from the main UI.
Dear softhack007,
i use it by WLED for many Device.
My Home Assistant run on a VM on my Root Server inside the RZ and yes i use
the Wireguard VPN to bridge the RZ Server to my local Device @ Home.
I have buy the Apollo M1 and to the same , what i do by WLED Deivces i add
the Usermod Wireguard.
After this i can use the Device in my Home Assistant.
I love it and its great.
best Regards,
Aiakos
Activity
jameskennemore commentedon Jun 3, 2024
Added it back to the usermods_list.cpp and the configuration returned:
#ifdef USERMOD_WIREGUARD
usermods.add(new WireguardUsermod());
#endif
#ifdef USERMOD_WIREGUARD
#include "../usermods/wireguard/wireguard.h"
#endif
softhack007 commentedon Jun 4, 2024
Hi, I'm not sure this usermod would work in MM.
We don't have the changes from upstream that allow accessing UI pages from behind a proxy (wled#3238). Not sure if wireguard relies on this feature (I don't have a setup for testing).
aiakos-k commentedon Nov 16, 2025
WireGuard Usermod Integration Guide
This guide describes all necessary changes to integrate the WireGuard usermod into WLED-MM.
Files to Modify
1.
wled00/usermods_list.cppAdd Include Statement
Location: Around line 211, after other usermod includes (e.g., after
#ifdef USERMOD_AUTO_PLAYLIST)Add Usermod Registration
Location: Inside
registerUsermods()function, around line 414, before the closing brace2.
platformio_override.ini(or your environment configuration)Add Library Dependency
Add to your
lib_depssection:lib_deps = ${esp32s3.lib_deps} ${common_mm.lib_deps_S} ${common_mm.lib_deps_V4_M} ${common_mm.HUB75_lib_deps} ${common_mm.animartrix_lib_deps} https://github.com/kienvu58/WireGuard-ESP32-Arduino.gitAdd Build Flag
Add to your
build_flagssection:build_flags = ${common.build_flags} ${esp32s3.build_flags} ... -D USERMOD_WIREGUARD3.
usermods/wireguard/wireguard.hFix 1: Replace F() with SET_F() in appendConfigData()
Location: Lines 57-64
Original:
Fixed:
Reason: WLED's
oappend()expectsconst char*, butF()returnsconst __FlashStringHelper*. UseSET_F()macro instead.Fix 2: Fix sscanf Format Warning in readFromConfig()
Location: Lines 87-90
Original:
Fixed:
Reason: The
%uformat specifier expectsunsigned int*, notuint8_t*. Using temporaryunsigned intvariables prevents format warnings.Summary of Issues Fixed
oappend(): ChangedF()toSET_F()macrouint8_t ip[4]tounsigned int ip[4]usermods_list.cppBuild Verification
After applying these changes, the project should compile successfully without errors:
Configuration
The WireGuard usermod can be configured via the WLED web interface under the Usermod settings. No code-level configuration is required.
i have test it and run fine , but i use it with a Apollo M1 and this has other wiring.
Maybe it will help someone else too!
softhack007 commentedon Nov 16, 2025
@aiakos-k
Thanks for sharing - you basicially describe how to copy a usermod from upstream into our usermod folder, then add it to usermods_list.cpp and solve some minor incompatibilities. As you noticed, the wireguard usermod already has an ID reserved in const.h, so for this usermod you don't need to add a new ID.
So overall, what you did looks reasonable to me 👍 .
I'm not sure what exactly wireGuard does, but it looks like a tool for remote access behind a firewall with reverse proxy.
Did you test if the backported usermod allows you to access WLED-MM from outside of your home network? Please also test if the different UI pages, especially LEDs setting etc, can be reached from the main UI.
softhack007 commentedon Nov 16, 2025
WLED-MM unfortunately lacks the "Reverse proxy support" from upstream WLED, that was introduced with this PR
We never ported the "Reverse proxy" feature from upstream back into our WLED-MM codebase, because there were too many differences and merge conflicts.
aiakos-k commentedon Nov 16, 2025