OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: Raketenmeyer on March 24, 2022, 04:18:06 PM

Title: Config restore broken for wireguard [SOLVED]
Post by: Raketenmeyer on March 24, 2022, 04:18:06 PM
Yesterday I had to reinstall 22.1.3 on a DEC690 with broken UFS filesystem (multiple power outages). The reinstall (ZFS) followed by a config import went without any problem - except the wireguard setup. Wireguard was broken afterwards - the plugins page listed "os-wireguard" as missing and the only visible wireguard related thing was it's (inactive) interface in the corresponding list.

After installing the wireguard plugin, the former configuration from the backup (local & endpoint) showed up in the GUI but was not applied to the plugin. I had to edit and save each configuration (without changes) to get it working. Afterwards the configured wireguard tunnel started working again.
Title: Re: Config restore broken for wireguard
Post by: franco on March 24, 2022, 07:14:05 PM
That sounds like it's working as intended:

The system won't automatically restore your plugins, but remember that they are required and prompt for it.

On plugin install or removal we do not mess with running service states or start/stop services even if they were enabled in the config already.


Cheers,
Franco
Title: Re: Config restore broken for wireguard
Post by: chemlud on March 24, 2022, 07:20:26 PM
If I do fresh install with config import:

- Install

- Switch to LibreSSL (optional) and reboot

- Install your needed plugins

- Import config.xml

- Login via console and manually add needed custom cron jobs

Did I forget something? ;-)

The config import is not all to be done on a freh install...
Title: Re: Config restore broken for wireguard
Post by: Raketenmeyer on March 25, 2022, 05:42:26 AM
Thanks for your answers - looks like it was my fault. I thought the config import would also install the depending plugins. Good to know for the next restore :)