Handle reconnect after system goes into sleep/hibernate

Let's first check and reproduce the problem:

  1. have the OpenVPN turned on
  2. hibernate/sleep
  3. wake up -> OpenVPN does not work, but internet traffic is blocked

It takes some time until OpenVPN notices and restarts... This makes sense for TCP (as the TCP connection is gone). But I don't know why this behaviour also affects UDP connections.

Workaround: https://wiki.archlinux.org/title/OpenVPN#Client_daemon_not_reconnecting_after_suspend

Things to discuss:

  • do wee need it?
  • Why has nobody complained about so far?
  • how to handle it (os, linux distro)?
Edited by Pea Nut