[GH-ISSUE #2109] When the session expires (because of peer login expiration settings) the client looks like it's connected but it's not #4061

Closed
opened 2026-08-05 00:55:41 -04:00 by saavagebueno · 5 comments
Owner

Originally created by @andresemartinez on GitHub (Jun 8, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/2109

Describe the problem

I'm using Netbird Selfhosted with Google as IDP. I have peer login expiration set to 24hs. When the time comes the session expires and I lose connection and DNS resolution but the client icon is still orange and if I right click it offers to "disconnect". I could reproduce this on Mac and Windows laptops.

To Reproduce

Steps to reproduce the behavior:

  1. Have an instance of Netbird Control Plane with Google as IDP
  2. Configure Peer login expiration to 1h
  3. Connect with a Windows or Mac client using Google SSO
  4. Put the laptop in sleep mode (not sure if necessary)
  5. Wake the laptop up after 1h
  6. Try to access any resource on another peer

Expected behavior

The client icon and menu should show that you are disconected and need to authenticate again. A desktop notification like the one the OpenVPN client has would be awesome.

Are you using NetBird Cloud?

I'm using Selfhosted Control Plane with Google as IDP

NetBird version

Control Plane: 0.27.9
Clients for Mac and Windows: 0.27.9 and 0.27.10

Originally created by @andresemartinez on GitHub (Jun 8, 2024). Original GitHub issue: https://github.com/netbirdio/netbird/issues/2109 **Describe the problem** I'm using Netbird Selfhosted with Google as IDP. I have peer login expiration set to 24hs. When the time comes the session expires and I lose connection and DNS resolution but the client icon is still orange and if I right click it offers to "disconnect". I could reproduce this on Mac and Windows laptops. **To Reproduce** Steps to reproduce the behavior: 1. Have an instance of Netbird Control Plane with Google as IDP 2. Configure Peer login expiration to 1h 3. Connect with a Windows or Mac client using Google SSO 4. Put the laptop in sleep mode (not sure if necessary) 5. Wake the laptop up after 1h 6. Try to access any resource on another peer **Expected behavior** The client icon and menu should show that you are disconected and need to authenticate again. A desktop notification like the one the OpenVPN client has would be awesome. **Are you using NetBird Cloud?** I'm using Selfhosted Control Plane with Google as IDP **NetBird version** Control Plane: 0.27.9 Clients for Mac and Windows: 0.27.9 and 0.27.10
saavagebueno added the clientwaiting-feedbackclient-ui labels 2026-08-05 00:55:41 -04:00
Author
Owner

@nazarewk commented on GitHub (Apr 23, 2025):

@andresemartinez can you confirm whether it is still the case on the latest NetBird versions?

<!-- gh-comment-id:2824732807 --> @nazarewk commented on GitHub (Apr 23, 2025): @andresemartinez can you confirm whether it is still the case on the latest NetBird versions?
Author
Owner

@andresemartinez commented on GitHub (Apr 23, 2025):

Hey! I haven't used NetBird in a while due to a different issue. I'm going to update everything now and will report back once I've tested it.

<!-- gh-comment-id:2824756764 --> @andresemartinez commented on GitHub (Apr 23, 2025): Hey! I haven't used NetBird in a while due to a different issue. I'm going to update everything now and will report back once I've tested it.
Author
Owner

@janosmiko commented on GitHub (Aug 1, 2025):

@nazarewk I can confirm - I'm on macOS - (and one of my colleagues - on Windows - reported this) when the session expired we did not get logged out or prompted to login again. After a manual disconnect and reconnect everything works again.
I raised the
We are on a self-hosted instance using Azure OIDC.

<!-- gh-comment-id:3144347050 --> @janosmiko commented on GitHub (Aug 1, 2025): @nazarewk I can confirm - I'm on macOS - (and one of my colleagues - on Windows - reported this) when the session expired we did not get logged out or prompted to login again. After a manual disconnect and reconnect everything works again. I raised the We are on a self-hosted instance using Azure OIDC.
Author
Owner

@Volemon commented on GitHub (Apr 17, 2026):

I can confirm that this issue still persists on Linux systems on the latest versions.
On some clients, the NetBird connection stops working while the client still shows as "connected". In the NetBird management center, we don't see a "Login of the peer name is expired" message either. The only way to restore connectivity is to disconnect and reconnect (with re-authentication).

<!-- gh-comment-id:4267539076 --> @Volemon commented on GitHub (Apr 17, 2026): I can confirm that this issue still persists on Linux systems on the latest versions. On some clients, the NetBird connection stops working while the client still shows as "connected". In the NetBird management center, we don't see a "Login of the peer name is expired" message either. The only way to restore connectivity is to disconnect and reconnect (with re-authentication).
Author
Owner

@TechHutTV commented on GitHub (May 9, 2026):

Session-expiration UX was fixed in PR #3955. The client now shows a login popup and updates the tray status when the peer login expires. Closing as fixed; please reopen with logs and your IdP details if you still see a stale "connected" state on the latest release.

<!-- gh-comment-id:4413465966 --> @TechHutTV commented on GitHub (May 9, 2026): Session-expiration UX was fixed in PR #3955. The client now shows a login popup and updates the tray status when the peer login expires. Closing as fixed; please reopen with logs and your IdP details if you still see a stale "connected" state on the latest release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#4061