-
Notifications
You must be signed in to change notification settings - Fork 29
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
[Bug]: OpenVPN Sensor information is inaccurate #290
Comments
This is a translation of the OpenVPNClients.js function into Python. It shows how it is taking the output of
This is the output of the function with one server: No clients connected:
One client connected:
|
@Snuffy2 Just let me know if there's something specific you need help with and I'll be happy to help |
@jesmak and anyone else, please give v0.3.8-beta.2 a try and see how the OpenVPN Server Sensors are functioning. The OpenVPN Client sensors wont work. |
@jesmak and anyone else, would you be willing to email me an only minimally redacted output from some of the OPNsense OpenVPN queries? I won't post or send them anywhere else and just want to use them to see if there's anyway to link the servers to the clients in the API data.
Queries: Please email them to [email protected] |
I sent you an email with the outputs you requested. I'll test the beta release next. |
Server sensors seem to be working fine with the beta release. Download/upload speeds are shown for both of my OpenVPN configurations, total byte counts also increase when downloading. |
@jesmak Thanks so much for the details!!! It helped me validate the server API data. One last thing. On the OPNsense Dashboard, if you add the OpenVPN Server and OpenVPN Client Widgets what do they show? Feel free to email me a screenshot.
|
I sent the relevant info via email. |
What happened?
From reviewing the logic for the OPNsense OpenVPN Dashboard Widget and looking at a bunch more REST API results, the current OpenVPN Sensors are not very accurate.
I believe I can accurately show the number of clients connected to a server and the throughput of a server. I can additionally show details about the connected clients as they relate to the server. However, I don't see any way to link the list of connected client details to the actual clients created. Thus, I'm not sure if I will be able to have accurate client sensors.
I'll continue to explore. @jesmak or anyone else, let me know if you're interested in helping to untangle this.
https://docs.opnsense.org/development/api/core/openvpn.html
https://github.com/opnsense/core/blob/8e41be2ebe8b53d59fded39d289c5d73822c8083/src/opnsense/www/js/widgets/OpenVPNClients.js
https://github.com/opnsense/core/blob/8e41be2ebe8b53d59fded39d289c5d73822c8083/src/opnsense/www/js/widgets/OpenVPNServers.js
The OpenVPN Server and Client switches are not affected by this.
hass-opnsense Version
v0.3.7
OPNsense Firmware
24.7
Home Assistant Version
2024.10
Relevant logs
No response
Additional Details
No response
The text was updated successfully, but these errors were encountered: