Giter Site home page Giter Site logo

Comments (4)

dsommers avatar dsommers commented on September 26, 2024 1

Just a quick comment .... the openvpn3-indicator is probably the best alternative. That uses the proper D-Bus interfaces. The openvpn3-applet is just a shell script doing lots of openvpn3 calls - that is prune to fail easily.

I've also attached a little tool which we will introduce in a future release. That does nothing fancy in regards to session management, but it gives you a desktop pop-up notification whenever the status of VPN sessions changes.
session-watcher.tar.gz

To use it, install it using sudo make install. Then as the currently logged in user, you can activate this like this:

  $ systemctl --user enable --now openvpn3-desktop-session-watcher.service

If you see a VPN session requiring re-authentication, you may try to check out the openvpn3 session-auth command.

from openvpn3-linux.

dsommers avatar dsommers commented on September 26, 2024

The session-mange --cleanup will only clean up sessions it cannot reach (like if the VPN backend died/crashed unexpectedly). If you can reach the session via openvpn3 session-manage --disconnect --config CONFIG_NAME, it is still available - and that is the way to properly shutdown the connection.

I'm deep into the GH issue 171, which does a complete rework of the D-Bus implementation. The session manager will also be migrated. I will have this issue in mind when I start looking at the session manager (client is backend is basically done, working on the netcfg service now).

If you can document how you can reproduce this issue consistently, I will try to test this issue more carefully. Also good to know what kind of server you connect against.

from openvpn3-linux.

adolson avatar adolson commented on September 26, 2024

Thanks for your quick reply!

To reproduce it, I just leave my work VPN connected and don't reboot my PC (running Debian). I'm not sure what our server is, exactly, I was just given the ovpn profile and told to use openvpn3 now.

Just as a bit of background, I'm using another github project for a tray applet (https://github.com/nesto-software/openvpn3-applet) on XFce to indicate when I'm connected or not, and noticed it's buggy because of the failed auth sessions sticking around. It's a rather simplistic script and just meant as a stop-gap until there's better integration into NetworkManager or similar. I just thought the --cleanup was malfunctioning because it worked to clear the sessions the first time I ran it. I found another similar tray applet (https://github.com/grzegorz-gutowski/openvpn3-indicator) that I will try, as it sounds like it maybe handles multiple sessions better.

from openvpn3-linux.

adolson avatar adolson commented on September 26, 2024

I guess I will close this, as it appears to be working as designed

from openvpn3-linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.