netbirdio / netbird

Connect your devices into a secure WireGuard®-based overlay network with SSO, MFA and granular access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
10.76k stars 485 forks source link

When the session expires (because of peer login expiration settings) the client looks like it's connected but it's not #2109

Open andresemartinez opened 3 months ago

andresemartinez commented 3 months ago

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