After restoring my OPNsense system, the OpenVPN server fails to start.
Here’s how I restored the system:
- Restored an image I had taken from the fully configured system (minus later configuration changes)
- Installed system updates]
- Restored the last configuration
However, the OpenVPN server I have configured fails to start. The error message I get is:
Options error: --dh fails with '/usr/local/etc/dh-parameters..sample': No such file or directory (errno=2)
Options error: Please correct these errors.
Indeed, when open a shell, the file does not exist. However, a bunch of similarly named files are there:
dh-parameters.1024.sample
dh-parameters.2048.sample
dh-parameters.4096.sample
as well as some ending in .rfc7919 instead of .sample, and some missing the last extension altogether.
I figure the digits should correspond to what is set as DH Parameters Length in the web GUI (1024 in my case).
How do I get back to a working OpenVPN config?