OpenVPN / openvpn-gui

OpenVPN GUI is a graphical frontend for OpenVPN running on Windows 7 / 8 / 10. It creates an icon in the notification area from which you can control OpenVPN to start/stop your VPN tunnels, view the log and do other useful things.
Other
1.38k stars 397 forks source link

Add setting to reestablish last VPN connection on application start #674

Closed justmedev closed 2 months ago

justmedev commented 4 months ago

(Feature Request/Discussion)

Hey,

I would like to implement a setting, that, when active, instantly reconnects to the last connected vpn when the application is started. My reasoning is, that whenever I start OpenVPN I always want to connect to my work vpn and it would be faster to just open the app and let it connect by itself then to wait for the loading and then press the connect switch.

Any opinions on the idea before I start implementing and opening a pull request?

selvanair commented 4 months ago

The GUI already supports this in some form. Start a connection and then exit the GUI without pressing disconnect. The GUI will kill the connection and exit. Now restart the GUI and all connections that were active in the last session will be automatically connected. Same if you logout with the GUI running and some connections active. On next logon the GUI and those connections will restart automatically.

This behaviour can be changed from the settings menu -- see "Auto restart of active connections"