Why my OpenVPN tunnel does not work after resuming from sleep or hibernation on Windows?
This is a bug in the OpenVPN Windows Service wrapper.
There are several reasons why such a bug exists in the first place:
- The Windows Service wrapper in OpenVPN could use a lot of improvement
- It has not been touched in years
- No developer has had the skills and/or interest to fix it
- Most developers are volunteers and there has not been any commercial interest in fixing it
Fortunately there are better, more modern alternatives for it the Windows Server wrapper such as the Non-Sucking Service Manager. More information on configuring NSSM for OpenVPN is available in this email thread and the "Integrating OpenVPN with NSSM" wiki page.