Amebis / eduVPN

Windows eduVPN Client
GNU General Public License v3.0
41 stars 16 forks source link

Connection Shutting down after valid period #229

Open MajorOli opened 10 months ago

MajorOli commented 10 months ago

So i wondering why my connection is lost and the eduVPN Windows Client is switched to offline during my work.

Then i found the reason in the logs: 02.01.2024 13.20:15.111264 -> Start first connection with fresh authentication and start the validity period 03.01.2024 13:20.30.290990[TUN][VPN Adress] Sending keepalive packet to peer 1 (IP:Port) 03.01.2024 13.22:15.111264 [TUN][VPN Adress] Shutting down

My Use Case: First Login (with start the valid period) 02.01.2024 13.20:15 Work on next Day longer than 13:00 PM without refreshed Authentication so the Tunnel Connection was hard closed without any Warnings.

If it possible to add a re-connect or refresh validity Button to reset the Timer?

MajorOli commented 10 months ago

Oh... after a few houres the Refresh Button is visible... i never seen this before :-) Then, maybe, for User Experience dont hide this Refresh Button or trigger a present Modal Warning Message at the last 5 minutes of valid period.

rozmansi commented 10 months ago

Thank you for reporting your experience. We'll take a look how we could improve it.

Similar issue was already discussed here: https://github.com/Amebis/eduVPN/issues/184 But we didn't reach any significant change then. 🤔

About the modal dialog you proposed: believe me, I was searching for a way to display that popup that shades the entire desktop and spans a blue ribbon across the middle of the screen forcing user to read it and push a button to make an action Microsoft Update shows sometimes. But failed to find Windows API for it. I imagined something like this 5 minutes before session expiration with "Your eduVPN session is about to expire. [Renew] [Dismiss]": Updates-for-Windows-10

MajorOli commented 10 months ago

Hm.. okay i understood. I'm not familiar with GO but with GO you have access to Windows API "MessageBoxW" in user32.dll that trigger a simple MessageBox in Foreground etc. But its not this Blue ribbon its a simple Windows.Forms Message Dialog.

This Blue Ribbon looks like a Service or System Notification or a specific ToastNotification. But its Windows. It can be a simple Messagebox with a custom layout.

I worked with C# and WPF (Windows Presentation Foundation) for a long time ago and there it was possible to design own Forms with an specific design in xaml but i dont know how it works in GO.