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
11.24k stars 517 forks source link

Set absolute expiration time instead of time elapsed #2919

Open bryanjuho opened 1 day ago

bryanjuho commented 1 day ago

Is your feature request related to a problem? Please describe.

Our team use netbird on a daily basis, but netbird's expiration of 24 hours frequently interrupts VPN connection during work hours. For instance I connect at 10:00am on Monday, but on Tuesday I start 1 hour earlier, then it's guaranteed my connection will disconnect mid-development after an hour.

Describe the solution you'd like Would be great if we could set an expiration time (like at 12:00 AM everyday instead of every 24 Hours). This way, though everybody needs to re-login every day in the morning, significantly less people be interrupted during active usage.

Describe alternatives you've considered Of course it would be best if there would be a feature to alert user around 30 minutes prior to expiration whether to extend the session but I assume it would be a major update?

Additional context Thank you.

gecube commented 1 day ago

Hi!

Interesting thing. Never thought about it. Maybe 25h would help? Or probably the logic of netbird should be rewritten? What do I mean? Usually you don't leave laptop or computer in active mode. When you stop work, you put it to sleep mode. And then strange thing occurs. Like netbird could not connect and return 403 Okta error. I think the relogin should occur right after getting out of sleep mode, so the session would not be interrupted during the day work. And yes, I totally agree that it is annoying when the session is closed in the middle of your work. Let's say you was downloading file over ssh... and it is not always when you can download only remaining part so you are forced to start from the very beginning.