Skip to content

fix(ns.dashboard): add bytes sent/received check for ovpn connected client tunnels counter#1689

Open
m-dilorenzi wants to merge 1 commit into
nethsecurity-8.8from
fix_ovpn_client_tunnels_dashboard_counter
Open

fix(ns.dashboard): add bytes sent/received check for ovpn connected client tunnels counter#1689
m-dilorenzi wants to merge 1 commit into
nethsecurity-8.8from
fix_ovpn_client_tunnels_dashboard_counter

Conversation

@m-dilorenzi
Copy link
Copy Markdown
Collaborator

This PR contains a patch for the OpenVPN connected-client count shown on the firewall dashboard.
Previously, the dashboard API only checked whether a socket existed in the /var/run directory for a specific client tunnel.
If a client tunnel connected and was later disconnected, the socket could still remain in that directory, causing the dashboard to count that client as still connected.

This patch adds a check for the bytes_received and bytes_sent properties on the socket. If the client is disconnected, both values are 0.

This is the same mechanism already used in the OpenVPN Tunnel section to determine whether a tunnel is connected.

Closes: #1688

@m-dilorenzi m-dilorenzi requested a review from Tbaile May 22, 2026 10:00
@m-dilorenzi m-dilorenzi self-assigned this May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant