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

Make Wireguard connections automatically reconnect after waking from sleep/hibernate or network change #204

Open
SocietasCooperationis opened this issue Jan 31, 2023 · 0 comments

Comments

@SocietasCooperationis
Copy link

SocietasCooperationis commented Jan 31, 2023

Does Vopono have this feature already? If not what would it take to implement it?

I don't know much about Wireguard itself but looking around the Internet it seems the basic consensus is to achieve this is just to restart the Wireguard connection, optionally after pinging the server to make sure its still up.

I cant remember if detecting sleep/hiberate requires any priviliges on Linux. If it does I imagine this could be done with a daemon process that can detect network changes or when the computer woken up from sleep/hibernate to send a signal to existing Vopono processes to wg-quick down and wg-quick up or whatever the internal equivalent in vopono is.

Coincidentally a daemon process with all the necessary privileges to manage Vopono processes would be a relatively secure solution to the sudo requirement for running Vopono, although I suppose that would probably be a subject that would be best talked about on the related issues.

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

No branches or pull requests

1 participant