-
Notifications
You must be signed in to change notification settings - Fork 647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net/wireguard: Add dashboard widget #1865
Conversation
net/wireguard/src/opnsense/service/conf/actions.d/actions_wireguard.conf
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see inline notes. If people start using this, I do expect the next feature request will be to refresh the widget content on changes. you might want to consider adding that as well, although I'm not against adding a static widget if @mimugmail is ok with it.
Absolutely, but this is what I can provide atm. To be honest, PHP is not really my strong point 😉 |
|
@x-jokay no problem, let's ask @mimugmail if he accepts the feature as is so we can pull it in. The effort is certainly appreciated, we all have to start somewhere :) |
|
Hi, I installed your branch but I can't find the widget in the UI? |
No, it's untested. I have no idea what the requirements for an OPNsense plugin are. This PR is only an "interpretation" based on some other plugins of what might be the correct change(s) to get this widget working. |
|
@x-jokay just checkout the plugins repo on an OPNsense and execute a @mimugmail sorry about the noise, I was under the impression that it was tested, but had issues due to the |
|
@AdSchellevis like this? user@debian:~/GitHub/core/plugins/net/wireguard$ make upgrade
Makefile:7: *** missing separator. Stop. |
|
on an OPNsense/HardenedBSD machine, yes, see https://github.com/opnsense/tools for information about our toolchain. |
|
On your OPNsense installation: If you do any changes in github you can easily |
|
Thx, will setup a VM for testing. |
|
@AdSchellevis & @mimugmail got it working now 👍 |
|
@x-jokay Is it now ready for testing? :) |
|
@mimugmail yes, can be tested now. |
|
May be this is because of this trim(). |
|
Well, this is indeed a problem 😉 @mimugmail may be you got an idea on how to get this one responsive? |
|
I would only display first 8 chars or endpoint, I'd guess noone is interested in full output |
|
Good idea, will do it like this. |
|
@mimugmail ready for the final verdict 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
|
@fichtner ready for another review. |
|
@fichtner This is how it looks now. |
|
Looks good 👍 |
|
Also tried it out on my firewall, seems to work fine! |
|
@AdSchellevis @fichtner please let me know if anything is missing so it can be merged. |
|
@x-jokay I'm very sorry, it has been extremely busy so I totally forgot about this one. |







Adds a widget for WireGuard.
Relates #1862.