Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tray icon stays red despite connection (seeing older auth failures) #5

Open
adolson opened this issue Jan 22, 2024 · 3 comments · May be fixed by #6
Open

Tray icon stays red despite connection (seeing older auth failures) #5

adolson opened this issue Jan 22, 2024 · 3 comments · May be fixed by #6

Comments

@adolson
Copy link

adolson commented Jan 22, 2024

I noticed that the tray icon will function properly for a while, but after some time, it will just stay red, even though I am connected to the VPN.

When I run openvpn3 sessions-list, I see several connections listed similar to the below, as well as my current active connection. I am not 100% sure, but I believe these may be connections that were working and then timed out (my employer's VPN boots us off after 12 hours I believe). If I run the applet from a terminal, over time, more and more "Not connected" messages will appear, in addition to one "Session found". Because there is a connected, valid session, the icon should be green but I guess the older ones are overriding it.

I'm not real sure what a good solution to this. Perhaps a new menu entry that would force disconnecting these failed auth connections? Or doing so automatically, if the config matches what was selected in the applet? Or maybe is it an issue with my actual .ovpn config file, keeping the connection open after auth failure?

    Path: /net/openvpn/v3/sessions/88fd250xxxxxxxad0fee02055f
 Created: Thu Jan 18 16:41:35 2024                  PID: 968619
   Owner: somethingsomething                                 Device: tun0

Config name: /home/user/Documents/VPN/my-vpn-profile.ovpn (Config not available)
Session name: vpn.hostname.ca
Status: Connection, Client authentication failed: Authentication failed

@adolson
Copy link
Author

adolson commented Jan 23, 2024

I looked into it a bit more this morning, and this command will remove the old connections. Perhaps adding it to the applet script would be a good idea?
openvpn3 session-manage --cleanup

@MartinLoeper
Copy link
Member

Hi @adolson, this is a good idea for a workaround! Thanks! We will implement this as soon as we have some spare time. In the meantime, a PR is as always welcome.

@adolson adolson linked a pull request Jan 24, 2024 that will close this issue
@adolson
Copy link
Author

adolson commented Jan 26, 2024

Well, it was working at first, but now it seems to think some stale sessions are still valid, and my tray icon is still staying red as a result.

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 a pull request may close this issue.

2 participants